Hello there!
We need to write a set of data as an output to a worksheet in Google spreadsheet as given in the example:
These are set of data from the previous step.
{
'Operating Unit (Credit)': 'ABC Company (ABC)',
'Operating Unit (Credit) Subsidiary Internal ID': '',
'Operating Unit (debit)': 'DEF Company (DEF)',
'Operating Unit (debit) Subsidiary Internal ID': '',
'Account (Credit)': '1190',
'Account (Debit)': '2190',
'Amount(Debit)': 4752020,
'Amount(Credit)': 4752020,
Memo: '1190/2190 clearing',
'Name (Rep Vendor) (Credit)': 'ZZZ-DEF Company (DEF)',
'Name (Rep Vendor) (debit)': 'ZZZ-ABC Company (ABC)',
'Due To/From subsidiary (Credit)': 'ABC Company (ABC)',
'Due To/From subsidiary (debit)': 'ABC Company (ABC)',
'Rate (Credit)': 0.0016196228130352986,
'Rate (debit)': 0.0016196228130352986
},
{
'Operating Unit (Credit)': 'GHI Company (GHI)',
'Operating Unit (Credit) Subsidiary Internal ID': '',
'Operating Unit (debit)': 'DEF Company (DEF)',
'Operating Unit (debit) Subsidiary Internal ID': '',
'Account (Credit)': '1190',
'Account (Debit)': '2190',
'Amount(Debit)': 170200,
'Amount(Credit)': 170200,
Memo: '1190/2190 clearing',
'Name (Rep Vendor) (Credit)': 'ZZZ-DEF Company (DEF)',
'Name (Rep Vendor) (debit)': 'ZZZ-GHI Company (GHI)',
'Due To/From subsidiary (Credit)': 'DEF Company (DEF)',
'Due To/From subsidiary (debit)': 'GHI Company (GHI)',
'Rate (Credit)': 0.0015990011750881316,
'Rate (debit)': 0.0015990011750881316
}
...
...
Currently it puts all the data in a single row. But, for every set of row above, we want to have two rows in the output worksheet as below.
Can I get help here?
"Operating Unit", "Account", "Amount (Debit)", "Amount (Credit)","Memo", "Name","Due To/From Subsidiary", "Rate"
'ABC Company (ABC)',1190,0.00,4752020,'1190/2190 clearing','ZZZ-DEF Company (DEF)',0.0016196228130352986
'DEF Company (DEF)',2190,4752020,0.00,'1190/2190 clearing','ZZZ-ABC Company (ABC)',0.0016196228130352986
'GHI Company (GHI)',1190,0.00,170200,'1190/2190 clearing','ZZZ-DEF Company (DEF)',0.0015990011750881316
'DEF Company (DEF)',2190,170200,0.00,'1190/2190 clearing','ZZZ-GHI Company (GHI)',0.0015990011750881316
Advance thanks!
Regards,
Natarajan