Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032456Retail ModulesWeb POSpublic2016-03-10 19:022016-03-30 10:22
Orekaria 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR16Q2 
marvintm
No
0032456: [Multiorders] Current cash is not updated with multiorders
[Multiorders] Current cash is not updated with multiorders
- do a cashup to be sure that there is no cash

- add an avalanche tranceiver
- in the menu, choose 'pay open tickets'
- choose the receipt you added the product to
- finish the sale

- in the menu, choose 'verified returns'
- select any receipt with amount less than 150.50 (the value of the avalanche)
- try to finish the return
- verify that there is no cash (INCORRECT)

(note that probably can be reproduced also creating a return receipt)



Obsolete:

A)
- Log into the webpos
- Do a cashup

B)
- In the empty receipt, verify that the current cash available is 0:
   in the chrome console, execute:
      OB.MobileApp.model.paymentnames['OBPOS_payment.cash'].currentCash
- Add an 'avalanche transceiver'
- Finish the sale
- Verify that the currentCash available is 150.50

C) Multiorder
1)
- In the new receipt, add a product
2)
- Click new receipt ('*' in the toolbar)
- In the new receipt, add another product
3)
- Remember the sum of the amounts
- In the menu, select 'Pay Open tickets'
- Finish the sales
4)
- Verify that the currentCash is 150.50 (INCORRECT)

D)
- In the new receipt, add a new product
- Finish the sale
- Verify that the currentCash is updated with the total sums (CORRECT)

in the dataordersave.js file, add a call to calculateCurrentcash in the following location

  this.context.get('multiOrders').trigger('integrityOk', this.receipt);
  OB.UTIL.calculateCurrentCash(null, tx);
  OB.MobileApp.model.updateDocumentSequenceWhenOrderSaved(this.receipt.get('documentnoSuffix'), this.receipt.get('quotationnoSuffix'));
No tags attached.
Issue History
2016-03-10 19:02OrekariaNew Issue
2016-03-10 19:02OrekariaAssigned To => Retail
2016-03-10 19:02OrekariaTriggers an Emergency Pack => No
2016-03-10 19:16OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11410#r11410
2016-03-10 19:16OrekariaProposed Solution updated
2016-03-10 19:16OrekariaStatusnew => acknowledged
2016-03-15 08:01SanjotaStatusacknowledged => scheduled
2016-03-15 08:03SanjotaAssigned ToRetail => Sanjota
2016-03-15 17:31OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11448#r11448
2016-03-15 19:09OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11455#r11455
2016-03-15 19:26OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11456#r11456
2016-03-22 18:06jorge-garciaAssigned ToSanjota => Retail
2016-03-22 18:06jorge-garciaStatusscheduled => acknowledged
2016-03-23 13:18ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-03-23 13:18ranjith_qualiantech_comStatusacknowledged => scheduled
2016-03-24 08:30hgbotCheckin
2016-03-24 08:30hgbotNote Added: 0085304
2016-03-24 08:30hgbotStatusscheduled => resolved
2016-03-24 08:30hgbotResolutionopen => fixed
2016-03-24 08:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/55ee388a5ad3f0642bd279fff2a3e15ee89fdc28 [^]
2016-03-30 10:22marvintmReview Assigned To => marvintm
2016-03-30 10:22marvintmStatusresolved => closed
2016-03-30 10:22marvintmFixed in Version => RR16Q2

Notes
(0085304)
hgbot   
2016-03-24 08:30   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 55ee388a5ad3f0642bd279fff2a3e15ee89fdc28
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 24 12:58:36 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/55ee388a5ad3f0642bd279fff2a3e15ee89fdc28 [^]

Fixes issue 32456 : Adding Current Payment Calculation in Multiorder process

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---