Hi all,
What is the easy way to get the Line Amount MST (amount in company currency) if the starting point is from SalesParmLine table ?
I noticed in this table, we have LineAmount but this is not in MST and obviously there is Currency code as well to accompany it.
I'm creating a routine to check total amount during posting invoice process, and compare it to my custom Parameter table. Problem is this value is on company currency only, so I need to convert first the amount from SalesParmLine in the middle of posting process to company currency.
Btw, I'm using CoC to extend class SalesFormLetter_Invoice : validate method for doing this.Is it the best place ?
The intention is after compare, if it is not satisfied, posting invoice will be terminated / canceled.
Thanks,