This is something we need to round and check it.
There are two scenarios here.
1,499.94
And
1500.09
For both cases we have to round it to 1500.
Lets workout this way.
$amount = 1499.94
$rounded_amount = round(1499.94); // 1500 here
ov discount = rounded_amount- amount
// here this will get the discount in both negative and positive. You should store it on ov discount. I guess it was not used from last updates. Use it by updating the code. If you need you can add discount gl for the discount given.
Subscription service based on FA
HRM CRM POS batch Themes