Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032560Openbravo ERP07. Sales managementpublic2016-03-31 02:492016-08-11 18:40
rbianchini 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
3.0PR16Q1 
3.0PR16Q4 
vmromanos
Core
No
0032560: Allow to invoice an already invoiced goods receipt
Tested on 15Q3.5, 15Q4.5, 16Q1

If you create a purchase order and complete it, then create a purchase invoice using the copy lines from button in the purchase invoice window, then create the goods receipt using the pending good receipts window, the application allows you to invoice that goods receipt, but it is already invoiced, so you have 2 purchase invoice with the same goods.

Note: if the goods receipt is created using the create lines from button on goods receipt window, instead of using the pending goods receipt window, and you try to invoice the goods receipt, the application detects that is already invoiced.
1 - Create a purchase order and complete it
2 - Create a purchase invoice header
3 - Click on copy lines from button and copy the lines from the purchase order created in step 1
4 - Complete the purchase invoice
5 - Go to Pending Goods Receipts window and create the goods receipt from the purchase order created in step 1
6 - Open the goods receipt generated in step 5
7 - Click on generate invoice from receipt button
8 - Realize you have 2 purchase invoices for the same purchase order
No tags attached.
related to design defect 0033042 new Triage Omni OMS Partially shipped Goods Shipment Line is linked to completely invoiced Sales Invoice Line 
Issue History
2016-03-31 02:49rbianchiniNew Issue
2016-03-31 02:49rbianchiniAssigned To => Triage Finance
2016-03-31 02:49rbianchiniModules => Core
2016-03-31 02:49rbianchiniResolution time => 1462330800
2016-03-31 02:49rbianchiniTriggers an Emergency Pack => No
2016-07-06 13:32egoitzResolution time1462330800 => 1462312800
2016-07-06 16:58vmromanosNote Added: 0088246
2016-07-06 16:58vmromanosAssigned ToTriage Finance => AtulOpenbravo
2016-07-07 11:56AtulOpenbravoStatusnew => scheduled
2016-07-07 11:56AtulOpenbravoNote Added: 0088281
2016-07-08 08:58ngarciaResolution time1462312800 => 1466978400
2016-07-08 10:21vmromanosNote Added: 0088326
2016-07-08 11:12vmromanosRelationship addedrelated to 0033042
2016-07-08 11:15hgbotCheckin
2016-07-08 11:15hgbotNote Added: 0088328
2016-07-08 11:15hgbotStatusscheduled => resolved
2016-07-08 11:15hgbotResolutionopen => fixed
2016-07-08 11:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3abacd38deed78abcd36f022fa54d2bde448b092 [^]
2016-07-08 11:16vmromanosReview Assigned To => vmromanos
2016-07-08 11:16vmromanosNote Added: 0088329
2016-07-08 11:16vmromanosStatusresolved => closed
2016-07-08 11:16vmromanosFixed in Version => 3.0PR16Q4
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089001

Notes
(0088246)
vmromanos   
2016-07-06 16:58   
In the steps to reproduce "copy lines from" means "Create lines from".

Problem seems to be in Pending Goods receipt process, that should detect a previous invoice has been created for this order, and update the goods receipt line field at invoice line level just after creating the goods receipt
(0088281)
AtulOpenbravo   
2016-07-07 11:56   
Test Plan
- Create a purchase order and complete it.
- Create a purchase invoice header.
- Click on "create lines from" button and copy the lines from the purchase order created in step 1.
- Complete the purchase invoice.
- Go to Pending Goods Receipts window and create the goods receipt from the purchase order created in step 1.
- Open the goods receipt generated in step 5.
- Click on generate invoice from receipt button.
- Check that error is shown regarding receipt is already invoiced.
(0088326)
vmromanos   
2016-07-08 10:21   
The resolution time is wrong: it was reported as OBPS in 2016-07-06 and the resolution time is set to 2016-06-27
(0088328)
hgbot   
2016-07-08 11:15   
Repository: erp/devel/pi
Changeset: 3abacd38deed78abcd36f022fa54d2bde448b092
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Jul 07 18:32:05 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/3abacd38deed78abcd36f022fa54d2bde448b092 [^]

Fixes Issue 32560:Allow to invoice an already invoiced goods receipt

when creating goods receipt using "Pending Goods Receipt", associated
purchase invoice line with related purchase order line is updated with
the goods receipt line reference.

---
M src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java
M src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPendingLines_data.xsql
---
(0088329)
vmromanos   
2016-07-08 11:16   
Code review + testing OK
(0089001)
hudsonbot   
2016-08-11 18:40   
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/edaa05b1fb18 [^]
Maturity status: Test