Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024355Openbravo ERP07. Sales managementpublic2013-07-17 12:382016-03-17 10:55
maite 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
Core
No
0024355: "Good Shipment Line" field information is not filled when creating POS Order with Invoice Terms=Immediate
"Good Shipment Line" field information is not filled when creating POS Order with Invoice Terms=Immediate
1. Create new POS Order for any BP ensuring that Invoice Terms=Immediate
2. Add any line and process. Shipment and Invoice are automatically created
3. From Sales Order Line, navigate to Sales Invoice Line and verify that, in More Information section, "Good Shipment Line" information is not showed.

If you follow same process using Invoice Terms=After delivery, information will be showed.
No tags attached.
related to defect 0028685pi closed reinaldoguerra Openbravo ERP Goods shipment and invoice relationship not created when launching "Create shipments from orders" form. 
related to defect 0024147RMP25 closed marvintm Retail Modules Goods Shipment Line field not filled in Sales Invoice Lines 
related to design defect 0032061 new Triage Omni OMS Openbravo ERP No "Cost" information shown in Sales Invoice Dimensional Report in case there is no 1 to 1 relation between SO line and GS line 
related to defect 0032670 closed collazoandy4 Openbravo ERP "Good Shipment Line" field information is not filled in Sales Invoice Line when processing On Credit Order 
related to defect 0032709 closed AtulOpenbravo Openbravo ERP Sales Invoice - Invoice Term=Immediate does not create link to Good Shipment in Sales Invoice 
related to defect 0032938 closed AtulOpenbravo Openbravo ERP It is necessary a script to add the 1-1 relation between sales invoice line and goods shipment line 
png Issue_24355.png (49,055) 2016-01-29 14:51
https://issues.openbravo.com/file_download.php?file_id=8984&type=bug
png
Issue History
2013-07-17 12:38maiteNew Issue
2013-07-17 12:38maiteAssigned To => dmiguelez
2013-07-17 12:38maiteModules => Core
2013-07-17 12:38maiteTriggers an Emergency Pack => No
2013-07-17 12:38maiteTarget Version => 3.0MP27
2013-07-17 14:30pramakrishnanAssigned Todmiguelez => pramakrishnan
2013-07-17 14:30pramakrishnanStatusnew => scheduled
2013-07-17 14:30pramakrishnanfix_in_branch => pi
2013-09-02 10:12jonalegriaesarteTarget Version3.0MP27 => 3.0MP28
2013-09-02 10:12jonalegriaesartefix_in_branchpi =>
2013-09-26 12:14pramakrishnanTypedefect => design defect
2013-10-01 13:48jonalegriaesarteNote Added: 0061506
2013-10-01 13:48jonalegriaesarteTarget Version3.0MP28 =>
2015-12-18 13:04ngarciaIssue Monitored: ngarcia
2016-01-08 12:29ngarciaRelationship addedrelated to 0028685
2016-01-08 12:41ngarciaRelationship addedrelated to 0024147
2016-01-08 13:02ngarciaResolution time => 1455663600
2016-01-08 13:02ngarciaTypedesign defect => defect
2016-01-08 13:02ngarciaAssigned Topramakrishnan => Triage Finance
2016-01-08 13:02ngarciaSeverityminor => major
2016-01-08 13:03ngarciaPriorityhigh => urgent
2016-01-08 15:05aferrazStatusscheduled => acknowledged
2016-01-08 15:06aferrazStatusacknowledged => scheduled
2016-01-08 15:06aferrazStatusscheduled => feedback
2016-01-08 15:06aferrazStatusfeedback => new
2016-01-28 05:45AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2016-01-28 05:46AtulOpenbravoStatusnew => scheduled
2016-01-28 05:46AtulOpenbravoNote Added: 0083647
2016-01-28 06:23AtulOpenbravoNote Added: 0083648
2016-01-28 06:23AtulOpenbravoNote Added: 0083649
2016-01-28 06:24AtulOpenbravoNote Deleted: 0083648
2016-01-28 14:41psanjuanNote Added: 0083663
2016-01-28 15:48psanjuanNote Added: 0083685
2016-01-28 15:49psanjuanNote Edited: 0083649bug_revision_view_page.php?bugnote_id=0083649#r10795
2016-01-28 15:52psanjuanNote Edited: 0083685bug_revision_view_page.php?bugnote_id=0083685#r10797
2016-01-28 15:54psanjuanNote Edited: 0083649bug_revision_view_page.php?bugnote_id=0083649#r10798
2016-01-28 16:00psanjuanNote Added: 0083686
2016-01-28 16:03psanjuanNote Edited: 0083686bug_revision_view_page.php?bugnote_id=0083686#r10802
2016-01-29 12:40psanjuanNote Added: 0083723
2016-01-29 12:41psanjuanNote Edited: 0083723bug_revision_view_page.php?bugnote_id=0083723#r10807
2016-01-29 13:22psanjuanNote Edited: 0083723bug_revision_view_page.php?bugnote_id=0083723#r10812
2016-01-29 14:06psanjuanNote Added: 0083730
2016-01-29 14:07psanjuanNote Edited: 0083723bug_revision_view_page.php?bugnote_id=0083723#r10813
2016-01-29 14:10psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10815
2016-01-29 14:13psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10816
2016-01-29 14:46psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10817
2016-01-29 14:48psanjuanNote Edited: 0083686bug_revision_view_page.php?bugnote_id=0083686#r10818
2016-01-29 14:49psanjuanNote Edited: 0083723bug_revision_view_page.php?bugnote_id=0083723#r10819
2016-01-29 14:49psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10820
2016-01-29 14:50psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10821
2016-01-29 14:51psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10822
2016-01-29 14:51psanjuanFile Added: Issue_24355.png
2016-01-29 14:52psanjuanNote Edited: 0083723bug_revision_view_page.php?bugnote_id=0083723#r10823
2016-01-29 14:52psanjuanNote Edited: 0083730bug_revision_view_page.php?bugnote_id=0083730#r10824
2016-01-29 15:06psanjuanNote Added: 0083743
2016-01-29 15:11psanjuanRelationship addedrelated to 0032061
2016-01-31 10:17hgbotCheckin
2016-01-31 10:17hgbotNote Added: 0083756
2016-01-31 10:17hgbotStatusscheduled => resolved
2016-01-31 10:17hgbotResolutionopen => fixed
2016-01-31 10:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b4ee0d43b8e15518ac12e31f734e40a509adf510 [^]
2016-01-31 10:17vmromanosReview Assigned To => vmromanos
2016-01-31 10:17vmromanosNote Added: 0083757
2016-01-31 10:17vmromanosStatusresolved => closed
2016-03-17 10:55hudsonbotCheckin
2016-03-17 10:55hudsonbotNote Added: 0085096
2016-04-14 17:44ngarciaRelationship addedrelated to 0032670
2016-05-11 13:16aferrazRelationship addedrelated to 0032709
2016-05-12 10:00ngarciaRelationship addedrelated to 0032938

