Project:
View Revisions: Issue #43202 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0043202: grossListPrice & priceList properties of order line model (client side) are not behaving as expected according to ERP behavior | ||
Revision | 2020-02-19 13:31 by joniturralde93 | ||
Steps To Reproduce | [scenario 1 -> including taxes] - Go to web POS (VBS-1) which uses price including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 1: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 2: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when payments are added or layaway is completed values are still correct in the backend [scenario 2 -> Not including taxes] - Go to web POS (PS-1) which uses price NOT including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 3: Since we are working with the price NOT including taxes priceList should be 18.90 and grossPriceList = 0. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 Error 4: Since we are working with the price including taxes priceList should be 18.90 and grossPriceList = 0. However, when payments are added or layaway is completed values are still correct in the backend Error 5: If for any reason someone needs to check the original price list of the product included in the order line when order line was created, there is no way in the front end to do that. Update: - Go to web POS (PS-1) which uses price NOT including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('discountPercentage') is still not set (it's set when synchronizing the order) - Layaway the order - Load it with open receipt option - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('discountPercentage') is 68.25% - Completely pay the layaway - If you put a breakpoint in the previous code: discountPercentage = OB.DEC.toBigDecimal(grossListPrice) .subtract(grossUnitPrice) .multiply(new BigDecimal('100')) .divide( OB.DEC.toBigDecimal(grossListPrice), 2, BigDecimal.prototype.ROUND_HALF_UP ); - You can check the discountPercentage is calculated based on a previously wrongly calculated grossListPrice. It is always 0. |
||
Revision | 2020-02-12 18:05 by guilleaer | ||
Steps To Reproduce | [scenario 1 -> including taxes] - Go to web POS (VBS-1) which uses price including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 1: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 2: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when payments are added or layaway is completed values are still correct in the backend [scenario 2 -> Not including taxes] - Go to web POS (PS-1) which uses price NOT including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 3: Since we are working with the price NOT including taxes priceList should be 18.90 and grossPriceList = 0. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 Error 4: Since we are working with the price including taxes priceList should be 18.90 and grossPriceList = 0. However, when payments are added or layaway is completed values are still correct in the backend Error 5: If for any reason someone needs to check the original price list of the product included in the order line when order line was created, there is no way in the front end to do that. |
||
Revision | 2020-02-12 17:58 by guilleaer | ||
Steps To Reproduce | [scenario 1 -> including taxes] - Go to web POS (VBS-1) which uses price including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 1: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 2: Since we are working with the price including taxes priceList should be 0 and grossPriceList = 18.90. However, when payments are added or layaway is completed values are still correct in the backend [scenario 2 -> Not including taxes] - Go to web POS (PS-1) which uses price NOT including taxes) - Mark the order as layaway - add Headlamp ultralight (price in the price list = 18.90) - Manually modify that line price (click price and enter 6) - In developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 18.9 OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 18.9 Error 3: Since we are working with the price NOT including taxes priceList should be 18.90 and grossPriceList = 0. However, when order is synchronized values are OK in the backend - layaway the ticket without adding any payment [ticket saved] - Open the menu and open recently created receipt using "Open receipt" - When the ticket is loaded using developer tools check that OB.MobileApp.model.receipt.get('lines').at(0).get('grossListPrice') 6 OB.MobileApp.model.receipt.get('lines').at(0).get('priceList') 6 Error 4: Since we are working with the price including taxes priceList should be 18.90 and grossPriceList = 0. However, when payments are added or layaway is completed values are still correct in the backend Error 5: If for any reason someone needs to check the original price list of the order, it is not possible to do that. |
Copyright © 2000 - 2009 MantisBT Group |