Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014908 | Openbravo ERP | 03. Procurement management | public | 2010-10-19 09:03 | 2011-05-24 10:57 |
Reporter | dalsasua | ||||
Assigned To | dalsasua | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Ubuntu 9.04 | |
Product Version | pi | ||||
Target Version | 2.50MP23 | 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 | 0014908: ERP must allow extension modules to add new document types to work in purchase/sales invoice windows. | ||||
Description | Nowadays, c_invoice_post has got the doc base types hardcoded in one of the checks. This means that, if an extension module includes a new doc base type, with new document types, using c_invoice table, when processing an invoice that uses that new document type, it will always fail. | ||||
Steps To Reproduce | Install storno ivoice module. Process an invoice with storno invoice document type. Check that it fails. | ||||
Proposed Solution | --- a/src-db/database/model/functions/C_INVOICE_POST.xml +++ b/src-db/database/model/functions/C_INVOICE_POST.xml @@ -422,7 +422,7 @@ SELECT COUNT(*) INTO v_Count FROM C_INVOICE C, C_DOCTYPE - WHERE C_DOCTYPE.DocBaseType IN ('ARI', 'API','ARC','APC') + WHERE C_DOCTYPE.DocBaseType IN (select docbasetype from c_doctype where isactive='Y' and ad_table_id='318' and ad_client_id=C.AD_Client_ID) AND C_DOCTYPE.IsSOTrx=C.ISSOTRX AND Ad_Isorgincluded(C.AD_Org_ID,C_DOCTYPE.AD_Org_ID, C.AD_Client_ID) <> -1 AND C.C_DOCTYPETARGET_ID = C_DOCTYPE.C_DOCTYPE_ID | ||||
Additional Information | |||||
Tags | closingMay2011 | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-10-19 09:03 | dalsasua | New Issue | |||
2010-10-19 09:03 | dalsasua | Assigned To | => dalsasua | ||
2010-10-19 13:49 | hgbot | Checkin | |||
2010-10-19 13:49 | hgbot | Note Added: 0031974 | |||
2010-10-19 13:49 | hgbot | Status | new => resolved | ||
2010-10-19 13:49 | hgbot | Resolution | open => fixed | ||
2010-10-19 13:49 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d60f21a506384807bc9674254a011406390927f0 [^] | ||
2010-10-19 23:51 | hudsonbot | Checkin | |||
2010-10-19 23:51 | hudsonbot | Note Added: 0031994 | |||
2011-05-24 09:59 | dalsasua | Tag Attached: closingMay2011 | |||
2011-05-24 10:57 | dalsasua | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|