Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034185Retail ModulesWeb POSpublic2016-10-11 10:372016-10-21 09:27
javietxe 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
3016.04
 
RR17Q1 
guilleaer
No
0034185: When saving a not paid layaway, if the preOrderSave hook ends with the cancellation flag, the Layaway button disappears.
When saving a not paid layaway, if the preOrderSave hook ends with the cancellation flag, the Layaway button disappears.

Sample Hook:

(function () {

  OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function (args, callback) {
      args.cancellation = true;
      OB.UTIL.HookManager.callbackExecutor(args, callback);
   });
}());
With the hook of the description inserted.

1. Log in webPOS
2. Create a Layaway
3. Add a product to the ticket
4. Validate the layaway
5. Press "Layaway" button

The saving is cancelled, but the "Layaway" button doesn't appear. The only possibility is to add a payment.
SER-QA
causes defect 0034799 closed ranjith_qualiantech_com Layaway button status is not right with Reverse Payments 
Issue History
2016-10-11 10:37javietxeNew Issue
2016-10-11 10:37javietxeAssigned To => Orekaria
2016-10-11 10:37javietxeResolution time => 1476741600
2016-10-11 10:37javietxeTriggers an Emergency Pack => No
2016-10-11 10:37javietxeIssue Monitored: javietxe
2016-10-11 10:38javietxeTag Attached: SER-QA
2016-10-17 14:01marvintmResolution time1476741600 => 1477346400
2016-10-17 14:01marvintmAssigned ToOrekaria => Retail
2016-10-17 15:22ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-10-17 15:22ranjith_qualiantech_comStatusnew => scheduled
2016-10-19 08:04hgbotCheckin
2016-10-19 08:04hgbotNote Added: 0090683
2016-10-19 08:04hgbotStatusscheduled => resolved
2016-10-19 08:04hgbotResolutionopen => fixed
2016-10-19 08:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3eb9492cdf2deda1a59ee7319bfd839af2761a4b [^]
2016-10-19 08:04hgbotCheckin
2016-10-19 08:04hgbotNote Added: 0090684
2016-10-21 09:27guilleaerReview Assigned To => guilleaer
2016-10-21 09:27guilleaerStatusresolved => closed
2016-10-21 09:27guilleaerFixed in Version => RR17Q1
2016-12-21 13:25jorge-garciaRelationship addedcauses 0034799

Notes
(0090683)
hgbot   
2016-10-19 08:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3eb9492cdf2deda1a59ee7319bfd839af2761a4b
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Oct 18 11:07:55 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3eb9492cdf2deda1a59ee7319bfd839af2761a4b [^]

Fixes issue 34185 : Show Layaway button if the layaway is not saved in local db

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0090684)
hgbot   
2016-10-19 08:04   
Repository: tools/automation/pi-mobile
Changeset: 3540c28d91e3b9b7561f1545cd1081ae13975c84
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Oct 19 11:33:08 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/3540c28d91e3b9b7561f1545cd1081ae13975c84 [^]

Verifies issue 34185 : Added automated test 'I34185_VerifyLayawayWithHookCancellation'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I34185_VerifyLayawayWithHookCancellation.java
---