Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018903Openbravo ERP03. Procurement managementpublic2011-10-27 14:052011-11-04 13:58
VictorVillar 
mirurita 
immediatemajoralways
closedfixed 
5
3.0MP4.1 
3.0MP6 
Core
No
0018903: Acct Server process does not post a financial invoice correctly
Acct Server process does not post a financial invoice correctly.
The process works properly in Openbravo 3MP1
As F&B International Group Admin role
1.-Navigate to "G/L Item" and create a new record:
      Organization: F&B España S.A. (only is possible with this organization because there is a bug in relation to U.S organization due to the 2 Accounting schema)
      Check off Enable in Financial Invoices
      Select a Tax Category: IVA Normal
      Name: Cuenta prueba
2.- Go to "Purchase Invoice" and create a new record:
      Organization: F&B España S.A.
      Business partner: Refrescos Naturales or whichever
      go to tab Lines and create a new financial invoice Line:
         check off Financial Invoice line
         Account: Cuenta prueba
         Tax: Adquisición inmuebles 16 % or whichever
  Save it.
3. hold on until the background process get execute, and post it the invoice
We can see the button "Post: Invalid Account", but if we do it manually, it works correctly. So the Acct Server process does not work properly.
No tags attached.
depends on backport 00189172.50MP36 closed mirurita Acct Server process does not post a financial invoice correctly 
Issue History
2011-10-27 14:05VictorVillarNew Issue
2011-10-27 14:05VictorVillarAssigned To => jonalegriaesarte
2011-10-27 14:05VictorVillarModules => Core
2011-10-27 14:05VictorVillarResolution time => 1322607600
2011-10-27 16:37jonalegriaesarteAssigned Tojonalegriaesarte => mirurita
2011-10-27 16:37jonalegriaesartePriorityurgent => immediate
2011-10-28 08:52miruritaStatusnew => scheduled
2011-10-28 08:52miruritafix_in_branch => pi
2011-10-28 09:12hgbotCheckin
2011-10-28 09:12hgbotNote Added: 0042188
2011-10-28 09:12hgbotStatusscheduled => resolved
2011-10-28 09:12hgbotResolutionopen => fixed
2011-10-28 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6dc534300c35a5c83858c6e469c9b7a451414be8 [^]
2011-10-28 12:31VictorVillarNote Added: 0042219
2011-10-28 12:31VictorVillarStatusresolved => closed
2011-10-31 09:47hgbotCheckin
2011-10-31 09:47hgbotNote Added: 0042388
2011-11-04 13:57hudsonbotCheckin
2011-11-04 13:57hudsonbotNote Added: 0042595
2011-11-04 13:58hudsonbotCheckin
2011-11-04 13:58hudsonbotNote Added: 0042609

Notes
(0042188)
hgbot   
2011-10-28 09:12   
Repository: erp/devel/pi
Changeset: 6dc534300c35a5c83858c6e469c9b7a451414be8
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Fri Oct 28 09:11:00 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6dc534300c35a5c83858c6e469c9b7a451414be8 [^]

Fixes issue 18903: Acct Server process does not post a financial invoice correctly.
Financial Invoice posting failing (Account could not be found) in the following conditions:
- Posting done by the acct server configured at system administrator level.
- The Organization of the Invoice does not post in all the accounting schemas available for the client.
In the case of F&B, if you create a financial invoice for F&BEspaña and the GLItem associated only has
accounts defined for Euro accounting schema, when the acctserver process tries to post it will show
'Account could not be found'.
The problem is in the m_as global variable. When it is launched by the acctserver (org 0) it has all the
accounting schemas of the client, not only the accounting schemas available for the document (invoice)
organization. It tries to verify if the GL Item has accounts defined for accounting schemas in m_as, but if
the document org only post in one acctschema it will fail

---
M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
---
(0042219)
VictorVillar   
2011-10-28 12:31   
Verified
(0042388)
hgbot   
2011-10-31 09:47   
Repository: erp/devel/pi
Changeset: 61030937ea19e1056ee00230f8087ae47788da04
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Mon Oct 31 09:47:13 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/61030937ea19e1056ee00230f8087ae47788da04 [^]

Related to issue 18903: Acct Server process does not post a financial invoice correctly.
Take always the organization of the document

---
M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
---
(0042595)
hudsonbot   
2011-11-04 13:57   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d10da320df2a [^]

Maturity status: Test
(0042609)
hudsonbot   
2011-11-04 13:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d10da320df2a [^]

Maturity status: Test