Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039067 | Retail Modules | Web POS | public | 2018-07-30 15:52 | 2018-09-12 21:33 |
|
Reporter | gorka_gil | |
Assigned To | gorka_gil | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR18Q4 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0039067: isDelivered not set when using cancel and replace |
Description | When doing a cancel and replace, and adding more lines, the isDelivered property is not set. |
Steps To Reproduce | Test of pi-mobile: CancelAndRplReturn
1- Create ticket with 2 lines
2- Open again the ticket, and choose in the menu: cancel and replace
3- Add two more lines, and pay the ticket
Go to the backend database and run this query:
select documentno, isdelivered, docstatus, grandtotal, created from c_order order by created desc limit 3;
The 3rd line will be the original ticket that has the isDelivered to true.
The 2nd line will have the new ticket that has 2 lines canceled and 2 new lines, and because has 2 new lines the isDelived should be set to true since has shipments.
As rule: the order should have set the isDelivered to true always that at least has a shipment that don't have set the field isNettingShipment to true. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-07-30 15:52 | gorka_gil | New Issue | |
2018-07-30 15:52 | gorka_gil | Assigned To | => Retail |
2018-07-30 15:52 | gorka_gil | Triggers an Emergency Pack | => No |
2018-07-30 15:55 | gorka_gil | Assigned To | Retail => gorka_gil |
2018-07-30 15:56 | gorka_gil | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17472#r17472 |
2018-08-09 17:55 | hgbot | Checkin | |
2018-08-09 17:55 | hgbot | Note Added: 0106270 | |
2018-08-09 17:55 | hgbot | Status | new => resolved |
2018-08-09 17:55 | hgbot | Resolution | open => fixed |
2018-08-09 17:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9bcad65c8197cf6192532e3129a51101debe3e0c [^] |
2018-08-23 11:29 | marvintm | Note Added: 0106462 | |
2018-08-23 11:29 | marvintm | Status | resolved => new |
2018-08-23 11:29 | marvintm | Resolution | fixed => open |
2018-08-27 14:08 | gorka_gil | Note Added: 0106495 | |
2018-08-27 14:08 | gorka_gil | Status | new => scheduled |
2018-08-27 14:08 | gorka_gil | Status | scheduled => resolved |
2018-08-27 14:08 | gorka_gil | Resolution | open => fixed |
2018-08-27 14:31 | gorka_gil | Status | resolved => new |
2018-08-27 14:31 | gorka_gil | Resolution | fixed => open |
2018-08-27 14:33 | gorka_gil | Note Added: 0106498 | |
2018-08-30 15:05 | hgbot | Checkin | |
2018-08-30 15:05 | hgbot | Note Added: 0106542 | |
2018-08-30 15:06 | hgbot | Checkin | |
2018-08-30 15:06 | hgbot | Note Added: 0106543 | |
2018-08-30 15:07 | hgbot | Checkin | |
2018-08-30 15:07 | hgbot | Note Added: 0106544 | |
2018-08-30 15:10 | gorka_gil | Status | new => scheduled |
2018-08-30 15:10 | gorka_gil | Status | scheduled => resolved |
2018-08-30 15:10 | gorka_gil | Resolution | open => fixed |
2018-09-07 09:53 | hgbot | Checkin | |
2018-09-07 09:53 | hgbot | Note Added: 0106638 | |
2018-09-07 09:54 | hgbot | Checkin | |
2018-09-07 09:54 | hgbot | Note Added: 0106639 | |
2018-09-12 17:37 | marvintm | Review Assigned To | => marvintm |
2018-09-12 17:37 | marvintm | Status | resolved => closed |
2018-09-12 17:37 | marvintm | Fixed in Version | => RR18Q4 |
2018-09-12 21:33 | hudsonbot | Checkin | |
2018-09-12 21:33 | hudsonbot | Note Added: 0106721 | |
2018-09-12 21:33 | hudsonbot | Checkin | |
2018-09-12 21:33 | hudsonbot | Note Added: 0106726 | |
Notes |
|
(0106270)
|
hgbot
|
2018-08-09 17:55
|
|
|
|
|
Fix cannot be correct, the logic added is functionally useless:
- if (line.getGoodsShipmentLine() != null) {
+ if (!hasShipment && line.getMaterialMgmtShipmentInOutLineList().size() > 0) {
hasShipment = true;
}
hasShipment is initially false. The condition "&& !hasShipment" has been added, which initially will always be true because hasShipment is always false initially. The only thing the if does is change hasShipment to true. Therefore, the logic initially doesn't prevent the execution of "hasShipment=true", and the only thing it does afterwards is prevent it being executed again, but those subsequent executions would have made no difference.
This needs to be reviewed, maybe we don't need any further fix, but in any case, the current change should be removed as it is confusing. |
|
|
|
hasShipment is only to not execute the query in case of not need.
the real change is:
line.getGoodsShipmentLine()
vs:
line.getMaterialMgmtShipmentInOutLineList().size() |
|
|
|
Asier is doing a fix in a different way |
|
|
(0106542)
|
hgbot
|
2018-08-30 15:05
|
|
Repository: erp/devel/pi
Changeset: 1cadd83c2d38acc6ed70329fb9a3746e5465091e
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Mon Aug 27 13:19:45 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1cadd83c2d38acc6ed70329fb9a3746e5465091e [^]
Related to issue 39067: The delivered property is not being correctly set for C&R
If the canceled order was delivered and the associateShipmentToNewReceipt preference is set, the new order will also be delivered. Instead of doing a query, the delivered status is checked to know the previous status.
A netting shipment doesn't count as delivered.
---
M src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
---
|
|
|
(0106543)
|
hgbot
|
2018-08-30 15:06
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d5a69c1b8ed3b88c88d03173ea654cec71edaebd
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Mon Aug 27 13:21:36 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d5a69c1b8ed3b88c88d03173ea654cec71edaebd [^]
Related to issue 39067: The delivered property is not being correctly set for C&R
Set the delivered property depending on the createShipment variable.
If the C&R process changes the order's delivered status, it is done into the CancelAndReplaceUtils class.
---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
|
|
|
(0106544)
|
hgbot
|
2018-08-30 15:07
|
|
|
|
(0106638)
|
hgbot
|
2018-09-07 09:53
|
|
|
|
(0106639)
|
hgbot
|
2018-09-07 09:54
|
|
Repository: erp/devel/pi
Changeset: 2d2e28bdaba749c1e86da86f51d3a79f83d95149
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Mon Sep 03 15:32:44 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2d2e28bdaba749c1e86da86f51d3a79f83d95149 [^]
Related to issue 39067: Change in the isDelivered flag
All canceled order have now the isDelivered flag to true (both canceled and cancelling orders).
---
M src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
---
|
|
|
|
|
|
|
|