on 01-16-2020 3:28 PM
I am applying a discount on a SalesItem already on a receipt using a plugin.
Discount is applied successfully on the item and the discounted price is reflected on the receipt's gross amount to be paid.
However the discount field and the gross amount of the Sales Item on the receipt is not changed on the UI itself (And the item already is affected by that discount while debugging).
Any idea how i reflect these changes on the UI of the Sales Item itself ?
try this
sie.setDiscountManuallyChanged(true);
sie.setItemDiscountChanged(true);
sie.setPercentageDiscount(false);
sie.setDiscountPercentage(new BigDecimal(0));
sie.setDiscountAmount(amountdisc));
sie.setMarkChanged(true);
calcPosService.recalculateReceipt(receipt);
BroadcasterHolder.INSTANCE.getBroadcaster().broadcastPluginEventForPath("RECEIPT_REFRESH", null);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have same issue in US tax configuration in FP16 PL01
Here is our code
receipt.setPercentageDiscount(false);
receipt.setDiscountAmount(discount);
calculationPosService.recalculateReceipt(receipt);
It is working fine for EU tax system settings, but does not for USThanksYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.