Hello Everyone,
I am trying to create Sales and Collection System. I have number fields stored as Double. Most of these are calculated in the form level.
In the after update event of the Gross Sales, Taxable Sales, Vat , Withholding Tax and Net of EWT are calculated but I want it to store only the value rounded to two decimal places instead of the exact calculated number.
Gross Sales: Input
Calculations:
Taxable Sales: Gross Sales/(1.12)
Vat: Taxable Sales * 12%
EWT: Taxable Sales * Tax Rate
Net of EWT: Gross Sales - EWT
Hope you could help me with this. Thank you !
I am trying to create Sales and Collection System. I have number fields stored as Double. Most of these are calculated in the form level.
In the after update event of the Gross Sales, Taxable Sales, Vat , Withholding Tax and Net of EWT are calculated but I want it to store only the value rounded to two decimal places instead of the exact calculated number.
Gross Sales: Input
Calculations:
Taxable Sales: Gross Sales/(1.12)
Vat: Taxable Sales * 12%
EWT: Taxable Sales * Tax Rate
Net of EWT: Gross Sales - EWT
Hope you could help me with this. Thank you !