Notes |
|
(0101592)
|
hgbot
|
2018-01-05 12:52
|
|
|
|
|
Current hook works correctly, but we need to implement the same functionality for multiorders flow (Pay Open Tickets). The hook should also be called there, individually per paid ticket, and the individual ticket should also be received as a parameter. |
|
|
|
If we modify the receipt json inside this hook, we get a js error:
ticketCloseUtils.js: OB.error("The receipt has been modified while it was being closed:\n" + diffStringified + "\n"); |
|
|
(0101744)
|
hgbot
|
2018-01-17 11:32
|
|
|
|
|
PreSyncReceipt hook is not being executed in Cancel Layaway and Void Layaway processes. |
|
|
(0102044)
|
hgbot
|
2018-01-30 10:42
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d0948174235a6e5c917cdfd46c3a45ff4de92fbb
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jan 30 15:11:42 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d0948174235a6e5c917cdfd46c3a45ff4de92fbb [^]
Fixed issue 37507 : Refactor PreSyncReceipt for receipts and multiorders
* Added PreSyncReceipt for Cancel Layaway and Void Layaway
---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
|
|
|
|
With the last changes, there is now a problem which didn't happen before: now some properties are set in the receipt after the OBPOS_PreSyncReceipt is called. This should not happen, we need all properties (including hasbeenpaid, cashupReportInformation, and the json itself) to be completely computed before the OBPOS_PreSyncReceipt hook is called; otherwise we will be missing these properties when computing the hash which always needs to include all properties. |
|
|
|
This hook should be also executed when synchronizing removed tickets in case "Web POS Save Removed Tickets" preference is configured. |
|
|
(0102167)
|
hgbot
|
2018-02-05 09:32
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6956dba51f4e3a651acff90c04e08e77ed7f95e3
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Feb 05 14:02:31 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6956dba51f4e3a651acff90c04e08e77ed7f95e3 [^]
Fixed issue 37507 : Refactor PreSyncReceipt for receipts and multiorders
* Added PreSyncReceipt for deleting ticket if savedelete ticket prefernece is enabled
---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
|
|
|
|
In Pay Open Tickets, OBPOS_PreSyncReceipt should be called before Save and runSyncProcess |
|
|
(0102384)
|
hgbot
|
2018-02-14 08:37
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 493a942155e187815771d1c271e45188ee860396
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Feb 14 13:07:29 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/493a942155e187815771d1c271e45188ee860396 [^]
Fixed issue 37507 : Refactor PreSyncReceipt in multiorders
* PreSyncReceipt should be called before receipt save and sync process
* PreSyncReceipt should be called for each receipt in multiorders
---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
|
|
|
|
receipt json should be updated after preSyncReceipt |
|
|
(0102543)
|
hgbot
|
2018-02-21 08:25
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 928a4741ef6907df1ebbccfa6af04035229a00c9
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Feb 21 12:54:38 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/928a4741ef6907df1ebbccfa6af04035229a00c9 [^]
Fixed issue 37507 : Refactor PreSyncReceipt in receipt, multiorders
* receipt json should be set after PreSyncReceipt hook
* Seperate transaction for saving receipt since hook PreSyncReceipt is async
* successCallbck for transaction is called after PreSyncReceipt completes
---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
|
|