Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042822Retail ModulesWeb POSpublic2020-01-13 14:102020-01-29 10:55
maite 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR20Q2 
adrianromero
No
0042822: Prepayment Limit amount not correctly calculated when there are PickAndCarry and PickUpInStore lines in the same ticket
Prepayment Limit amount is correctly calculated for PickUpInStore lines. But when PickAndCarry line is added then total ticket amount is shown in prepayment amount instead of proper calculation
Organization Vall Boi Store:
- Prepayment percentage: 100
- Prepayment percentage limit: 10

Preference:
- Web POS Allow prepayments lower than the limit: N
- Web POS Enable Delivery Modes: Y

Channel - Touchpoint Type VB POS Terminal Type:
- Allow prepayments and partial payments: Checked

1. Log into POS (VB-1) with user Vallboi
2. Change customer to Arturo Montoro
3. Add 'Thermo 1L' product. Click on it and set Delivery Mode = Pick Up in store
4. Click on Done button and realize that proper prepayment limit amount has been calculated and correct error is shown "Web POS Prepayments lower than the limit (2.25) not allowed"
5. Add 'Adhesive body warmers'. Leave this line as Pick and Carry
6. Click on Done button and realize that total ticket amount is shown, which is not correct "Web POS Prepayments lower than the limit (26.1) not allowed". Correct amount shown should be 5,85 (which is the 10% of pick up in store line + 100% of pick and carry line)
No tags attached.
related to defect 0043087 closed rqueralta Prepaid management and delivery mode: payment validation (percentage limit and pick & carry) incorrect 2 
png Screenshot from 2020-01-29 10-53-23.png (745,995) 2020-01-29 10:55
https://issues.openbravo.com/file_download.php?file_id=13937&type=bug
Issue History
2020-01-13 14:10maiteNew Issue
2020-01-13 14:10maiteAssigned To => Retail
2020-01-13 14:10maiteResolution time => 1580684400
2020-01-13 14:10maiteTriggers an Emergency Pack => No
2020-01-13 14:10maiteIssue Monitored: networkb
2020-01-15 00:30rqueraltaAssigned ToRetail => rqueralta
2020-01-15 00:34rqueraltaStatusnew => scheduled
2020-01-20 13:29hgbotCheckin
2020-01-20 13:29hgbotNote Added: 0117070
2020-01-20 13:29hgbotStatusscheduled => resolved
2020-01-20 13:29hgbotResolutionopen => fixed
2020-01-20 13:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7e03bd1ea71db7ff9847f4cafa3111b57e04b4ba [^]
2020-01-29 09:24adrianromeroReview Assigned To => adrianromero
2020-01-29 10:54adrianromeroNote Added: 0117316
2020-01-29 10:54adrianromeroStatusresolved => closed
2020-01-29 10:54adrianromeroFixed in Version => RR20Q2
2020-01-29 10:55adrianromeroFile Added: Screenshot from 2020-01-29 10-53-23.png
2020-02-03 11:34guilleaerRelationship addedrelated to 0043087

Notes
(0117070)
hgbot   
2020-01-20 13:29   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7e03bd1ea71db7ff9847f4cafa3111b57e04b4ba
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Sun Jan 19 16:12:48 2020 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7e03bd1ea71db7ff9847f4cafa3111b57e04b4ba [^]

Fixed issue 42822: Prepayment Limit amount not correctly calculated when there
are PickAndCarry and PickUpInStore lines in the same ticket

- Now the prepayment limit is calculated line by line, before this prepayment was
calculated for all lines.

---
M web/org.openbravo.retail.posterminal/js/model/prepaymentrules.js
---
(0117316)
adrianromero   
2020-01-29 10:54   
Verified and closed. Attached screenshot with the current behaviour