Revisiting this topic from a few years ago.
viewtopic.php?f=26&t=462&hilit=decimals
I have the identical dilemma from another client and was about to deploy the plugin when I thought I'd do some due diligence and just test it out in my demo.
BTW, this is for version 7.0.175 latest SR.
For one particular supplier my client wants the monetary decimals to be set to 4, local currency AUD.
So using the the code
- Code: Select all
Public Sub PurchaseOrder_CreateEnd(sender As Object, e As System.EventArgs)
Dim purchaseOrder As JiwaPurchaseOrders.PurchaseOrder = DirectCast(sender, JiwaPurchaseOrders.PurchaseOrder)
If purchaseOrder.Creditor.AccountNo = "5647" Then
purchaseOrder.SystemSettings.MoneyDecimalPlaces = 4
Else
purchaseOrder.SystemSettings.MoneyDecimalPlaces = 2
End If
End Sub
It does what's expected and sets the money (unit price, line total, inc price) to 4 decimals. All is good, but when you enter in a unit price & the quantity, the Line Total calcs to 2 decimals. The display is 4, but the figure is 2 decimals.
Then the reverse happens when you enter in a Line Total to 4 decimal places, the Unit Price reverts to 2 decimals.
Is there another setting I need to configure so that all the values calculate to 4 decimals?
EDIT: Just tested in 7.2.1 SR4 and I get the same behaviour.


