Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0007264 | Openbravo ERP | 03. Procurement management | public | 2009-01-21 09:34 | 2009-03-26 12:36 | |||||||
Reporter | mmarquez | |||||||||||
Assigned To | Hennadzi | |||||||||||
Priority | normal | Severity | major | Reproducibility | sometimes | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.40 | |||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0007264: Purchase Order -> Copy From Order does not find sometimes tax setup | |||||||||||
Description | When you use this option from Purchase order, sometimes does not find the corresponding TAX, and it's ok setup. | |||||||||||
Steps To Reproduce | ||||||||||||
Proposed Solution | I'va just upload two file. Anyway, I explain the lines midified: You have to modify two files (attached): File "src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder.java": Replace the next line: String strCTaxID = Tax.get(this, data[i].mProductId, DateTimeData.today(this), order[0].adOrgId, order[0].mWarehouseId.equals("")?vars.getWarehouse():order[0].mWarehouseId, CopyFromPOOrderData.cBPartnerLocationId(this, order[0].cBpartnerId), CopyFromPOOrderData.cBPartnerLocationId(this, order[0].cBpartnerId), order[0].cProjectId, true); by String strCTaxID = Tax.get(this, data[i].mProductId, DateTimeData.today(this), order[0].adOrgId, order[0].mWarehouseId.equals("")?vars.getWarehouse():order[0].mWarehouseId, CopyFromPOOrderData.cBPartnerLocationId(this, order[0].cBpartnerId), CopyFromPOOrderData.cBPartnerLocationId(this, order[0].cBpartnerId), order[0].cProjectId, order[0].issotrx.equals("Y")?true:false); File "src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder_data.xsql": In the SqlMethod name="select", replace the next SELECT: SELECT O.C_BPARTNER_ID, O.C_BPARTNER_LOCATION_ID, O.M_WAREHOUSE_ID, O.C_CURRENCY_ID, O.C_PROJECT_ID, O.M_PRICELIST_ID, COALESCE(MAX(OL.LINE),0) AS LINE, O.AD_ORG_ID, O.AD_CLIENT_ID, '' AS C_UOM_ID, '' AS M_PRODUCT_ID, '' AS QTYORDERED, '' AS QUANTITYORDER, '' AS M_PRODUCT_UOM_ID, '' AS DESCRIPTION, '' AS PRICESTD, '' AS M_OFFER_ID, '' as orderline FROM C_ORDER O LEFT JOIN C_ORDERLINE OL ON O.C_ORDER_ID = OL.C_ORDER_ID WHERE O.C_ORDER_ID = TO_NUMBER(?) GROUP BY O.C_BPARTNER_ID, O.C_BPARTNER_LOCATION_ID, O.M_WAREHOUSE_ID, O.C_CURRENCY_ID, O.C_PROJECT_ID, O.M_PRICELIST_ID, O.AD_ORG_ID, O.AD_CLIENT_ID by SELECT O.C_BPARTNER_ID, O.C_BPARTNER_LOCATION_ID, O.M_WAREHOUSE_ID, O.C_CURRENCY_ID, O.C_PROJECT_ID, O.M_PRICELIST_ID, COALESCE(MAX(OL.LINE),0) AS LINE, O.AD_ORG_ID, O.AD_CLIENT_ID, '' AS C_UOM_ID, '' AS M_PRODUCT_ID, '' AS QTYORDERED, '' AS QUANTITYORDER, '' AS M_PRODUCT_UOM_ID, '' AS DESCRIPTION, '' AS PRICESTD, '' AS M_OFFER_ID, '' as orderline, O.ISSOTRX FROM C_ORDER O LEFT JOIN C_ORDERLINE OL ON O.C_ORDER_ID = OL.C_ORDER_ID WHERE O.C_ORDER_ID = TO_NUMBER(?) GROUP BY O.C_BPARTNER_ID, O.C_BPARTNER_LOCATION_ID, O.M_WAREHOUSE_ID, O.C_CURRENCY_ID, O.C_PROJECT_ID, O.M_PRICELIST_ID, O.AD_ORG_ID, O.AD_CLIENT_ID, O.ISSOTRX | |||||||||||
Additional Information | ||||||||||||
Tags | comsup_sprint5 | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2009-01-30 12:19 | psarobe | Type | defect => backport | |||||||||
2009-01-30 12:19 | psarobe | fix_in_branch | => 2.40 | |||||||||
2009-01-30 13:51 | PavelPonomarev | Assigned To | rafaroda => Hennadzi | |||||||||
2009-01-30 16:47 | svnbot | Checkin | ||||||||||
2009-01-30 16:47 | svnbot | Note Added: 0012925 | ||||||||||
2009-01-30 16:47 | svnbot | Status | scheduled => resolved | |||||||||
2009-01-30 16:47 | svnbot | Resolution | open => fixed | |||||||||
2009-01-30 16:47 | svnbot | svn_revision | => 12568 | |||||||||
2009-02-02 15:36 | Hennadzi | Tag Attached: comsup_sprint5 | ||||||||||
2009-03-03 17:32 | psarobe | Fixed in Version | => 2.40MP3 | |||||||||
2009-03-24 11:01 | psarobe | Fixed in Version | 2.40MP3 => 2.40MP4 | |||||||||
2009-03-26 12:36 | sureshbabu | Regression testing | => No | |||||||||
2009-03-26 12:36 | sureshbabu | Status | resolved => closed | |||||||||
2009-03-26 12:36 | sureshbabu | Note Added: 0014999 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|