Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012094Openbravo ERP09. Financial managementpublic2010-01-26 12:472010-02-15 12:00
networkb 
dalsasua 
immediatemajoralways
closedfixed 
5
2.40MP11 
2.40MP12 
OBPS
Core
No
0012094: 347 shows in .dat file, an uncorrect TaxID when the entity has an Organization tree
An entity has several organizations, and those are organized by Organization tree.

When 347 model is executed and .dat is obtained, the Tax ID shown belongs to Organization parent, not to the one selected.
Generate a Sales invoice in Organization B. Select Mafalda as BP.
Go to its lines. Create a new one. Enter as Unit price, 50000. Select one Tax.
Go to Header and process it.
Go to Financial Management > Accounting > Analysis tools > Generate 347 model.
Enter from date (01-01-2000) and to date (01-01-2011).
Select B as organization.
Press HTML Format.
See .dat file. The Tax ID shown, belongs to Main organization. Not to B.
No tags attached.
blocks defect 0012069 closed dalsasua 347 shows in .dat file, an uncorrect TaxID when the entity has an Organization tree 
Issue History
2010-02-01 13:03dalsasuaTypedefect => backport
2010-02-01 13:03dalsasuafix_in_branch => 2.40
2010-02-01 13:05dalsasuaNote Added: 0023880
2010-02-01 13:05dalsasuaPriorityimmediate => urgent
2010-02-04 10:16networkbNote Added: 0023942
2010-02-04 11:06psarobePriorityurgent => immediate
2010-02-08 16:40hgbotCheckin
2010-02-08 16:40hgbotNote Added: 0024026
2010-02-08 16:40hgbotStatusscheduled => resolved
2010-02-08 16:40hgbotResolutionopen => fixed
2010-02-08 16:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/87e48f0b6d5822fe93cd5f22c415b2fe1010219a [^]
2010-02-12 13:25networkbNote Added: 0024207
2010-02-12 14:54dalsasuaNote Added: 0024209
2010-02-15 12:00arunkumarNote Added: 0024264
2010-02-15 12:00arunkumarStatusresolved => closed
2010-02-15 12:00arunkumarFixed in Version => 2.40MP12

Notes
(0023880)
dalsasua   
2010-02-01 13:05   
Due Date 01/03/2010
(0023942)
networkb   
2010-02-04 10:16   
Please, we need it as soon as possible. The customer need this report in a few days.
(0024026)
hgbot   
2010-02-08 16:40   
Repository: erp/stable/2.40
Changeset: 87e48f0b6d5822fe93cd5f22c415b2fe1010219a
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Thu Feb 04 18:31:58 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/87e48f0b6d5822fe93cd5f22c415b2fe1010219a [^]

Fixes issue 12094: 347 shows in .dat file
an uncorrect TaxID when the entity has an Organization tree

---
M src/org/openbravo/erpCommon/ad_reports/GenerateModel347.java
M src/org/openbravo/erpCommon/ad_reports/GenerateModel347_data.xsql
---
(0024207)
networkb   
2010-02-12 13:25   
Please, review the solution provided ASAP because it is not correct
(0024209)
dalsasua   
2010-02-12 14:54   
This other change was done few days ago in changeset 6285b4358392 https://code.openbravo.com/erp/stable/2.40/rev/6285b4358392 [^] If further actions are needed, please let me know.
(0024264)
arunkumar   
2010-02-15 12:00   
Tested & Working fine