Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018718Openbravo ERP03. Procurement managementpublic2011-10-06 12:372011-12-07 13:22
maite 
mirurita 
highminoralways
closedfixed 
5
 
3.0MP63.0MP6 
Core
No
0018718: Should not be possible to create invoice line without product and without glitem but with line amt <>0
Should not be possible to create invoice line without product and without glitem but with line amt <>0
1. Go to purchase invoice window and create header for any business partner
2. Add line leaving product field empty. Actually, you are able to set any price <> 0 or tax <> exempt but does not make sense
create trigger to control that if invoice line does not have account_id nor m_product_id, price fields or tax fields should be zero
No tags attached.
depends on backport 00187592.50MP36 closed mirurita Should not be possible to create invoice line without product and without glitem but with line amt <>0 
Issue History
2011-10-06 12:37maiteNew Issue
2011-10-06 12:37maiteAssigned To => jonalegriaesarte
2011-10-06 12:37maiteModules => Core
2011-10-06 12:38maiteResolution time => 1324335600
2011-10-06 12:38maiteTarget Version => 2.50MP36
2011-10-06 12:46maiteIssue Monitored: networkb
2011-10-11 16:40maiteStatusnew => scheduled
2011-10-11 16:40maitefix_in_branch => pi
2011-10-11 16:40maiteTarget Version2.50MP36 => 3.0MP6
2011-10-11 16:40maitefix_in_branchpi =>
2011-11-08 12:37jonalegriaesarteAssigned Tojonalegriaesarte => mirurita
2011-11-25 13:31hgbotCheckin
2011-11-25 13:31hgbotNote Added: 0043212
2011-11-25 13:31hgbotStatusscheduled => resolved
2011-11-25 13:31hgbotResolutionopen => fixed
2011-11-25 13:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/260c5c24d114199e36a2fc4070bebc8134c0c810 [^]
2011-11-30 12:36hudsonbotCheckin
2011-11-30 12:36hudsonbotNote Added: 0043556
2011-12-07 13:22jonalegriaesarteNote Added: 0043732
2011-12-07 13:22jonalegriaesarteStatusresolved => closed
2011-12-07 13:22jonalegriaesarteFixed in Version => 3.0MP6

Notes
(0043212)
hgbot   
2011-11-25 13:31   
Repository: erp/devel/pi
Changeset: 260c5c24d114199e36a2fc4070bebc8134c0c810
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Fri Nov 25 09:18:43 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/260c5c24d114199e36a2fc4070bebc8134c0c810 [^]

Fixes issue 18718: [trigger] invoice line without product and without glitem but with line amt <>0

---
M src-db/database/model/triggers/C_INVLINE_CHK_RESTRICTIONS_TRG.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0043556)
hudsonbot   
2011-11-30 12:36   
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/01809c7b3135 [^]

Maturity status: Test
(0043732)
jonalegriaesarte   
2011-12-07 13:22   
Tested.

- Purchase invoice with product created and completed.
- Purchase invoice with account created and completed.
- Purchase invoice without account and product created.
- Purchase invoice without account and product and lineneamt <>0 created. The error message appears.