Notes
(0061506)
jonalegriaesarte   
2013-10-01 13:48   
Target version does not make sense in design defects. Removing it.
(0083647)
AtulOpenbravo   
2016-01-28 05:46   
Test Plan
- Create new POS Order for any BP ensuring that Invoice Terms=Immediate
- Add any line and process. Shipment and Invoice are automatically created
- From Sales Order Line, navigate to Sales Invoice Line and verify that, in More Information section, "Good Shipment Line" information is properly shown.
(0083649)
AtulOpenbravo   
2016-01-28 06:23   
(edited on: 2016-01-28 15:54)
Test Plan B
- Create a Product A in F&B España, S.A Org, assign price to it.
- Creare a Product B in F&B España, S.A Org, assign price to it.
- Create Goods Receipt in F&B España, S.A Org. Warehouse Norte.
- Add line with Product A Qty = 5 in RN-0-0-0 Locator.
- Add line with Product B Qty = 5 in RN-0-0-0 Locator.
- Process Goods Receipt

- Create another Goods Receipt in F&B España, Warehouse Sur
- Add line with Product A Qty = 5 in RS-0-0-0 Locator.
- Process Goods Receipt

- Create a POS Sales Order with Immediate Invoice Terms in F&B España, S.A Org.
- Add line with Product A Qty = 10.
- Add line with Product B Qty = 5.
- Process the Order.

