Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034387Retail ModulesLayaway orderpublic2016-11-04 09:542016-11-04 10:11
lorenzofidalgo 
Retail 
immediateminoralways
closedduplicate 
5
main 
 
marvintm
Packaging and release
No
0034387: [RR16Q4] Close a Layaway with discounts in POS throws an error: "Cannot calculate receipt taxes"
When POS user clicks "X" button to close a Layaway which has discounts throws an error:
Cannot calculate receipt taxes
dodivide(): Divide by 0

(check attached screenshot).

This has been reproduced in a RR16Q4 release. Store Server architecture with HighVol environment and "Gift Cards and Vouchers" module. It has not been reproducible in PI livebuilds or RR16Q3.2 livebuilds.

-------------
In the Chome console the following error is shown:

8b43ee6…_WebPOS.js:153
Cannot calculate receipt taxes:dodivide(): Divide by 0; line: http://localhost/openbravo/web/js/gen/8b43ee642b6fb764c5b25aa49a0b4fcb_WebPOS.js:1600:514 [^] (*,+)

processConsoleLevel @ 8b43ee6…_WebPOS.js:153
OB.error @ 8b43ee6…_WebPOS.js:154
(anonymous function) @ 8b43ee6…_WebPOS.js:1600
0-Login POS as vallblanca.
1-In dropdown menu, click "Layaway this receipt".
2-Add 1x "Adhesive body warmers".
3-In dropdown menu, click "Receipt discounts" and select and apply "disc_5_var_perc - 5%" discount to that receipt.
4-Click Total Amount button and click Layaway button.
5-In dropdown menu, go to Layaways and select the just created Layaway.
6-Now, click in the "X" green button to close the Layaway. DEFECT: It will throw an error: "Cannot calculate receipt taxes".
No tags attached.
duplicate of defect 0034299 closed mario_castello [SER-QA 1942] Error while deleting a receipt that has line with discounts applied. 
png CannotCalculateReceiptTaxes.png (121,272) 2016-11-04 09:54
https://issues.openbravo.com/file_download.php?file_id=10011&type=bug
png

png LayawayWithDiscount.png (243,733) 2016-11-04 09:54
https://issues.openbravo.com/file_download.php?file_id=10012&type=bug
png
Issue History
2016-11-04 09:54lorenzofidalgoNew Issue
2016-11-04 09:54lorenzofidalgoAssigned To => Retail
2016-11-04 09:54lorenzofidalgoFile Added: CannotCalculateReceiptTaxes.png
2016-11-04 09:54lorenzofidalgoRegression level => Packaging and release
2016-11-04 09:54lorenzofidalgoTriggers an Emergency Pack => No
2016-11-04 09:54lorenzofidalgoFile Added: LayawayWithDiscount.png
2016-11-04 09:55lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=13547#r13547
2016-11-04 10:02lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=13548#r13548
2016-11-04 10:04lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=13549#r13549
2016-11-04 10:06lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=13550#r13550
2016-11-04 10:11marvintmReview Assigned To => marvintm
2016-11-04 10:11marvintmRelationship addedduplicate of 0034299
2016-11-04 10:11marvintmStatusnew => closed
2016-11-04 10:11marvintmResolutionopen => duplicate

There are no notes attached to this issue.