Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0010427 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 09. Financial management | major | always | 2009-08-28 13:21 | 2009-10-06 11:50 | |||
| Reporter | dalsasua | View Status | public | |||||
| Assigned To | eduardo_Argal | |||||||
| Priority | high | Resolution | fixed | Fixed in Version | 2.50MP6 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 53d4c9a705d1 | ||||
| Projection | none | ETA | none | Target Version | pi | |||
| OS | Linux 32 bit | Database | Oracle | Java version | 1.5.0_15 | |||
| OS Version | Ubuntu 8.04Hardy | Database version | 10.2.0 SE | Ant version | 1.7.0 | |||
| Product Version | pi | SCM revision | ||||||
| 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 | 0010427: Purchase Invoices do not include c_tax_id value when being posted | |||||||
| Description | Purchase Invoices do not include c_tax_id value when being posted. This is a problem because non of the tax reports will be reliable. | |||||||
| Steps To Reproduce | Create a purchase invoice Add products with taxes Post it Check in database that none of the lines of the entry contain value for c_tax_id column | |||||||
| Proposed Solution | For sales invoices is working fine. In DocInvoice.java, createFact function, exists this piece of code, when invoice to be posted is a sales invoice: // TaxDue CR for (int i = 0; m_taxes != null && i < m_taxes.length; i++) { //New docLine created to assign C_Tax_ID value to the entry DocLine docLine = new DocLine(DocumentType, Record_ID, ""); docLine.m_C_Tax_ID = m_taxes[i].m_C_Tax_ID; fact.createLine(docLine, m_taxes[i].getAccount(DocTax.ACCTTYPE_TaxDue, as, conn), C_Currency_ID, "", m_taxes[i].m_amount, Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn); } and this code when the invoice is a purchase invoice: // TaxCredit DR for (int i = 0; m_taxes != null && i < m_taxes.length; i++) fact.createLine(null, m_taxes[i].getAccount(DocTax.ACCTTYPE_TaxCredit, as, conn), this.C_Currency_ID, m_taxes[i].getAmount(), "", Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn); It seems that in the second case, value taxes[i].m_C_Tax_ID is not provided to createLine function. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0020229) hgbot (developer) 2009-09-21 11:55 |
Repository: erp/devel/pi Changeset: 53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 Author: David Alsasua <david.alsasua <at> openbravo.com> Date: Mon Sep 21 11:55:15 2009 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 [^] Fixes issue 10427: Purchase Invoices do not include c_tax_id value when being posted --- M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java --- |
|
(0020262) psarobe (viewer) 2009-09-22 12:02 |
Tested working fine |
|
(0020487) hgbot (developer) 2009-09-29 14:14 |
Repository: erp/devel/pi-pageddatagrid Changeset: 53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 Author: David Alsasua <david.alsasua <at> openbravo.com> Date: Mon Sep 21 11:55:15 2009 +0200 URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 [^] Fixes issue 10427: Purchase Invoices do not include c_tax_id value when being posted --- M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java --- |
|
(0020769) psarobe (viewer) 2009-10-06 11:50 |
Closed again because hudson has reopened without no reason |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-08-28 13:21 | dalsasua | New Issue | |
| 2009-08-28 13:21 | dalsasua | Assigned To | => rafaroda |
| 2009-08-28 13:21 | dalsasua | OBNetwork customer | => No |
| 2009-08-28 13:22 | dalsasua | Assigned To | rafaroda => eduardo_Argal |
| 2009-08-28 15:02 | rafaroda | Priority | normal => high |
| 2009-08-28 15:02 | rafaroda | Status | new => scheduled |
| 2009-08-28 15:02 | rafaroda | version | => pi |
| 2009-09-21 11:55 | hgbot | Checkin | |
| 2009-09-21 11:55 | hgbot | Note Added: 0020229 | |
| 2009-09-21 11:55 | hgbot | Status | scheduled => resolved |
| 2009-09-21 11:55 | hgbot | Resolution | open => fixed |
| 2009-09-21 11:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 [^] |
| 2009-09-22 12:02 | psarobe | Status | resolved => closed |
| 2009-09-22 12:02 | psarobe | Note Added: 0020262 | |
| 2009-09-22 12:02 | psarobe | Fixed in Version | => 2.50MP6 |
| 2009-09-23 00:00 | anonymous | sf_bug_id | 0 => 2864615 |
| 2009-09-29 14:14 | hgbot | Checkin | |
| 2009-09-29 14:14 | hgbot | Note Added: 0020487 | |
| 2009-09-29 14:14 | hgbot | Status | closed => resolved |
| 2009-09-29 14:14 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/53d4c9a705d1b5c6b8ad346fb5acc840d8d7d747 [^] |
| 2009-10-06 11:50 | psarobe | Status | resolved => closed |
| 2009-10-06 11:50 | psarobe | Note Added: 0020769 | |
| Copyright © 2000 - 2009 MantisBT Group |