Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030821Openbravo ERP09. Financial managementpublic2015-09-14 17:442015-09-15 16:51
malsasua 
AtulOpenbravo 
immediatemajoralways
closedfixed 
20Community Appliance
3.0PR15Q3.1 
3.0PR15Q3.2 
vmromanos
Core
Production - QA Approved
2015-05-14
3.0PR15Q3
https://code.openbravo.com/erp/devel/pi/rev/a810d05065cfe7eb3199928ed9104c7b54989ecb [^]
No
0030821: accounting process is not working with payment out and negative amount
when you run the accounting process to negative payment amount, error is returned:
Error
Process failed during execution
. in F&B
 . go to financial account "Cuenta de Banco"
  -> tab: "payment method" -> transferencia
   . upon payment use: in transit payment account

 . go to purchase invoice:
  . new header:
   bp: GeneraciĆ³n Electrica
  . new lines:
   product: Sitemas de informaciĆ³n
   qty: -20
   amt: 5
 . process invoice

 . add payment-> process and deposit
 . go to payment out -> the payment created above
  . post it
error is returned
Approved
blocks defect 0030820 closed AtulOpenbravo accounting process is not working with payment out and negative amount 
Issue History
2015-09-14 18:18vmromanosTypedefect => backport
2015-09-14 18:18vmromanosTarget Version => 3.0PR15Q3.2
2015-09-14 18:22vmromanosTag Attached: Approved
2015-09-15 16:41vmromanosAssigned ToTriage Finance => AtulOpenbravo
2015-09-15 16:49hgbotCheckin
2015-09-15 16:49hgbotNote Added: 0080411
2015-09-15 16:49hgbotStatusscheduled => resolved
2015-09-15 16:49hgbotResolutionopen => fixed
2015-09-15 16:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.2/rev/0ac759405027515b5baeec5574e7fc72dd30de6d [^]
2015-09-15 16:51vmromanosReview Assigned To => vmromanos
2015-09-15 16:51vmromanosNote Added: 0080415
2015-09-15 16:51vmromanosStatusresolved => closed

Notes
(0080411)
hgbot   
2015-09-15 16:49   
Repository: erp/backports/3.0PR15Q3.2
Changeset: 0ac759405027515b5baeec5574e7fc72dd30de6d
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Sep 15 15:07:15 2015 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.2/rev/0ac759405027515b5baeec5574e7fc72dd30de6d [^]

Fixes Issue 30821:Accounting process fails for payment out with negative amt

If the docbasetype is not GLJournal is null then docLine Object is null. A
docbasetype check is added before accessing docLine Object.

---
M src/org/openbravo/erpCommon/ad_forms/Fact.java
---
(0080415)
vmromanos   
2015-09-15 16:51   
Code review + testing OK