I am trying to create a sales report for one subsidiary showing all invoiced items with gross margin from cost of good sold. I understand that this can be done with a sales order search, joining the revenue amounts from the invoice and the COGS amount from the item fulfillment. This is working ok.
The issue I now have is the currency used in the amount fields. I understand that the currency of the amounts are determined by the subsidiary permission of the user role. So if the user role has permission to all subsidiaries (like administrator) the values are shown in the currency of the parent company, if they have only the permission for the one subsidiary amounts are shown in the currency of the subsidiary, if the user has permission for some but not all subsidiaries it is again a bit different.
This rule does not work for all amounts in transaction search, e.g. the COGS amount is always in subsidiary currency, resulting in some strange calculations with substracting amounts of different currency. And of course for the search used only in one subsidiary I anyway would like to see the values always in the currecny of the subsidiary regardless of the role of the user and his permission.
I have investigated a bit into the multiple amount fields the transaction search provides. Unfortunatley I was unable to find any meaningful help documentation on the semantics of these fields. These are my current findings:
Amount
total amount of the line without tax, currency of the value depends of subsidary permission of the current user and role (see above), sign of the amount not clear to me
Amount (Credit), Amount(Debit), Amount (Signed)
same absolut value as amount, Amount(Credit) or Amount(Debit) is depending on the GL implication, always positive value, Amount (Signed) is negative when debit and positive when credit is filled.
Amount (Foreign currency)
is filled with the amount in transaction currency but only for transaction types where there is a different tranaction currency possible (invoices, sales order, bill...), for other transactions without a potententially different transaction currency field is empty (item fulfillments...). The field is also filled in case of a transaction in the currency of the subsidiary, so it is filled with € even that the subsidiary currency is €.
Exchange rate
Is the exchange rate used to exchange the foreign currency of the transaction to the currency of the subsidiary. So for the € amount above it would be 1.00
Amount (Gross) and Amount(Net)
is the amount with or without discount. From there Amount(Gross) = Amount, Amount(net) = Amount - Discount
Amount (Net of Tax)
despite the name of the field this field contains the Amount(Net) always in subsidiary currency, there is no transformation of this value depending on the user subsidiary permission
Amount (Tax)
Tax amount of the line, currency like amount
Amount (Tax Total) and Amount(Transaction Total)
total tax and total amount without tax for the whole transaction not just the line reported
COGS Amount
is the cost of goods sold amount filled in the item fullfillment record, the value is always in subsidiary currency
For my little sales search with gross margin I now have used the Amount (Net of Tax) as my revenue field in subsidiary currency; the COGS Amount as my COGS in subsidiary currency and Amount(Net of Tax) - COGS as profit margin in subsidiary currency. Of course I am not sure if this is correct as it is just the result of trial and error.
Has anybody a more complete explanation of the semantics of the various amount fields available? Why is this so cumbersome in NetSuite? Should be not a big deal to provide an Amount (Transaction Currency) always filled with the value in the currency of the transaction for all types of transactions and to provide an Amount (Subsidiary currency) predictable showing the subsidiary amount you also see in the transaction and on the GL impact regardless of any subsidiary permisssions of potential users of the saved search. Or why is there no 'use subsidiary currency' flag on the search to fix the currency to be the same as you see it on the GL impact instead of this hard to control user permission solution.