Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038965Retail ModulesWeb POSpublic2018-07-16 11:192018-10-23 11:24
adrianromero 
adrianromero 
urgentmajoralways
closedfixed 
5
 
 
migueldejuana
No
0038965: Exact payment in a foreign amount must use the multiply by rate not divide by rate
When executing the exact payment action in a foreign currency, to do exactly the same calculation done when calculating the pending to pay, the payment amount to pay must be calculated as multiplying the pending amount by the *multiply by rate* field instead of dividing the amount by the *divide by rate*.
* First update the Format.xml configuration file with the following entries and rebuild the instance:
   <Number name="generalQtyRelation"
       decimal="." grouping="," formatOutput="#,##0.############" formatInternal="#0.000000000000" />
   <Number name="generalQtyEdition"
       decimal="." grouping="," formatOutput="#0.############" formatInternal="#0.000000000000" />
   <Number name="generalQtyExcel"
       decimal="." grouping="," formatOutput="#,##0.############" formatInternal="#0.000000000000" />

* Modify the Conversion Rate for EUR -> USD as multiply rate 4100, divide rate is automatically calculated as 0.000243902439. Do the same for USD -> EUR conversion, but in the opposite direction.

* Login in Web POS and create a receipt for a total of 20.00€
* Go to the payment panel and add a payment of 19.00€
* Select Cash USA payment method and observe the remaining to pay is $4.100.
* Select the exact payment action and observe the payment amount is $4.098. This is wrong and must be $4.100 as calculated in the remaining to pay.
Apply the attached changeset
No tags attached.
related to defect 0038927 closed adrianromero To calculate pending to pay in a foreign amount it is not used the configured multiply by rate 
diff issue38965.diff (1,193) 2018-07-16 11:50
https://issues.openbravo.com/file_download.php?file_id=11966&type=bug
Issue History
2018-07-16 11:19adrianromeroNew Issue
2018-07-16 11:19adrianromeroAssigned To => Retail
2018-07-16 11:19adrianromeroTriggers an Emergency Pack => No
2018-07-16 11:19adrianromeroRelationship addedrelated to 0038927
2018-07-16 11:20adrianromeroSummaryExact payment in a foreign amount must use the multiply by rate not divide rate => Exact payment in a foreign amount must use the multiply by rate not divide by rate
2018-07-16 11:23adrianromeroDescription Updatedbug_revision_view_page.php?rev_id=17420#r17420
2018-07-16 11:23adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17422#r17422
2018-07-16 11:50adrianromeroAssigned ToRetail => adrianromero
2018-07-16 11:50adrianromeroFile Added: issue38965.diff
2018-10-15 10:24hgbotCheckin
2018-10-15 10:24hgbotNote Added: 0107277
2018-10-15 10:24hgbotStatusnew => resolved
2018-10-15 10:24hgbotResolutionopen => fixed
2018-10-15 10:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/181cb2f12ceb88d1950aa4903496d66d8d97e28c [^]
2018-10-15 10:24hgbotCheckin
2018-10-15 10:24hgbotNote Added: 0107278
2018-10-15 10:24hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/181cb2f12ceb88d1950aa4903496d66d8d97e28c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5b7c3d3aaa9d4628b0fdc10f6a85397ea8695d57 [^]
2018-10-15 10:24hgbotCheckin
2018-10-15 10:24hgbotNote Added: 0107279
2018-10-15 10:24hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5b7c3d3aaa9d4628b0fdc10f6a85397ea8695d57 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4eb6161cdd82d8d8dafaf5519165ee838cd683bf [^]
2018-10-22 12:55adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17799#r17799
2018-10-23 09:22adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17804#r17804
2018-10-23 11:24migueldejuanaReview Assigned To => migueldejuana
2018-10-23 11:24migueldejuanaNote Added: 0107513
2018-10-23 11:24migueldejuanaStatusresolved => closed

Notes
(0107277)
hgbot   
2018-10-15 10:24   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 181cb2f12ceb88d1950aa4903496d66d8d97e28c
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Jul 16 11:33:12 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/181cb2f12ceb88d1950aa4903496d66d8d97e28c [^]

Fixes issue 0038965: Exact payment in a foreign amount must use the multiply by rate not divide by rate

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0107278)
hgbot   
2018-10-15 10:24   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5b7c3d3aaa9d4628b0fdc10f6a85397ea8695d57
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Jul 16 19:15:42 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5b7c3d3aaa9d4628b0fdc10f6a85397ea8695d57 [^]

Fixes issue 0038965: Exact payment in a foreign amount must use the multiply by rate not divide by rate

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0107279)
hgbot   
2018-10-15 10:24   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4eb6161cdd82d8d8dafaf5519165ee838cd683bf
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Jul 18 11:48:20 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4eb6161cdd82d8d8dafaf5519165ee838cd683bf [^]

Fixes issue 0038965: Exact payment in a foreign amount must use the multiply by rate not divide by rate
Fixing graft of the changeset

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0107513)
migueldejuana   
2018-10-23 11:24   
Tested and reviewed