Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040138Retail ModulesWeb POSpublic2019-01-15 13:092019-03-05 17:48
asiermartirena 
asiermartirena 
normalmajorhave not tried
closedfixed 
5
 
RR19Q1 
jorge-garcia
No
0040138: Problem with the invoice line-shipment lines relations
When creating an invoice line before the shipment line is created, if the shipment line is created later, the relation between the invoice and shipment line is not set.
Synchronize a ticket in the Web POS that creates an invoice but doesn't deliver the lines. Use prepayments for that purpose.

After that, deliver the ticket, creating the shipment and shipment lines.

Check that the invoice and shipment lines are not related.
No tags attached.
blocks defect 0039952 closed asiermartirena Problem with the invoice line-shipment lines relations 
Issue History
2019-02-05 11:54marvintmTypedefect => backport
2019-02-05 11:54marvintmTarget Version => RR19Q1
2019-02-15 13:00hgbotCheckin
2019-02-15 13:00hgbotNote Added: 0109864
2019-02-15 13:00hgbotStatusscheduled => resolved
2019-02-15 13:00hgbotResolutionopen => fixed
2019-02-15 13:00hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/efd1c21ff78b9d532481929f74b65c5d7d65ee2c [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/929e2ce652fca7b2f2d5e07b26dc53e5ae01f4a3 [^]
2019-03-05 17:48jorge-garciaReview Assigned To => jorge-garcia
2019-03-05 17:48jorge-garciaNote Added: 0110242
2019-03-05 17:48jorge-garciaStatusresolved => closed

Notes
(0109864)
hgbot   
2019-02-15 13:00   
Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: 929e2ce652fca7b2f2d5e07b26dc53e5ae01f4a3
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Fri Feb 15 13:00:13 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/929e2ce652fca7b2f2d5e07b26dc53e5ae01f4a3 [^]

Fixed issue 40138: Problem with the invoice line-shipment lines relations

Now when a shipment is created after the invoice is created, the relation between the invoice line and the shipment line is set.
Also now in the InvoiceUtils.java class it is supported to create an invoice for a line that has already an invoice and a shipment, but the invoiced quantity is lower than the shipped quantity. This situation is cannot occur in the Web POS at now.

---
M src/org/openbravo/retail/posterminal/utility/InvoiceUtils.java
M src/org/openbravo/retail/posterminal/utility/ShipmentUtils.java
---
(0110242)
jorge-garcia   
2019-03-05 17:48   
Code reviewed and tested