Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0013364 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | major | always | 2010-05-18 12:31 | 2010-06-16 00:00 | |||
Reporter | networkb | View Status | public | |||||
Assigned To | harikrishnan | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 7be8c400ed75 | |||
Projection | none | ETA | none | Target Version | 2.50MP19 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.50MP14 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0013364: The genereate invoices process does not work when there are many orders so when many invoices are going to be created | |||||||
Description | The genereate invoices process does not work when there are many orders so when many invoices are going to be created | |||||||
Steps To Reproduce | -Create 300 sales orders with invoice rule = immediate and with lines in organization A -Complete the orders -Go to Sales management > transactions > Generate invoices -Select the organization A and click OK -You get an error The problem is because the variable v_Message on the c_invoice_create function is filled with the documentno of all the invoices created. If many invoices are created, the variable can save all the documentno because the variable has lengh 2000, so you get an error. | |||||||
Proposed Solution | -Show only the number of invoices created and not the documentno of all these invoices | |||||||
Tags | No tags attached. | |||||||
Attached Files | create300orders.sql [^] (1,358 bytes) 2010-05-27 12:50 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0027415) psarobe (manager) 2010-05-18 13:06 |
Hi, Are you sure about the steps? Are you sure about the length of the variable? |
(0027423) adrianromero (manager) 2010-05-18 13:49 |
My proposal is to show the number of invoices created as suggested but also continue to show all document numbers created that fit in 2000 characters. I think that in the general case, when an small number of invoices is created, is good not to change the current behavior and show the document number of invoices created. |
(0027775) networkb (developer) 2010-05-27 12:50 |
An attach to create 300 orders with 5 lines each one has been added in order to anayze the problem |
(0028210) hgbot (developer) 2010-06-09 14:15 |
Repository: erp/devel/pi Changeset: 7be8c400ed75de1aecd4d14d05bdbde26ac0c416 Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com> Date: Wed Jun 09 17:44:00 2010 +0530 URL: http://code.openbravo.com/erp/devel/pi/rev/7be8c400ed75de1aecd4d14d05bdbde26ac0c416 [^] Fixes issue 13364:The generate invoices process does not work when there are many orders so when many invoices are going to be created --- M src-db/database/model/functions/C_INVOICE_CREATE.xml M src-db/database/sourcedata/AD_MESSAGE.xml --- |
(0028211) harikrishnan (reporter) 2010-06-09 14:16 |
Steps to Test: Prerequisite: *Create 300 invoice using the attached sql file. *Go to Generate Invoices under the sales management and execute for process. *Now for 300 invoices its shows the success message for 10 invoice document no only. Root Cause: *The document no of all the 300 invoices then this exceeds 2000 length which is the size of v_message variable. Impact: *The condition is checked properly adding the message.Hence their is no impact in other areas. |
(0028263) hudsonbot (developer) 2010-06-10 12:59 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/7be8c400ed75 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/90bc12ff4afd [^] Tests: http://builds.openbravo.com/view/int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17576.obx [^] |
(0028445) arunkumar (reporter) 2010-06-15 14:18 |
Tested working fine |
Issue History | |||
Date Modified | Username | Field | Change |
2010-05-18 12:31 | networkb | New Issue | |
2010-05-18 12:31 | networkb | Assigned To | => adrianromero |
2010-05-18 12:35 | networkb | Severity | minor => major |
2010-05-18 13:06 | psarobe | Note Added: 0027415 | |
2010-05-18 13:06 | psarobe | Status | new => feedback |
2010-05-18 13:15 | networkb | Status | feedback => new |
2010-05-18 13:15 | networkb | Steps to Reproduce Updated | View Revisions |
2010-05-18 13:32 | networkb | Proposed Solution updated | |
2010-05-18 13:49 | adrianromero | Note Added: 0027423 | |
2010-05-18 13:50 | adrianromero | Status | new => scheduled |
2010-05-18 13:50 | adrianromero | fix_in_branch | => pi |
2010-05-27 12:50 | networkb | Note Added: 0027775 | |
2010-05-27 12:50 | networkb | File Added: create300orders.sql | |
2010-06-02 17:56 | adrianromero | Relationship added | has duplicate 0013505 |
2010-06-09 14:14 | harikrishnan | Assigned To | adrianromero => harikrishnan |
2010-06-09 14:15 | hgbot | Checkin | |
2010-06-09 14:15 | hgbot | Note Added: 0028210 | |
2010-06-09 14:15 | hgbot | Status | scheduled => resolved |
2010-06-09 14:15 | hgbot | Resolution | open => fixed |
2010-06-09 14:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/7be8c400ed75de1aecd4d14d05bdbde26ac0c416 [^] |
2010-06-09 14:16 | harikrishnan | Note Added: 0028211 | |
2010-06-10 12:59 | hudsonbot | Checkin | |
2010-06-10 12:59 | hudsonbot | Note Added: 0028263 | |
2010-06-15 14:18 | arunkumar | Note Added: 0028445 | |
2010-06-15 14:18 | arunkumar | Status | resolved => closed |
2010-06-16 00:00 | anonymous | sf_bug_id | 0 => 3016763 |
Copyright © 2000 - 2009 MantisBT Group |