Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0018758 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 03. Procurement management | major | always | 2011-10-05 17:45 | 2011-10-18 17:54 | |||
Reporter | maite | View Status | public | |||||
Assigned To | jonalegriaesarte | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 2.50MP35 | |||
Status | closed | Fix in branch | 2.50 | Fixed in SCM revision | dab3f486b2d6 | |||
Projection | none | ETA | none | Target Version | 2.50MP35 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 12819 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0018758: Posting Invoice without product, without account and without default product category should use AcctSchema Defaults | |||||||
Description | 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 | |||||||
Steps To Reproduce | 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 | |||||||
Proposed Solution | 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0041807) hgbot (developer) 2011-10-13 16:14 |
Repository: erp/stable/2.50 Changeset: dab3f486b2d6e36bf7c79c0c7aa92badd00eff22 Author: Mikel Irurita <mikel.irurita <at> openbravo.com> Date: Thu Oct 13 15:58:51 2011 +0200 URL: http://code.openbravo.com/erp/stable/2.50/rev/dab3f486b2d6e36bf7c79c0c7aa92badd00eff22 [^] Fixes issue 18758: posting Invoice 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 --- |
(0041912) maite (viewer) 2011-10-18 17:54 |
verified |
![]() |
|||
Date Modified | Username | Field | Change |
2011-10-11 16:38 | maite | Type | defect => backport |
2011-10-11 16:38 | maite | fix_in_branch | => 2.50 |
2011-10-13 16:14 | hgbot | Checkin | |
2011-10-13 16:14 | hgbot | Note Added: 0041807 | |
2011-10-13 16:14 | hgbot | Status | scheduled => resolved |
2011-10-13 16:14 | hgbot | Resolution | open => fixed |
2011-10-13 16:14 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/dab3f486b2d6e36bf7c79c0c7aa92badd00eff22 [^] |
2011-10-18 17:54 | maite | Note Added: 0041912 | |
2011-10-18 17:54 | maite | Status | resolved => closed |
2011-10-18 17:54 | maite | Fixed in Version | => 2.50MP35 |
Copyright © 2000 - 2009 MantisBT Group |