Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011989Openbravo ERP07. Sales managementpublic2010-01-18 11:402010-03-10 18:28
networkb 
harikrishnan 
immediateminoralways
closedfixed 
5
2.50MP9 
2.50MP122.50MP12 
Core
No
0011989: The organization of a sales invoice can be modified after insert invoice lines
The organization of a sales invoice can be modified after insert invoice lines. This is not correct because after change the organization of the header can happen that the tax rate selected on the lines does not exist for the organization on the header.
-Create a sales invoice for organization A
-Create a invoice line for organization A
-Go to the header and change the organization to organization B.

The fix must be:

Create a trigger (Update action) or use a current one that prevents to change the org if exists at least one line where the corresponding organization does not belong to the tree org the new org of the header

Message has to be: "Header organization can not be changed to an organization that does not belong to the organization tree of the lines."
No tags attached.
Issue History
2010-01-18 11:40networkbNew Issue
2010-01-18 11:40networkbAssigned To => rafaroda
2010-02-10 13:12psarobeProposed Solution updated
2010-02-10 13:12psarobeStatusnew => scheduled
2010-02-10 13:12psarobefix_in_branch => pi
2010-02-15 10:29rafarodafix_in_branchpi =>
2010-02-15 10:29rafarodaDescription Updatedbug_revision_view_page.php?rev_id=27#r27
2010-02-15 10:29rafarodaProposed Solution updated
2010-02-16 08:59harikrishnanAssigned Torafaroda => harikrishnan
2010-02-16 08:59hgbotCheckin
2010-02-16 08:59hgbotNote Added: 0024381
2010-02-16 08:59hgbotStatusscheduled => resolved
2010-02-16 08:59hgbotResolutionopen => fixed
2010-02-16 08:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/01c1c4ece669534711d80df4756e92b0d5963766 [^]
2010-02-16 10:51harikrishnanNote Added: 0024391
2010-02-16 11:29sureshbabuNote Added: 0024397
2010-02-16 11:29sureshbabuStatusresolved => closed
2010-02-16 11:29sureshbabuFixed in Version => 2.50MP12
2010-02-17 00:00anonymoussf_bug_id0 =>
2010-02-18 00:30hudsonbotCheckin
2010-02-18 00:30hudsonbotNote Added: 0024524
2010-03-10 18:28anonymoussf_bug_id => 2967983

Notes
(0024381)
hgbot   
2010-02-16 08:59   
Repository: erp/devel/pi
Changeset: 01c1c4ece669534711d80df4756e92b0d5963766
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue Feb 16 13:28:56 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/01c1c4ece669534711d80df4756e92b0d5963766 [^]

Fixes Issue 11989: The organization of a sales invoice can be modified after insert invoice lines.

---
M src-db/database/model/triggers/C_INVOICE_TRG.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0024391)
harikrishnan   
2010-02-16 10:51   
Steps to test

*Create a new Sales Invoice (Sales Management || Transactions || Sales Invoice || Header ) with Organization A.
*Create a new line with organization A1.Now go to Header and try to change the organization to B.Error message will be thrown "Header organization can not be changed to an organization that does not belong to the organization tree of the lines.".And if the organization is set to A2 or A1 or A then the header can be saved.
(0024397)
sureshbabu   
2010-02-16 11:29   
Tested working fine
(0024524)
hudsonbot   
2010-02-18 00:30   
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/01c1c4ece669 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7c1b489fb0a0 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16459.obx [^]