Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051797Retail ModulesWeb POSpublic2023-03-07 23:032023-04-12 05:44
axelmercado 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
RR20Q3.4 
aaroncalero
No
0051797: Wrong Pick&Carry PaidAmount validation.
There is a problem in the validation of Pick&Carry PaidAmount when we want to pay a return and a normal order at the same time, an error is generated, plus if you have a limit for the use of any payment method, when it is fulfilled, the terminal ends up blocked without being able to perform any action.
To reproduce the issue (In CCASH) (Issue will not be reproducible in livebuilds)
1) Add a product with price 10 and mark it as return receipt (do not complete)
2) New Receipt, Add a product with price 20
3) Open "Pay open Tickets", select above 2 draft tickets
4) Complete the ticket. Error occurred.

Video with an example: https://drive.google.com/file/d/1IJRdCVRrPNyGJ8-BizX81tnVqyaL5att/view?usp=sharing [^]
No tags attached.
related to design defect 0048985 closed ranjith_qualiantech_com When having an independent service as Return line (-) and a product where we have to do a calculation we have an error 
png limitAmoutForBlocking.png (122,085) 2023-03-07 23:03
https://issues.openbravo.com/file_download.php?file_id=18227&type=bug
png
Issue History
2023-03-07 23:03axelmercadoNew Issue
2023-03-07 23:03axelmercadoAssigned To => Retail
2023-03-07 23:03axelmercadoFile Added: limitAmoutForBlocking.png
2023-03-07 23:03axelmercadoTriggers an Emergency Pack => No
2023-03-07 23:06axelmercadoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25643#r25643
2023-03-15 15:27ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-03-15 15:27ranjith_qualiantech_comStatusnew => scheduled
2023-03-16 11:17ranjith_qualiantech_comRelationship addedrelated to 0048985
2023-03-21 14:10axelmercadoSummaryTicket blocking when the limit is reached in a payment method cash. => Wrong Pick&Carry PaidAmount validation.
2023-03-21 14:10axelmercadoDescription Updatedbug_revision_view_page.php?rev_id=25731#r25731
2023-03-21 14:10axelmercadoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25732#r25732
2023-03-30 08:22ranjith_qualiantech_comNote Added: 0148095
2023-03-31 07:48ranjith_qualiantech_comNote Edited: 0148095bug_revision_view_page.php?bugnote_id=0148095#r25809
2023-04-03 15:02aaroncaleroStatusscheduled => resolved
2023-04-03 15:02aaroncaleroResolutionopen => fixed
2023-04-03 15:03aaroncaleroReview Assigned To => aaroncalero
2023-04-03 15:03aaroncaleroNote Added: 0148202
2023-04-03 15:03aaroncaleroStatusresolved => closed
2023-04-12 05:44ranjith_qualiantech_comNote Added: 0148389
2023-04-12 06:48ranjith_qualiantech_comNote Edited: 0148389bug_revision_view_page.php?bugnote_id=0148389#r25850

Notes
(0148095)
ranjith_qualiantech_com   
2023-03-30 08:22   
(edited on: 2023-03-31 07:48)
Issue is fixed in the MR (created in issue https://issues.openbravo.com/view.php?id=48985 [^])

(0148202)
aaroncalero   
2023-04-03 15:03   
Marking issue as Closed as the related issue 0048985 (which also fixes this issue) has been closed.
(0148389)
ranjith_qualiantech_com   
2023-04-12 05:44   
(edited on: 2023-04-12 06:48)
Detailed Steps to reproduce in CCASH
POS
1) Cash Management
   Make sure, cash is more than 2000.
   if not make sales more than 2000

Backoffice
1) Touchpoint Type
   For Cash Payment
   Limit to stop web operations = 2000
2) Enable Pref. "Web POS Enable Delivery Modes"

POS
1) Add Product with price "10" and do Return line (Do not complete it or add payment)
2) Create new receipt
3) Add Product with price "20"(Do not complete it or add payment)
4) Open above 2 tickets in pay open tickets
5) Complete the ticket

Current Result:
Error popup is shown: "You can’t perform more actions with payment method %0 since the limit has been reached. Please take appropriate action"
Within certain ms,
error was overwritten: "The amount paid is lower than the amount of Pick & Carry lines for the following order(s):"
Within certain ms,
Send Email Popup is shown
Issue occurred due to Cash payment was added for distributing payments across receipt. So when adding cash payment, limit error was triggered.

Expected Result
No Error popup should be shown
Only, Send Email Popup is shown