Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040659
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-04-23 14:592019-05-17 15:26
Reportersamuel_nicuesaView Statuspublic 
Assigned Torqueralta 
PriorityhighResolutionfixedFixed in VersionRR19Q3
StatusclosedFix in branchFixed in SCM revision3c24b74f4160
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040659: If the change is paid using a foreign currency the variable called change is not updated with the foreign currency.

DescriptionThis variable is located in the receipt and has the change in the local currency .
Steps To Reproduce[POS]

Login using vallblanca

Create a ticket and add one product

Pay more than the product price and return the change in USA Cash

Example

Product Price = 30 €
 
Pay 50 €

Change is 20 € = 26.29$


If you try to print the change in the print template using this variable OB.MobileApp.model.receipt.attributes.change you will see 20 € instead of 26.29$


The same behavior is happening if you use OB.MobileApp.model.attributes.changeReceipt variable.
TagsNo tags attached.
Attached Filespng file icon img1.png [^] (12,902 bytes) 2019-04-23 14:59


png file icon img2.png [^] (22,840 bytes) 2019-04-23 14:59

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0111320)
hgbot (developer)
2019-04-25 14:44

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3c24b74f4160b31ef166b428bde5bd7a0e4a52b4
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 24 16:18:04 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3c24b74f4160b31ef166b428bde5bd7a0e4a52b4 [^]

Fixed issue 40659: If the change is paid using a foreign currency the variable
called change is not updated with the foreign currency.

- Avoided unnecessary call to calculateChange funtion.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0111549)
marvintm (manager)
2019-05-07 18:54

Fix is not working properly, the change is still set in the main currency of the store.
(0111553)
marvintm (manager)
2019-05-07 23:40

Finally the fix is correct, the change in different currency is saved in the "changePayments" variable, and here the value is correct.
(0111775)
hgbot (developer)
2019-05-17 15:26

Repository: tools/automation/pi-mobile
Changeset: bf120555e05db8d9268fdf948b4589904b104485
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Wed May 08 11:27:52 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/bf120555e05db8d9268fdf948b4589904b104485 [^]

Related to issue 40659: added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I40659_VerifyChangeValueIfPayingWithForeignCurrency.java
---

- Issue History
Date Modified Username Field Change
2019-04-23 14:59 samuel_nicuesa New Issue
2019-04-23 14:59 samuel_nicuesa Assigned To => Retail
2019-04-23 14:59 samuel_nicuesa File Added: img1.png
2019-04-23 14:59 samuel_nicuesa Resolution time => 1557784800
2019-04-23 14:59 samuel_nicuesa Triggers an Emergency Pack => No
2019-04-23 14:59 samuel_nicuesa File Added: img2.png
2019-04-23 23:33 rqueralta Assigned To Retail => rqueralta
2019-04-23 23:33 rqueralta Status new => scheduled
2019-04-25 14:44 hgbot Checkin
2019-04-25 14:44 hgbot Note Added: 0111320
2019-04-25 14:44 hgbot Status scheduled => resolved
2019-04-25 14:44 hgbot Resolution open => fixed
2019-04-25 14:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3c24b74f4160b31ef166b428bde5bd7a0e4a52b4 [^]
2019-05-07 18:54 marvintm Note Added: 0111549
2019-05-07 18:54 marvintm Status resolved => new
2019-05-07 18:54 marvintm Resolution fixed => open
2019-05-07 23:38 marvintm Status new => scheduled
2019-05-07 23:39 marvintm Status scheduled => resolved
2019-05-07 23:39 marvintm Fixed in Version => RR19Q3
2019-05-07 23:39 marvintm Resolution open => fixed
2019-05-07 23:40 marvintm Review Assigned To => marvintm
2019-05-07 23:40 marvintm Note Added: 0111553
2019-05-07 23:40 marvintm Status resolved => closed
2019-05-17 15:26 hgbot Checkin
2019-05-17 15:26 hgbot Note Added: 0111775


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker