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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037537
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-12-21 12:282017-12-22 13:24
Reportersamuel_nicuesaView Statuspublic 
Assigned Tojorge-garcia 
PriorityhighResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revision49b305745699
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR16Q4.3SCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037537: It is necessary to display an advice, red message , and not execute callback when the WEB POS transaction fails.

DescriptionIt is necessary to display an advice and don't execute callback when the WEB POS transaction fails.
Steps To Reproduce-Login into Web POS
-Using org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/data/dataordersave.js file,put a breakpoint in "frozenReceipt.set('hasbeenpaid', 'Y');" line of this part:

           receipt.set('hasbeenpaid', 'Y');
           frozenReceipt.set('hasbeenpaid', 'Y');
           if (OB.MobileApp.model.hasPermission('OBMOBC_SynchronizedMode',
           true)) {
and put another breakpoint in:
        "OB.error("[receipt.closed] The transaction failed..." line.

-Add one product to the receipt and pay it.

-Then execute this commands in the first breakpoint using the developers tools of chrome:
    superreceipt=OB.UTIL.clone(frozenReceipt)
    frozenReceipt=null

-In the second breakpoint execute superreceipt = frozenReceipt.

-After that if you refresh WEB POS you can see the same receipt because it has not been synchronized and there wasn't a red popup showing the error (transaction failed...).
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0101198)
hgbot (developer)
2017-12-22 09:31

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 49b3057456996423b8fd5007bf7383a88294e168
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Dec 22 09:31:43 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/49b3057456996423b8fd5007bf7383a88294e168 [^]

Fixed issue 37537: It is necessary to display an advice, red message , and
not execute callback when the WEB POS transaction fails.

The solution is to show a red message when the transaction fails and don’t
execute the callback to stop the execution flow.

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---

- Issue History
Date Modified Username Field Change
2017-12-21 12:28 samuel_nicuesa New Issue
2017-12-21 12:28 samuel_nicuesa Assigned To => Retail
2017-12-21 12:28 samuel_nicuesa Resolution time => 1515625200
2017-12-21 12:28 samuel_nicuesa Triggers an Emergency Pack => No
2017-12-21 17:26 jorge-garcia Status new => scheduled
2017-12-21 17:26 jorge-garcia Assigned To Retail => jorge-garcia
2017-12-22 09:31 hgbot Checkin
2017-12-22 09:31 hgbot Note Added: 0101198
2017-12-22 09:31 hgbot Status scheduled => resolved
2017-12-22 09:31 hgbot Resolution open => fixed
2017-12-22 09:31 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/49b3057456996423b8fd5007bf7383a88294e168 [^]
2017-12-22 13:24 marvintm Review Assigned To => marvintm
2017-12-22 13:24 marvintm Status resolved => closed
2017-12-22 13:24 marvintm Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker