Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010136Openbravo ERP09. Financial managementpublic2009-07-30 17:302009-08-20 13:51
networkb 
dalsasua 
immediatemajoralways
closedfixed 
20rPath Linux
2.50MP2 
pi 
Core
No
0010136: create new bank does not create all accountings records in accounting tab
if you have two accountings schemas, when you create a new bank, in "accounting" tab, they are not created one accounting record for each accounting schema.

If after this, you create a new bankstatement with this bank, when you post this record, error is returned: "Created 0"
. in enviroment with two accounting schemas:
   schema M in organization main
   schema A in organization A

. Financial Management || Receivables & Payables || Setup || Bank || Bank >> Bank Account -> create new register in organization A

in Financial Management || Receivables & Payables || Setup || Bank || Bank >> Bank Account -> accounting
  exists only one record -> accounting to schema main
No tags attached.
related to defect 0010167 closed vmromanos In cash book accounts are not assigned automatically under some circumstances 
Issue History
2009-07-30 17:30networkbNew Issue
2009-07-30 17:30networkbAssigned To => rafaroda
2009-07-31 09:46rafarodaNote Added: 0018751
2009-07-31 09:46rafarodaStatusnew => feedback
2009-07-31 13:11networkbProposed Solution updated
2009-07-31 13:14rafarodaNote Added: 0018764
2009-07-31 13:14rafarodaAssigned Torafaroda => dalsasua
2009-07-31 13:14rafarodaStatusfeedback => new
2009-07-31 19:07dalsasuaStatusnew => closed
2009-07-31 19:07dalsasuaNote Added: 0018771
2009-07-31 19:07dalsasuaResolutionopen => unable to reproduce
2009-08-01 00:00anonymoussf_bug_id0 => 2830572
2009-08-01 00:00dalsasuaStatusclosed => new
2009-08-01 00:00dalsasuaResolutionunable to reproduce => open
2009-08-01 00:00dalsasuaStatusnew => scheduled
2009-08-01 00:00dalsasuafix_in_branch => pi
2009-08-01 00:01hgbotCheckin
2009-08-01 00:01hgbotNote Added: 0018772
2009-08-01 00:01hgbotStatusscheduled => resolved
2009-08-01 00:01hgbotResolutionopen => fixed
2009-08-01 00:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4b61b4fcb81d6e7434bdae97059b93ef12035406 [^]
2009-08-04 08:02dalsasuaRelationship addedrelated to 0010167
2009-08-20 12:13dalsasuaNote Added: 0019093
2009-08-20 13:51sureshbabuStatusresolved => closed
2009-08-20 13:51sureshbabuNote Added: 0019105
2009-08-20 13:51sureshbabuFixed in Version => pi

Notes
(0018751)
rafaroda   
2009-07-31 09:46   
Please provide detailed steps to reproduce this issue.

Thank you.
(0018764)
rafaroda   
2009-07-31 13:14   
David, can you please take action on this issue?

Thanks.
(0018771)
dalsasua   
2009-07-31 19:07   
pi, revision a3ce510ff401 works fine.
(0018772)
hgbot   
2009-08-01 00:01   
Repository: erp/devel/pi
Changeset: 4b61b4fcb81d6e7434bdae97059b93ef12035406
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Sat Aug 01 00:01:22 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4b61b4fcb81d6e7434bdae97059b93ef12035406 [^]

Fixes issue 10136: create new bank does not create all accountings records in accounting tab

---
M src-db/database/model/triggers/C_BANKACCOUNT_TRG.xml
---
(0019093)
dalsasua   
2009-08-20 12:13   
Hi all,

Aclaration: problem with this issue is that if you create a bank for an organization, in the accounting tab should be inserted as many rows, as accounting schemas has got that organization, all its son-organizations, and all of its father-organizations. Previously it was not created for father-organizations.

For example:
Organization tree:
*Main
**A
***A1
all of them has got one accounting schema.
If you create a bank at organization A level, only A and A1 rows are inserted in the accounting tab of the bank, but not for Main organization.
After fixing the bug, it should insert for Main, A and A1.

Regards.
(0019105)
sureshbabu   
2009-08-20 13:51   
Tested working fine, right now i am finding Main organization.