- Check that Goods Shipment is created with 3 three lines, 2 for Product A, RN-0-0-0 and RS-0-0-0 one each and 1 for Product B.
- Check that Sales Invoice is created with 2 lines.
- Check that Sales Invoice Line with Product B has link to Goods Shipment Line.
- Check that Sales Invoice Line with Product A has blank Goods Shipment Lines Reference as there are two Shipment Lines associated.

(0083663)
psanjuan   
2016-01-28 14:41   
Issue verified.
(0083685)
psanjuan   
2016-01-28 15:48   
(edited on: 2016-01-28 15:52)
Test Plan C

- Create a Product A in F&B España, S.A Org, assign price to it.
- Creare a Product B in F&B España, S.A Org, assign price to it.
- Create a Goods Receipt in F&B España, S.A Org. Warehouse Norte.
- Add line with Product A Qty = 5 in RN-0-0-0 Locator.
- Add line with Product B Qty = 5 in RN-0-0-0 Locator.
- Add line with Product A Qty = 5 in RN-1-0-0 Locator.
- Process Goods Receipt

- Create another Goods Receipt in F&B España, Warehouse Sur.
- Add line with Product B Qty = 5 in RS-0-0-0 Locator.
- Process Goods Receipt.

- Create a POS Sales Order with Immediate Invoice Terms in F&B España, S.A Org.
- Add line with Product A Qty = 10.
- Add line with Product B Qty = 10
- Process the Order.

- Check that Goods Shipment is created with 4 three lines, 2 for Product A, RN-0-0-0 and RN-1-0-0 one each and 2 for Product B, RN-0-0-0 and RS-0-0-0
- Check that Sales Invoice is created with 2 lines.
- Check that Sales Invoice Line with Product A has blank Goods Shipment Lines Reference as there are two Shipment Lines associated.
- Check that Sales Invoice Line with Product B has blank Goods Shipment Lines Reference as there are two Shipment Lines associated.

(0083686)
psanjuan   
2016-01-28 16:00   
(edited on: 2016-01-29 14:48)
All test plan above verified.

Starting from here it is research whether "Cost" info is shown in the Sales Dimensional Report or not. This was really the reason for reporting this bug.

(0083723)
psanjuan   
2016-01-29 12:40   
(edited on: 2016-01-29 14:52)
Test Plan D - Sales Invoice Dimensional Report check (1 to 1 relationship)

- Make sure that there is a costing rule assigned to F&B España. WH is not set as a cost dimension.
- Create a product named "A 24355 A", add a Purchase Price list "Bebidas Alegres" = 100.00; add a sales price list "Tarifa de Ventas" = 200.00
- Create a product named "A 24355 B", add a Purchase Price list "Bebidas Alegres" = 150.00; add a sales price list "Tarifa de Ventas" = 200.00

- Create a purchase order for F&B España, today's date. Enter 10 units of Product "A 24355 A", price 100 and 10 units of Product "A 24355 B", price 150. Book the order.

- Create a Goods receipt to receipt full quantity in WH Norte, Product "A 24355 A" located in RN-1-0-0 and Product "A 24355 B" locates in RN-2-0-0. Complete GR.

- Run costing background process therefore vendor receipt above is cost calculated.

- Create a POS Sales Order with Inmmediate Invoice Terms for F&B España:
- Add line with product "A 24355 A" Qty = 5 units, sales price 200
- Add line with product "A 24355 B" Qty = 5 units, sales price 200
- Complete POS Sales Order.

