Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018759Openbravo ERP03. Procurement managementpublic2011-10-06 12:372011-11-10 09:50
maite 
mirurita 
highminoralways
closedfixed 
5
 
2.50MP36 
Core
No
0018759: 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.
related to defect 00187083.0MP5 closed jonalegriaesarte Posting Invoice without product, without account and without default product category should use AcctSchema Defaults 
blocks defect 00187183.0MP6 closed mirurita Should not be possible to create invoice line without product and without glitem but with line amt <>0 
Issue History
2011-10-11 16:40maiteTypedefect => backport
2011-10-11 16:40maitefix_in_branch => 2.50
2011-10-11 16:41maiteRelationship addedrelated to 0018708
2011-11-08 12:36jonalegriaesarteAssigned Tojonalegriaesarte => mirurita
2011-11-09 18:37hgbotCheckin
2011-11-09 18:37hgbotNote Added: 0042709
2011-11-09 18:37hgbotStatusscheduled => resolved
2011-11-09 18:37hgbotResolutionopen => fixed
2011-11-09 18:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/907e44abf20e6480b9877a673954bfc01ada278b [^]
2011-11-10 09:50maiteNote Added: 0042716
2011-11-10 09:50maiteStatusresolved => closed

Notes
(0042709)
hgbot   
2011-11-09 18:37   
Repository: erp/stable/2.50
Changeset: 907e44abf20e6480b9877a673954bfc01ada278b
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Wed Nov 09 18:36:03 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/907e44abf20e6480b9877a673954bfc01ada278b [^]

Fixes issue 18759: [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
---
(0042716)
maite   
2011-11-10 09:50   
verified