Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047634Retail ModulesWeb POSpublic2021-09-06 14:432021-12-09 09:23
dorian_robillard 
ranjith_qualiantech_com 
normalminoralways
closedno change required 
5
 
 
marvintm
No
0047634: POS Screen is frozen when I use Pay open ticket with cheque payment method
When I use "cheque" payment method for the functionality "pay open tickets", the screen is frozen.
Open 2 tickets in POS and add products for both
Use "pay open tickets"
Select "cheque" payment method and click on pay total
The screen is frozen


https://drive.google.com/file/d/13n553euRPSy2xSKs1xerstEHbiOtreT0/view [^]
No tags attached.
related to defect 0044672 closed adrianromero Payment Group Providers do not work with Pay Open Tickets 
Issue History
2021-09-06 14:43dorian_robillardNew Issue
2021-09-06 14:43dorian_robillardAssigned To => Retail
2021-09-06 14:43dorian_robillardTriggers an Emergency Pack => No
2021-09-15 08:29guilleaerProjectPOS2 => Retail Modules
2021-09-15 08:30guilleaerCategoryPOS => Web POS
2021-12-04 06:48ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-12-07 11:46ranjith_qualiantech_comRelationship addedrelated to 0044672
2021-12-07 11:53ranjith_qualiantech_comNote Added: 0133513
2021-12-09 09:23marvintmReview Assigned To => marvintm
2021-12-09 09:23marvintmNote Added: 0133543
2021-12-09 09:23marvintmStatusnew => closed
2021-12-09 09:23marvintmResolutionopen => no change required

Notes
(0133513)
ranjith_qualiantech_com   
2021-12-07 11:53   
To fix the issue,
Solution from the issue https://issues.openbravo.com/view.php?id=44672 [^] needs to be applied.
And in addition to that
Below Hook needs to be modified (it should support both Ticket and PayOpenTicket)
To differentiate, if order.get('multiOrdersList') then it is a pay open ticket else normal ticket.
OB.UTIL.HookManager.registerHook('OBPOS_preAddPayment', function(
  args,
  callbacks
) {
  let order = args.receipt,
    request = new OB.DS.Process(
      'com.openbravo.france.lbi.loyalty.process.GetTotalLoyaltyPoints'
    ),
    subs = order.get('lbiSubs'),
    bpDocumentNo = order.get('bp').get('lbicustDocumentno'),
(0133543)
marvintm   
2021-12-09 09:23   
No further changes need to be done to the master code. A combination of backporting a previously fixed issue, and applying a fix in custom code will solve the problem for the customer.