Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033899Retail ModulesWeb POSpublic2016-09-05 16:512016-10-17 12:54
guilleaer 
ranjith_qualiantech_com 
normalmajoralways
closedduplicate 
5
 
 
guilleaer
No
0033899: Discounts by payment method breaks "pay open tickets" flow
Having installed "Discount by payment method" module, multiorders is not working.

Note: Reproduced in 16Q2.2
1. Log in in web POS
2. Add product to the ticket (remember doc number)
3. Press button "new" (icon)
4. Add product to the ticket (remember doc number)
5. Press menu
6. Press "Pay open ticket"
7. In the popup select the tickets created in step 2 and 4
8. Try to pay both tickets using "pay exact" button
9. Press done

At this points the system get stucks and orders are not processed
It happens because this module implements the hook 'OBPOS_preAddPayment'

the implementation of the hooks creates and asynchrony but this asynchrony will never be attended because the "single" thread of javascript is busy processing a while. The asynchrony will never be attended until "while" finishes, but it will not finish never because its waiting to the result of the callback to fulfil the condition.
No tags attached.
duplicate of defect 0033512 closed ranjith_qualiantech_com POS Stuck when completing tickets from Pay Open Tickets in Retail Modules instance 
Issue History
2016-09-05 16:51guilleaerNew Issue
2016-09-05 16:51guilleaerAssigned To => Retail
2016-09-05 16:51guilleaerTriggers an Emergency Pack => No
2016-10-13 10:35ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-10-13 10:35ranjith_qualiantech_comStatusnew => scheduled
2016-10-17 12:54guilleaerRelationship addedduplicate of 0033512
2016-10-17 12:54guilleaerReview Assigned To => guilleaer
2016-10-17 12:54guilleaerNote Added: 0090632
2016-10-17 12:54guilleaerStatusscheduled => closed
2016-10-17 12:54guilleaerResolutionopen => duplicate

Notes
(0090632)
guilleaer   
2016-10-17 12:54   
This issue is already fixed

https://issues.openbravo.com/view.php?id=33512 [^]