Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027422Retail ModulesWeb POSpublic2014-08-22 14:012014-09-12 03:25
jonalegriaesarte 
mtaal 
immediatemajorhave not tried
closedfixed 
5
 
RR14Q4RR14Q4 
szapata
No
0027422: Initial count in session module does not work fine if two payment methods are defined as cash in the same currency
Initial count in session module does not work fine if two payment methods are defined as cash. The system does not take into consideration always the same, it takes it randomly.
- Install session module
- Define an initial count
- Set to payment methods as cash in the same currency
- Notice that the initial count takes it randomly
Flag the payment method as initial count
No tags attached.
png Selection_020.png (101,558) 2014-08-27 16:59
https://issues.openbravo.com/file_download.php?file_id=7168&type=bug
png
Issue History
2014-08-22 14:01jonalegriaesarteNew Issue
2014-08-22 14:01jonalegriaesarteAssigned To => mtaal
2014-08-22 14:01jonalegriaesarteResolution time => 1409004000
2014-08-22 14:01jonalegriaesarteTriggers an Emergency Pack => No
2014-08-25 08:53egoitzIssue Monitored: egoitz
2014-08-27 16:58mtaalNote Added: 0069811
2014-08-27 16:59mtaalNote Added: 0069812
2014-08-27 16:59mtaalFile Added: Selection_020.png
2014-08-29 17:15hgbotCheckin
2014-08-29 17:15hgbotNote Added: 0069862
2014-08-29 17:15hgbotStatusnew => resolved
2014-08-29 17:15hgbotResolutionopen => fixed
2014-08-29 17:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c635819ccf0b50bb11d7817806946ba44986ce91 [^]
2014-09-08 09:04mtaalNote Added: 0070002
2014-09-08 09:04mtaalStatusresolved => new
2014-09-08 09:04mtaalResolutionfixed => open
2014-09-10 13:16hgbotCheckin
2014-09-10 13:16hgbotNote Added: 0070072
2014-09-10 13:23hgbotCheckin
2014-09-10 13:23hgbotNote Added: 0070073
2014-09-10 20:24mtaalStatusnew => scheduled
2014-09-10 20:24mtaalNote Added: 0070074
2014-09-10 20:24mtaalfix_in_branch => pi
2014-09-10 20:24mtaalStatusscheduled => resolved
2014-09-10 20:24mtaalFixed in Version => RR14Q4
2014-09-10 20:24mtaalResolutionopen => fixed
2014-09-12 03:25szapataReview Assigned To => szapata
2014-09-12 03:25szapataNote Added: 0070095
2014-09-12 03:25szapataStatusresolved => closed

Notes
(0069811)
mtaal   
2014-08-27 16:58   
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.posterminal.cds/rev/9ab54d9b711f [^]
(0069812)
mtaal   
2014-08-27 16:59   
I added a flag to define a default cash payment method. The first payment method with this flag will be chosen as the default cash payment method in WebPOS.

See the attached screenshot for this flag.

gr. Martin
(0069862)
hgbot   
2014-08-29 17:15   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c635819ccf0b50bb11d7817806946ba44986ce91
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Aug 29 17:15:24 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c635819ccf0b50bb11d7817806946ba44986ce91 [^]

Fixes issue 27422: Initial count in session module does not work fine if two payment methods are defined as cash in the same currency
Add a flag to flag one of the payment methods as the default cash payment method for the

---
M src-db/database/model/tables/OBPOS_APP_PAYMENT_TYPE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070002)
mtaal   
2014-09-08 09:04   
Re-opened to add validation that there is only cash payment method flagged as default.
(0070072)
hgbot   
2014-09-10 13:16   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 68163845347d8d2d0fbc03f18561ab078c17db6b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 10 13:15:46 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/68163845347d8d2d0fbc03f18561ab078c17db6b [^]

Related to issue 27422: Initial count in session module does not work fine if two payment methods are defined as cash in the same currency
Prevent more than one default cash payment method

---
M src-db/database/sourcedata/AD_MESSAGE.xml
A src/org/openbravo/retail/posterminal/PaymentMethodHandler.java
---
(0070073)
hgbot   
2014-09-10 13:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a4a833082ceab624d3cb3a81efe74219a324c67a
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 10 13:22:50 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a4a833082ceab624d3cb3a81efe74219a324c67a [^]

Related to issue 27422: Initial count in session module does not work fine if two payment methods are defined as cash in the same currency
Updated license text

---
M src/org/openbravo/retail/posterminal/PaymentMethodHandler.java
---
(0070074)
mtaal   
2014-09-10 20:24   
.
(0070095)
szapata   
2014-09-12 03:25   
Always get the default payment method. Just a nice to have, it would be good to set by default this field to 'Y' or force at least one cash payment method as default.