Project:
View Revisions: Issue #42237 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0042237: Discount value is not recalculated when opening a layaway with a price modification and editing it (not standard) | ||
Revision | 2019-11-21 09:56 by ngarcia | ||
Steps To Reproduce | In the POS: Create a receipt Layaway this receipt Add a Adhesive body warmers product Reduce its price to 2 Layaway In the backoffice: Check the Gross Unit Price and Gross List price are different and the Discount is different from 0 (44.44%). This is correct Open Receipt Select previously created layaway Note: layaways cannot be edited so we should force it to be editable. Moreover, the discountLinePrice is calculated only for not editable receipts when they are loaded, so we should force it was editable before loading Open Developers' tools and do the following instruction OB.MobileApp.model.receipt.turnEditable() OB.MobileApp.model.receipt.attributes.lines.models[0].attributes.discountedLinePrice = undefined In the POS: Change the price of the line to the original one (3.60) Pay it In the backoffice: Check the Gross Unit Price and Gross List are equal and the Discount didn't change. It should have been recalculated |
||
Revision | 2019-11-13 22:08 by ngarcia | ||
Steps To Reproduce | In the POS: Create a receipt Layaway this receipt Add a product Reduce its price Layaway In the backoffice: Check the Gross Unit Price and Gross List price are different and the Discount is different from 0. This is correct Open Receipt Select previously created layaway Note: layaways cannot be edited so we should force it to be editable. Moreover, the discountLinePrice is calculated only for not editable receipts when they are loaded, so we should force it was editable before loading Open Developers' tools and do the following instruction OB.MobileApp.model.receipt.turnEditable() OB.MobileApp.model.receipt.attributes.lines.models[0].attributes.discountedLinePrice = undefined In the POS: Change the price of the line to the original one Pay it In the backoffice: Check the Gross Unit Price and Gross List are equal and the Discount didn't change. It should have been recalculated |
Copyright © 2000 - 2009 MantisBT Group |