- Run costing background process therefore customer shipment created as explained below is cost calculated.

- Check that a Goods Shipment is created with 2 lines one for each product located in each storage bin.
- From Sales order lines, navigate to Sales Invoice lines and check that Goods Shipment Line info in shown in there for each line.

- Run Sales Invoice Dimensional Report for today's date an check that cost information is shown:
- Product "A 24355 A" shows an Amount = 1000.00 (5 units * 200.00); and a Cost = 500 (5 units * 100.00), therefor profit = 500.00
- Product "A 24355 B" shows an Amount = 1000.00 (5 units * 200.00); and a Cost = 750 (5 units * 150.00), therefore profit = 250

(0083730)
psanjuan   
2016-01-29 14:06   
(edited on: 2016-01-29 14:52)
Test Plan E - Sales Invoice Dimensional Report check (not 1 to 1 relationship).

- Create a new costing rule by making warehouse a costing dimension.

- Create a product named "A 24355 C", add a Purchase Price list "Bebidas Alegres" = 100.00; add a sales price list "Tarifa de Ventas" = 200.00

- Create a purchase order for F&B España, today's date. Enter 10 units of Product "A 24355 C", price 100 and 10 units. Book the order.

- Create another purchase order for F&B España, today's date. Enter 10 units of Product "A 24355 C", price 150 and 10 units. Book the order.

- Create a Goods receipt to receipt 10 units in WH Norte (RN-1-0-0) at a price / cost of 100.00 and create another Goods receipt to receipt 10 units in WH Sur (RS-1-0-0) at a price/cost of 150.00. Complete Goods Shipments.

- Run costing background process therefore vendor receipts above are cost calculated. Check that the cost in WH Norte is 100.00 (10 units) and the cost in WH Sur is 150.00 (10 units).

- Create a POS Sales Order with "Inmmediate" Invoice Terms for F&B España:
- Add line with product "A 24355 C" Qty = 15 units, sales price 200
- Complete POS Sales Order.

- Run costing background process therefore customer shipment created as explained below is cost calculated.

- Check that a Goods Shipment is created with 2 lines one line for 10 units from RN-1-0-0 and the other line for 5 units from RS-1-0-0.

- Check that a Sales Invoice for just one line (15 units at a price of 200.00) has been created.

- From Sales order lines, navigate to Sales Invoice lines and check that Goods Shipment Line info in not shown in there as sales invoice line can not be related to two goods shipment lines.

- Run Sales Invoice Dimensional Report for today's date an check that "NO cost info is shown in there for the product". See image attached.


Therefore, this bug is fixed in case there is a 1 to 1 relationship between a POS Sales Order Line and a Sales Invoice Line.

A new issue is created as design defect to research on the solution to provide in case 1 to 1 relationship is not met. See issue:

Existing workaround that is to set POS Sales Order Invoice Terms as "After Delivery".

(0083743)
psanjuan   
2016-01-29 15:06   
Issue can be code reviewed and closed.
(0083756)
hgbot   
2016-01-31 10:17   
Repository: erp/devel/pi
Changeset: b4ee0d43b8e15518ac12e31f734e40a509adf510
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Jan 28 01:01:58 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/b4ee0d43b8e15518ac12e31f734e40a509adf510 [^]

Fixes Issue 24355:In case of processing POS Order with Immediate Invoice
Terms, Invoice Line is not set with Goods Shipment Line information.

In case of POS Order get M_InOutLine_ID for OrderLine, making sure exactly
one record is retreived using Max, Qty compared to get full shipped line
reference only as there could a case where Order Line is split into two or
more based on available stock in different storage bins in that case no
reference would be set in Invoice Line.

---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
---
(0083757)
vmromanos   
2016-01-31 10:17   
Code review + testing OK
(0085096)
hudsonbot   
2016-03-17 10:55   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test