Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0030292 | Openbravo ERP | Z. Others | public | 2015-06-30 18:47 | 2015-08-20 23:16 |
Reporter | maite | ||||
Assigned To | AtulOpenbravo | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0PR15Q4 | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | vmromanos | ||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 37155 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0030292: Wrong Document Type calculation when there are types configured in the legal entity and the store (generic child organization) | ||||
Description | When doing a Payment In from a Sales Invoice. If there are default document types defined in the generic organization and the legal entity the application can return the doctype of the legal entity instead of prioritize the doctype of the generic. | ||||
Steps To Reproduce | 1. Create a new autonumeric sequence in F&B España, set a prefix for example "RN". 2. Create a new document type for Payment Ins: * Organization: F&B Región Norte * Document Category: AR Receipt * Sequenced document: Yes * Sequence: the seq created on step 1. * Sales Trx: Yes * Default: Yes 3. Access database and ensure that c_doctype_id of the legal is higher than c_doctype_id of the generic (if necessary, update c_doctype_id to reproduce the issue) 4. Check that the equivalent document type for F&B España is also default: Y. 5. Create a new Sales Invoice in organization F&B España Norte and complete it. 6. Click on Add Payment and check the Document Number proposed. It should always use the doc type of Region Norte (as the document type is hidden in the popup it is possible to notice the error checking the prefix of the document number) | ||||
Proposed Solution | When the payment is generated it is using the java function FIN_Utility.getDocumentType(organization, strCategory). This function does a query considering the parent tree of the organization. It sorts the result by the default flag and the document type id. The sorting should be changed to include the org parent level so it first returns the default types of the base org. The db function AD_GET_DOCTYPE used in stored procedures is already sorting first by the org parent level. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-06-30 18:47 | maite | New Issue | |||
2015-06-30 18:47 | maite | Assigned To | => Triage Finance | ||
2015-06-30 18:47 | maite | OBNetwork customer | => Yes | ||
2015-06-30 18:47 | maite | Modules | => Core | ||
2015-06-30 18:47 | maite | Support ticket | => 37155 | ||
2015-06-30 18:47 | maite | Resolution time | => 1438639200 | ||
2015-06-30 18:47 | maite | Triggers an Emergency Pack | => No | ||
2015-06-30 18:47 | maite | Issue Monitored: networkb | |||
2015-07-10 09:03 | AtulOpenbravo | Assigned To | Triage Finance => AtulOpenbravo | ||
2015-07-10 09:03 | AtulOpenbravo | Status | new => scheduled | ||
2015-07-13 07:50 | AtulOpenbravo | Note Added: 0078761 | |||
2015-07-13 13:16 | hgbot | Checkin | |||
2015-07-13 13:16 | hgbot | Note Added: 0078771 | |||
2015-07-13 13:16 | hgbot | Status | scheduled => resolved | ||
2015-07-13 13:16 | hgbot | Resolution | open => fixed | ||
2015-07-13 13:16 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3ae7799bc9344084635a04597b3da9e6cc576e55 [^] | ||
2015-07-13 13:16 | hgbot | Checkin | |||
2015-07-13 13:16 | hgbot | Note Added: 0078772 | |||
2015-07-13 13:17 | vmromanos | Review Assigned To | => vmromanos | ||
2015-07-13 13:17 | vmromanos | Note Added: 0078773 | |||
2015-07-13 13:17 | vmromanos | Status | resolved => closed | ||
2015-07-16 12:02 | gorka_gil | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/3ae7799bc9344084635a04597b3da9e6cc576e55 [^] => http://code.openbravo.com/erp/devel/pi/rev/219fa2d8cb3d [^] | ||
2015-07-16 12:02 | gorka_gil | Note Edited: 0078771 | bug_revision_view_page.php?bugnote_id=0078771#r9046 | ||
2015-07-16 12:02 | gorka_gil | Note Edited: 0078772 | bug_revision_view_page.php?bugnote_id=0078772#r9048 | ||
2015-08-20 23:16 | hudsonbot | Checkin | |||
2015-08-20 23:16 | hudsonbot | Note Added: 0079490 | |||
2015-08-20 23:16 | hudsonbot | Checkin | |||
2015-08-20 23:16 | hudsonbot | Note Added: 0079491 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|