Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020934Openbravo ERP03. Procurement managementpublic2012-07-05 16:372012-08-09 09:08
caristu 
jecharri 
urgentmajoralways
closedfixed 
5
3.0MP12 
3.0MP15 
Core
No
0020934: It should not be possible to void a goods receipt with a related invoice
It should not be possible to void a goods receipt if there exists a related purchase invoice to it, i.e.,if we have created the purchase invoice with the option "create lines from" and selecting the goods receipt.
1) Go to the [Goods Receipt] window and create a new record.

2) Go to the [Purchase Invoice] window, create a new record with the same Business Partner selected in step 1) and save the record. Click in the button "Create Lines From" and select the Goods Receipt created in step 1).

3) Return to the [Goods Receipt] window, select the created Goods Receipt and click in the "Close" button. In the pop-up, choose "Void". The application let you do this even with a related invoice, this should not be possible.
No tags attached.
Issue History
2012-07-05 16:37caristuNew Issue
2012-07-05 16:37caristuAssigned To => mirurita
2012-07-05 16:37caristuModules => Core
2012-07-05 16:37caristuResolution time => 1344376800
2012-07-05 16:37caristuIssue Monitored: networkb
2012-07-05 19:20caristuTarget Version3.0MP13 => 3.0MP14
2012-07-09 15:24naiaramartinezAssigned Tomirurita => naiaramartinez
2012-07-10 12:27naiaramartinezNote Added: 0050443
2012-07-10 12:27naiaramartinezStatusnew => scheduled
2012-07-10 12:27naiaramartinezfix_in_branch => pi
2012-07-23 10:07miruritafix_in_branchpi =>
2012-07-31 12:11eduardo_ArgalAssigned Tonaiaramartinez => jonalegriaesarte
2012-07-31 12:11eduardo_ArgalTarget Version3.0MP14 => 3.0MP15
2012-08-06 11:54jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-08-06 14:39hgbotCheckin
2012-08-06 14:39hgbotNote Added: 0051124
2012-08-06 14:39hgbotStatusscheduled => resolved
2012-08-06 14:39hgbotResolutionopen => fixed
2012-08-06 14:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4447cfa4380e1b82367d6a5ca693d7f1fa12342e [^]
2012-08-06 14:41jecharriNote Added: 0051127
2012-08-09 09:08caristuNote Added: 0051184
2012-08-09 09:08caristuStatusresolved => closed

Notes
(0050443)
naiaramartinez   
2012-07-10 12:27   
Test Plan1:
 1) Go to the [Goods Receipt] window and create a new record. Complete it.
 2) Go to the [Purchase Invoice] window, create a new record with the same Business Partner selected in step 1) and save the record. Click in the button "Create Lines From" and select the Goods Receipt created in step 1).
 3) Return to the [Goods Receipt] window, select the created Goods Receipt and click in the "Close" button. In the pop-up, choose "Void". Notice that you can't void the receipt because it has a related invoice.

Test Plan2:
 1) Go to the [Goods Shipment] window and create a new record. Complete it.
 2) Go to the [Sales Invoice] window, create a new record with the same Business Partner selected in step 1) and save the record. Click in the button "Create Lines From" and select the Goods Shipment created in step 1).
 3) Return to the [Goods Shipment] window, select the created Goods Shipment and click in the "Close" button. In the pop-up, choose "Void". Notice that you can't void the shipment because it has a related invoice.
(0051124)
hgbot   
2012-08-06 14:39   
Repository: erp/devel/pi
Changeset: 4447cfa4380e1b82367d6a5ca693d7f1fa12342e
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Mon Aug 06 14:38:25 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4447cfa4380e1b82367d6a5ca693d7f1fa12342e [^]

Fixes issue 20934: It should not be possible to void a goods receipt with a related invoice

---
M src-db/database/model/functions/M_INOUT_POST.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0051127)
jecharri   
2012-08-06 14:41   
Test Plan1:
 1) Go to the [Goods Receipt] window and create a new record. Complete it.
 2) Go to the [Purchase Invoice] window, create a new record with the same Business Partner selected in step 1) and save the record. Click in the button "Create Lines From" and select the Goods Receipt created in step 1).
 3) Return to the [Goods Receipt] window, select the created Goods Receipt and click in the "Close" button. In the pop-up, choose "Void". Notice that you can't void the receipt because it has a related invoice.
 4) Void the invoice and verify that you can close the "Goods Receipts"

Test Plan2:
 1) Go to the [Goods Shipment] window and create a new record. Complete it.
 2) Go to the [Sales Invoice] window, create a new record with the same Business Partner selected in step 1) and save the record. Click in the button "Create Lines From" and select the Goods Shipment created in step 1).
 3) Return to the [Goods Shipment] window, select the created Goods Shipment and click in the "Close" button. In the pop-up, choose "Void". Notice that you can't void the shipment because it has a related invoice.
 4) Void the invoice and verify that you can close the "Goods Shipments"
(0051184)
caristu   
2012-08-09 09:08   
Verified