Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018708Openbravo ERP03. Procurement managementpublic2011-10-05 17:452011-10-18 18:13
maite 
jonalegriaesarte 
urgentmajoralways
closedfixed 
5
 
3.0MP5 
Core
No
0018708: Posting Invoice without product, without account and without default product category should use AcctSchema Defaults
Posting Invoice without product, without account and without default product category should use AcctSchema Defaults. Actually, process is using account associated Product Category created first
1. Go to Product Category and ensure that NO category is checked as "Default"
2. Create Purchase Invoice for any business partner.
3. Add line and don't set any product. Set any qty and price
4. Process invoice and post it.
5. Generated entry is using "expense account" defined for oldest product category, instead of taking value from Financial Management || Accounting || Setup || Accounting Schema || Accounting Schema >> Defaults
AcctServer process is finally using method "getAccountDefault" of ProductInfo.java, specifically "selectDefaultAcct" which is using oldest product category as there is not default product category. If there is not default product category, value should be taken from Accounting Schema defaults
No tags attached.
related to backport 00187592.50MP36 closed mirurita Should not be possible to create invoice line without product and without glitem but with line amt <>0 
depends on backport 00187582.50MP35 closed jonalegriaesarte Posting Invoice without product, without account and without default product category should use AcctSchema Defaults 
Issue History
2011-10-05 17:45maiteNew Issue
2011-10-05 17:45maiteAssigned To => jonalegriaesarte
2011-10-05 17:45maiteModules => Core
2011-10-05 17:45maiteResolution time => 1320706800
2011-10-05 17:56maiteIssue Monitored: networkb
2011-10-11 16:38maiteStatusnew => scheduled
2011-10-11 16:38maitefix_in_branch => pi
2011-10-11 16:39maiteTarget Version2.50MP35 => 3.0MP5
2011-10-11 16:39maitefix_in_branchpi =>
2011-10-11 16:41maiteRelationship addedrelated to 0018759
2011-10-14 10:39hgbotCheckin
2011-10-14 10:39hgbotNote Added: 0041826
2011-10-14 10:39hgbotStatusscheduled => resolved
2011-10-14 10:39hgbotResolutionopen => fixed
2011-10-14 10:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bc03ed72e085870721e3b1c4fe038f5c1976fda0 [^]
2011-10-18 17:26hudsonbotCheckin
2011-10-18 17:26hudsonbotNote Added: 0041904
2011-10-18 18:13maiteNote Added: 0041914
2011-10-18 18:13maiteStatusresolved => closed

Notes
(0041826)
hgbot   
2011-10-14 10:39   
Repository: erp/devel/pi
Changeset: bc03ed72e085870721e3b1c4fe038f5c1976fda0
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Fri Oct 14 10:37:06 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bc03ed72e085870721e3b1c4fe038f5c1976fda0 [^]

Fixes issue 18708: posting Invoice (no product in lines) issue.
Posting Invoice without product, without account and without default product category should use AcctSchema Defaults.
selectDefaultAcct method has changed the logic behing. Before it returned the accounts of the product category
marked as default, if no product category is marked as default, returned the accoutns of the oldest product
category.
Now, it returns the accounts configured in accounting schema defaults. If one of the default accounts are not
filled in (some of then are not mandatory) it will search in the product category marked as default, if not
in the oldest product category.

---
M src/org/openbravo/erpCommon/ad_forms/ProductInfo.java
M src/org/openbravo/erpCommon/ad_forms/ProductInfo_data.xsql
---
(0041904)
hudsonbot   
2011-10-18 17:26   
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/3a0e09f510aa [^]

Maturity status: Test
(0041914)
maite   
2011-10-18 18:13   
verified