Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040657Retail ModulesWeb POSpublic2019-04-23 13:142021-08-23 09:24
joniturralde93 
joniturralde93 
urgentmajoralways
closedout of date 
5
pi 
pi 
No
0040657: Duplicated documentno warning activates when original order was finally not saved
If order saving fails (it's not saved finally), document number is still registered as already used and cannot be used again:

Duplicated document number detected
The current document number is duplicated and a possible new document number has been found. The current document number will be changed to 70105804/1817545.

This functionality is still not added in PI (reproduced it for a gold customer)

1. Log into a terminal with this duplicated documentno warning functionality
2. (Quick way to reproduce it) Add this hook in order to simulate an error while saving. Execute it in chrome console.

OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function (args, callbacks) {

args.cancellation = true;
  OB.UTIL.HookManager.callbackExecutor(args, callbacks);
});

3. Try to complete an order (the order is not saved).
4. Try to complete it again.
5. Error is shown (attached image)
No tags attached.
related to defect 0040555 closed rqueralta JS Error doing logout with draft recetip and functionality checkForDocumentNoDuplicated 
png duplicatedDocumentNo.png (138,423) 2019-04-23 13:14
https://issues.openbravo.com/file_download.php?file_id=12879&type=bug
png
Issue History
2019-04-23 13:14joniturralde93New Issue
2019-04-23 13:14joniturralde93Assigned To => Retail
2019-04-23 13:14joniturralde93File Added: duplicatedDocumentNo.png
2019-04-23 13:14joniturralde93Resolution time => 1557784800
2019-04-23 13:14joniturralde93Triggers an Emergency Pack => No
2019-04-25 14:49rqueraltaAssigned ToRetail => rqueralta
2019-04-25 14:50rqueraltaStatusnew => scheduled
2019-05-08 13:24marvintmResolution time1557784800 =>
2019-05-08 13:24marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18727#r18727
2019-06-20 16:49joniturralde93Resolution time => 1562191200
2019-06-24 11:00malsasuaIssue Monitored: jorgewederago
2019-07-05 13:36marvintmResolution time1562191200 =>
2019-07-05 13:36marvintmNote Added: 0113202
2019-07-31 12:39joniturralde93Resolution time => 1566943200
2019-08-16 11:17ngarciaIssue Monitored: ngarcia
2019-08-16 13:50ngarciaRelationship addedrelated to 0040555
2019-08-30 08:07marvintmAssigned Torqueralta => joniturralde93
2019-08-30 08:07marvintmStatusscheduled => feedback
2021-08-23 09:24marvintmStatusfeedback => closed
2021-08-23 09:24marvintmResolutionopen => out of date

Notes
(0113202)
marvintm   
2019-07-05 13:36   
This will be resolved once the functionality is merged in the product