Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0047757Openbravo ERP09. Financial managementpublic2021-09-27 10:202021-09-27 10:22
zaien 
Triage Omni OMS 
normalmajoralways
newopen 
5
 
 
Core
No
0047757: use suspense balance has wrong logic
use suspense balance has wrong logic
1. make sure general ledger accounting schema has use suspense balancing option checked, meaning when document is not balanced, it will failed during document posting.
2. make an completed invoice, change value of c_invoice.totallines and c_invoice.grandtotal, with another value, change directly from db. this is to simulate unbalanced invoice.
3. do post invoice, it still able to post. expected: failed with status not balanced.
No tags attached.
Issue History
2021-09-27 10:20zaienNew Issue
2021-09-27 10:20zaienAssigned To => Triage Finance
2021-09-27 10:20zaienModules => Core
2021-09-27 10:20zaienTriggers an Emergency Pack => No
2021-09-27 10:22zaienNote Added: 0132012

Notes
(0132012)
zaien   
2021-09-27 10:22   
suggest
change this line code: https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/ad_forms/AcctServer.java#L1148 [^]

with this:
if (m_as[index].isSuspenseBalancing() && !isBalanced()) {