Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038781Retail ModulesWeb POSpublic2018-06-18 13:212018-06-22 12:08
marvintm 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR18Q3 
marvintm
No
0038781: Available credit for a customer should be checked online
Currently the credit available for a customer is checked against the local database. This is not good enough, because the credit could be generated in different terminals, and the terminals would not realise the credit was already consumed.

The available credit must be checked online when the ticket is marked to be paid on credit.
- Set credit limit to 100 in customer Arturo Montoro.
- Log in with terminal VBS-1
- Log in with terminal VBS-2
- Create a ticket in VBS-1 for Arturo Montoro with total 100, and pay it on credit.
- Do the same thing in VBS-2. Notice that it is possible to also pay it on credit, and therefore at this point Arturo Montoro has credit used 200. This is not correct.
Credit limit as of now is considered "configuration" information for the customer, and it is ok to still check it in the local table.

However, credit used should be checked online with a request to the backend.

We also need to add a preference so that users can decide whether they want to allow sale on credit when the terminal goes offline.
No tags attached.
Issue History
2018-06-18 13:21marvintmNew Issue
2018-06-18 13:21marvintmAssigned To => Retail
2018-06-18 13:21marvintmTriggers an Emergency Pack => No
2018-06-18 13:21marvintmResolution time => 1530223200
2018-06-18 13:28marvintmProposed Solution updated
2018-06-20 15:09ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-06-20 15:09ranjith_qualiantech_comStatusnew => scheduled
2018-06-22 10:09hgbotCheckin
2018-06-22 10:09hgbotNote Added: 0105327
2018-06-22 10:09hgbotStatusscheduled => resolved
2018-06-22 10:09hgbotResolutionopen => fixed
2018-06-22 10:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d28bded0cf663db52647ec3fb367d50d2e38c411 [^]
2018-06-22 12:08marvintmReview Assigned To => marvintm
2018-06-22 12:08marvintmStatusresolved => closed
2018-06-22 12:08marvintmFixed in Version => RR18Q3

Notes
(0105327)
hgbot   
2018-06-22 10:09   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d28bded0cf663db52647ec3fb367d50d2e38c411
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jun 22 13:39:17 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d28bded0cf663db52647ec3fb367d50d2e38c411 [^]

Fixed issue 38781 : Added Preference to allow sell on credit while offline

* Added new prefrence Web POS Allow sell on credit while offline ("OBPOS_AllowSellOnCreditWhileOffline") to allow sell on credit while offline

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_PREFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---