Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039386 | Openbravo ERP | 07. Sales management | public | 2018-10-02 08:19 | 2019-03-28 14:55 |
|
Reporter | AtulOpenbravo | |
Assigned To | Triage Omni OMS | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q2 | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0039386: Goods Shipment IsCompletelyInvoiced flag is not properly updated when voiding Sales Invoice |
Description | Goods Shipment IsCompletelyInvoiced flag is not properly updated when voiding Sales Invoice. Because of this Goods shipment does not appear in the Sales Invoice, Create From Shipment P&E. |
Steps To Reproduce | 1. Create a Goods Shipment with one line with quantity 10.
2. Book the Goods Shipment.
3. Create sales invoice header.
4. Press button Create Lines from Shipment.
5. Select the line created in the Goods Shipment.
6. Book the sales invoice.
7. Go to the Goods Shipment, check IsCompletelyInvoiced flag is set as Yes.
8. Void the Sales Invoice, check IsCompletelyInvoiced flag is till set as Yes. Because of this Goods shipment does not appear in the Sales Invoice, Create From Shipment P&E. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0037357 | | closed | AtulOpenbravo | Create Lines From popup on Invoice windows slow with high number of shipments | related to | defect | 0039330 | pi | closed | AtulOpenbravo | Invoice status field in Goods Shipment don't work appropietly | related to | defect | 0049449 | | closed | gsalas | The "Fully Invoiced" check is not checked on some delivery notes. |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-10-02 08:19 | AtulOpenbravo | New Issue | |
2018-10-02 08:19 | AtulOpenbravo | Assigned To | => Triage Finance |
2018-10-02 08:19 | AtulOpenbravo | Modules | => Core |
2018-10-02 08:19 | AtulOpenbravo | Triggers an Emergency Pack | => No |
2018-10-02 08:59 | AtulOpenbravo | Relationship added | related to 0037357 |
2018-10-02 09:08 | AtulOpenbravo | Relationship added | related to 0039330 |
2018-10-02 09:11 | Practics | Issue Monitored: Practics | |
2018-10-04 06:11 | AtulOpenbravo | Status | new => scheduled |
2018-10-04 06:11 | AtulOpenbravo | Note Added: 0107147 | |
2018-10-04 06:18 | AtulOpenbravo | Note Added: 0107148 | |
2019-01-17 09:18 | dmiguelez | Note Added: 0108986 | |
2019-01-17 09:28 | hgbot | Checkin | |
2019-01-17 09:28 | hgbot | Note Added: 0108987 | |
2019-01-17 09:28 | hgbot | Status | scheduled => resolved |
2019-01-17 09:28 | hgbot | Resolution | open => fixed |
2019-01-17 09:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f56c59c75e26e38d8c737ec3d0a92909a84b9de9 [^] |
2019-01-17 09:30 | dmiguelez | Review Assigned To | => dmiguelez |
2019-01-17 09:30 | dmiguelez | Note Added: 0108989 | |
2019-01-17 09:30 | dmiguelez | Status | resolved => closed |
2019-01-17 09:30 | dmiguelez | Fixed in Version | => 3.0PR19Q2 |
2019-03-28 14:55 | hudsonbot | Checkin | |
2019-03-28 14:55 | hudsonbot | Note Added: 0110734 | |
2022-06-14 13:46 | aferraz | Relationship added | related to 0049449 |
Notes |
|
|
Test Plan
1. Create a Goods Shipment with one line with quantity 10.
2. Book the Goods Shipment.
3. Create sales invoice header.
4. Press button Create Lines from Shipment.
5. Select the line created in the Goods Shipment.
6. Book the sales invoice.
7. Go to the Goods Shipment, check IsCompletelyInvoiced flag is set as Yes.
8. Void the Sales Invoice, check IsCompletelyInvoiced flag is set as No.
9. Create a Sales Invoice header for same business partner as above. Click on Create Lines From Shipment P&E, check that previous Goods shipment appear in the list again. |
|
|
|
Test Plan:
- Create a Goods shipment with any product having stock.
- Set Movement Qty = 10.
- Process the Goods Shipment.
- Create a First Sales Invoice, using Create Lines From Shipment choose above shipment line.
- Set Quantity = 6
- Complete the Invoice.
- Check the Invoice Status in Goods Shipment is set as 60%
- Create Second Sales Invoice, using Create Lines From Shipment choose previous shipment.
- Check Qty is 4.
- Complete the Invoice.
- Check the Invoice Status in Goods Shipment is set as 100%
- Void the First Sales Invoice.
- Check the Invoice Status in Goods Shipment is set as 40% (After the fix for issue 39330).
- Create again Sales Invoice with previously created transaction business partner.
- Click on Create Lines From Shipment P&E, realize that previous Goods Shipment (with invoice status 40%) appears in the list, select and create invoice line.
- Complete the Sales Invoice.
- Check invoice status of previous goods shipment again it is set as 100%. |
|
|
|
Note about data:
This issue might have created inconsistent data.
There is a module script (UpdateIsCompletelyInvoiced) that fixes this data, but it is possible that for some clients this modulescript was already executed before. In this case it won't be executed again.
Also, this modulescript is quite heavy and takes some time to execute it.
So, the recommenadation, for the clients that have this problem, is to run it manually, but filtering only for the invoices voided after the module script was executed |
|
|
(0108987)
|
hgbot
|
2019-01-17 09:28
|
|
Repository: erp/devel/pi
Changeset: f56c59c75e26e38d8c737ec3d0a92909a84b9de9
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Oct 04 01:14:57 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/f56c59c75e26e38d8c737ec3d0a92909a84b9de9 [^]
Fixes Issue 39386: Goods Shipment IsCompletelyInvoiced
flag is not properly updated when voiding Sales Invoice
IsCompletelyInvoiced flag is set to No for the shipments
that have shipment line linked with the invoice lines of
the invoice that is being voided.
---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
|
|
|
|
|
|
|
|