Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2019-02-07 20:282019-02-18 13:41
ReporterlbressanView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityimmediateResolutionfixedFixed in VersionRR18Q3.5
StatusclosedFix in branchFixed in SCM revision561bd8004e2d
ProjectionnoneETAnoneTarget VersionRR18Q3.5
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression levelProduction - QA Approved
Regression date2018-09-20
Regression introduced in releaseRR18Q4
Regression introduced by commit [^]
Triggers an Emergency PackNo

0040218: Total button stays disabled when creating canceling PreOrderSave hook for quotations.

DescriptionThis only happen for quotations:
When there is a hook implemented for OBPOS_PreOrderSave, and this hook cancels the operation for some reason (via the cancellation property in arguments), the ticket total button stays disabled.
This also was working properly until release 18Q2.4.

It seems that the change to Process Controller is causing the issue, and the button is not receiving an event to be enabled properly.
This in 18Q2.4 was handled by the synchronizing and synchronized events in the OB.OBPOSPointOfSale.UI.ButtonTabPayment kind.
Steps To Reproduce1. Log in to POS
2. Create a quotation via the menu
3. Add any product.
4. Open developer console
5. In console, create a hook that cancels the operation:
OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function(a,b){
  a.cancellation = true;
6. Click the total button.
7. The total button is now greyed out and can only be restored by switching to another ticket.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0040173 closedranjith_qualiantech_com Total button stays disabled when creating canceling PreOrderSave hook for quotations. 

-  Notes
hgbot (developer)
2019-02-18 09:09

Repository: retail/backports/3.0RR18Q3.5/org.openbravo.retail.posterminal
Changeset: 561bd8004e2dda73e24af9baef8e415cbc192fda
Author: Ranjith S R <ranjith <at>>
Date: Mon Feb 18 13:39:15 2019 +0530
URL: [^]

Fixed issue 40218 : Implemented ProcessController when closing quotations

* Refactored Quotation close callback
  1) If receipt callback is cancelled, then quotation should not be printed

M src-db/database/sourcedata/OBMOBC_PROCESS_DEFINITION.xml
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js

- Issue History
Date Modified Username Field Change
2019-02-15 11:50 ranjith_qualiantech_com Type defect => backport
2019-02-15 11:50 ranjith_qualiantech_com Target Version => RR18Q3.5
2019-02-18 09:09 hgbot Checkin
2019-02-18 09:09 hgbot Note Added: 0109889
2019-02-18 09:09 hgbot Status scheduled => resolved
2019-02-18 09:09 hgbot Resolution open => fixed
2019-02-18 09:09 hgbot Fixed in SCM revision [^] => [^]
2019-02-18 13:41 marvintm Review Assigned To => marvintm
2019-02-18 13:41 marvintm Status resolved => closed
2019-02-18 13:41 marvintm Fixed in Version => RR18Q3.5

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker