Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030140Openbravo ERP09. Financial managementpublic2015-06-09 13:402015-06-11 16:28
aferraz 
aferraz 
immediatemajoralways
closedfixed 
30Professional Appliance
 
3.0PR15Q1.5 
vmromanos
Core
Production - Confirmed Stable
2015-03-17
3.0PR15Q2
https://code.openbravo.com/erp/devel/pi/rev/fb806ae22a47f529125e7528e58c0985b0238898 [^]
No
0030140: Error in Add Payment when generating credit and adding a negative line
Error in Add Payment when generating credit and adding a negative line
As F&B Admin:

- Create a Payment In from "Alimentos y Supermercados" and amount = 10
  Click on Add Details button
  Uncheck all records in Order/Invoice grid
  Add a G/L Item = "Capital social" and Paid Out = 1
  Set Action Regarding Document = "Process Received Payment(s) and Deposit" and Overpayment Action = "Leave the credit to be used later"
  Realize an error is shown: "Credit amount should not be greater than total amount"
Approved
blocks defect 00301383.0PR15Q3 closed aferraz Error in Add Payment when generating credit and adding a negative line 
Issue History
2015-06-09 13:58aferrazTypedefect => backport
2015-06-09 13:58aferrazTarget Version3.0PR15Q3 => 3.0PR15Q1.5
2015-06-10 13:30dmitry_mezentsevTag Attached: Approved
2015-06-11 16:24hgbotCheckin
2015-06-11 16:24hgbotNote Added: 0078211
2015-06-11 16:24hgbotStatusscheduled => resolved
2015-06-11 16:24hgbotResolutionopen => fixed
2015-06-11 16:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/21b9a523cd74f31703f4ff8560ef1614b49a0adb [^]
2015-06-11 16:28vmromanosReview Assigned To => vmromanos
2015-06-11 16:28vmromanosNote Added: 0078215
2015-06-11 16:28vmromanosStatusresolved => closed

Notes
(0078211)
hgbot   
2015-06-11 16:24   
Repository: erp/backports/3.0PR15Q1.5
Changeset: 21b9a523cd74f31703f4ff8560ef1614b49a0adb
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Jun 10 16:55:01 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/21b9a523cd74f31703f4ff8560ef1614b49a0adb [^]

Fixes issue 30140: Error when generating credit and adding a negative line

Add Payment was raising an error if credit used was greater than total amount.
Now, this comprobation will only be done if some record has been selected in Credit To Use grid.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0078215)
vmromanos   
2015-06-11 16:28   
Code review + testing OK