Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0014923 | Openbravo ERP | 03. Procurement management | public | 2010-10-19 19:20 | 2010-10-30 11:24 | |||||||
Reporter | psarobe | |||||||||||
Assigned To | dalsasua | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.50MP22 | |||||||||||
Target Version | 2.50MP23 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0014923: If there is not warehouse defined, taxes are not properly calculated | |||||||||||
Description | If the ERP has no warehouse defined, I mean, there is any warehouse created then taxes are not calculated well | |||||||||||
Steps To Reproduce | 1. Have a context running withou any warehouse 2. Go to Procurement->Transactions->Procurement invoice 3. Click new and select a bpartner 4. Move to lines tab and select a product. Notice that no tax is selected in the combo box when it has to | |||||||||||
Proposed Solution | --- a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java +++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java @@ -75,12 +75,14 @@ .getOrganizationStructureProvider(vars.getClient()); if (!strADOrgID.equals(strWarehouseOrg)) { Organization org = OBDal.getInstance().get(Organization.class, strADOrgID); - Organization warehouseOrg = OBDal.getInstance().get(Organization.class, strWarehouseOrg); - if (!osp.isInNaturalTree(org, warehouseOrg) && !osp.isInNaturalTree(warehouseOrg, org)) - strWarehouseForOrg = SLOrderProductData.getWarehouseOfOrg(this, vars.getClient(), - strADOrgID); - if (!strWarehouseForOrg.equals("")) - strWharehouse = strWarehouseForOrg; + if (strWarehouseOrg != null) { + Organization warehouseOrg = OBDal.getInstance().get(Organization.class, strWarehouseOrg); + if (!osp.isInNaturalTree(org, warehouseOrg) && !osp.isInNaturalTree(warehouseOrg, org)) + strWarehouseForOrg = SLOrderProductData.getWarehouseOfOrg(this, vars.getClient(), + strADOrgID); + if (!strWarehouseForOrg.equals("")) + strWharehouse = strWarehouseForOrg; + } } String strTabId = vars.getStringParameter("inpTabId"); | |||||||||||
Additional Information | ||||||||||||
Tags | Regression | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2010-10-19 19:20 | psarobe | New Issue | ||||||||||
2010-10-19 19:20 | psarobe | Assigned To | => dalsasua | |||||||||
2010-10-19 19:20 | psarobe | OBNetwork customer | => No | |||||||||
2010-10-19 19:20 | psarobe | Tag Attached: Regression | ||||||||||
2010-10-19 19:20 | psarobe | Status | new => scheduled | |||||||||
2010-10-19 19:20 | psarobe | fix_in_branch | => pi | |||||||||
2010-10-19 19:21 | psarobe | Note Added: 0031990 | ||||||||||
2010-10-19 19:22 | psarobe | Relationship added | related to 0014047 | |||||||||
2010-10-19 19:22 | psarobe | Note Edited: 0031990 | bug_revision_view_page.php?bugnote_id=0031990#r1096 | |||||||||
2010-10-20 12:24 | dalsasua | fix_in_branch | pi => | |||||||||
2010-10-20 12:24 | dalsasua | Proposed Solution updated | ||||||||||
2010-10-20 12:57 | hgbot | Checkin | ||||||||||
2010-10-20 12:57 | hgbot | Note Added: 0032006 | ||||||||||
2010-10-20 12:57 | hgbot | Status | scheduled => resolved | |||||||||
2010-10-20 12:57 | hgbot | Resolution | open => fixed | |||||||||
2010-10-20 12:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6d605d17991c46ec97c15c68318a021e44c3b8bd [^] | |||||||||
2010-10-20 23:44 | hudsonbot | Checkin | ||||||||||
2010-10-20 23:44 | hudsonbot | Note Added: 0032031 | ||||||||||
2010-10-22 04:03 | sureshbabu | Status | resolved => closed | |||||||||
2010-10-22 04:03 | sureshbabu | Note Added: 0032088 | ||||||||||
2010-10-30 11:24 | anonymous | sf_bug_id | 0 => 3098750 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|