Openbravo Issue Tracking System - POS2
View Issue Details
0047033POS2Restaurantspublic2021-06-09 11:072021-06-22 15:42
timothee_catteeuw 
jorge-garcia 
normalminoralways
closedfixed 
5
 
TAP 
javierRodriguez
No
0047033: JIRA 2020 - it is possible to generate a Proof of payment with an 0 amount
Currently on the restaurant module it is possible to generate a proof of payment with an 0 amount.

For example in case you do a ticket and you apply 100% discount off.
The sales ticket can be printed and the amount is O.

After if you try to do a proof of payment it is possible but 2 things :
- when trying generating it in filled in amount by filling in an amount (ex : 10 €), this technical error is displayed --> dodivide(): Divide by 0
- The client indicated me this can not happened, if the amount is 0, impossible to do a proof of payment, you can try nowadays it is possible (if the ticket is 0 € and you do a proof of payment in equal part for example)
Do a ticket
Select 1 or more articles
Apply a 100% off (example a manual discount)
Print the sales ticket
Open the last proof of payment option
Create a proof of payment (filled in amount) with 10 €
Generate
error = dodivide(): Divide by 0


No tags attached.
Issue History
2021-06-09 11:07timothee_catteeuwNew Issue
2021-06-09 11:07timothee_catteeuwAssigned To => Retail
2021-06-09 11:07timothee_catteeuwTriggers an Emergency Pack => No
2021-06-09 11:44dmiguelezStatusnew => acknowledged
2021-06-09 11:44dmiguelezTypedesign defect => defect
2021-06-09 11:45dmiguelezResolution time => 1625608800
2021-06-22 11:04jorge-garciaAssigned ToRetail => jorge-garcia
2021-06-22 11:04jorge-garciaStatusacknowledged => scheduled
2021-06-22 12:29hgbotNote Added: 0129714
2021-06-22 12:30jorge-garciaReview Assigned To => javierRodriguez
2021-06-22 15:42hgbotResolutionopen => fixed
2021-06-22 15:42hgbotStatusscheduled => closed
2021-06-22 15:42hgbotNote Added: 0129719
2021-06-22 15:42hgbotNote Added: 0129720

Notes
(0129714)
hgbot   
2021-06-22 12:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/572 [^]
(0129719)
hgbot   
2021-06-22 15:42   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: aa5e77b88289f51278ec233e7f4b7b4944acced6
Author: Jorge Garcia <jorge.garcia@openbravo.com>
Date: 2021-06-22T15:34:45+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/aa5e77b88289f51278ec233e7f4b7b4944acced6 [^]

Fixed ISSUE-47033: Avoid to navigate to Proof Of Payment window if the ticket
has groosAmount of 0

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/proofOfPayment/OpenProofOfPaymentList.js
---
(0129720)
hgbot   
2021-06-22 15:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/572 [^]