Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026995Openbravo ERP03. Procurement managementpublic2014-07-02 10:302014-08-08 18:52
daniOpenbravo 
Sandrahuguet 
immediatecriticalalways
closedfixed 
3013.04
pi 
3.0PR14Q33.0PR14Q3 
umartirena
Google Chrome
Core
Pre packaging ( pi )
2014-06-19
pi
https://code.openbravo.com/erp/devel/pi-aprm-windows/rev/45cdf404c7a6 [^]
No
0026995: Not able to process a payment out when "using credit" and total amount to pay is negative
Error "Not all the available amount has been allocated." appears when "using credit" and total amount to pay is negative.
1. Register Payment Out for "Bebidas Alegres" and set "Generate Credit" =50. Process payment
2. Register Purchase Invoice for "Bebidas Alegres", add any line and set unit price=60. Process invoice and DO NOT use credit to pay it
3. Register other Purchase Invoice for "Bebidas Alegres", add any line and set negative price=-100. Process invoice
4. Register Payment Out for "Bebidas Alegres" and "Add details". Select option "use available credit" and also select previous invoices (positive and negative one). Process payment and verify that error "Not all the available amount has been allocated." is shown.
Check the validation:
if (actualPayment.compareTo(total) > 0 && totalOustandingAmount.compareTo(amountInvOrds.add(totalWriteOffAmount)) > 0) {...}
on line 778 (ob-aprm-addPayment.js).
No tags attached.
Issue History
2014-07-02 10:30daniOpenbravoNew Issue
2014-07-02 10:30daniOpenbravoAssigned To => Sandrahuguet
2014-07-02 10:30daniOpenbravoWeb browser => Google Chrome
2014-07-02 10:30daniOpenbravoModules => Core
2014-07-02 10:30daniOpenbravoTriggers an Emergency Pack => No
2014-07-02 11:22SandrahuguetWeb browserGoogle Chrome => Google Chrome
2014-07-02 11:22SandrahuguetRegression level => Pre packaging ( pi )
2014-07-02 11:22SandrahuguetRegression date => 2014-06-19
2014-07-02 11:22SandrahuguetRegression introduced in release => pi
2014-07-02 11:22SandrahuguetRegression introduced by commit => https://code.openbravo.com/erp/devel/pi-aprm-windows/rev/45cdf404c7a6 [^]
2014-07-02 11:25hgbotCheckin
2014-07-02 11:25hgbotNote Added: 0068501
2014-07-02 11:25hgbotStatusnew => resolved
2014-07-02 11:25hgbotResolutionopen => fixed
2014-07-02 11:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7feca0cc80f3912765faf46526c81be759ade975 [^]
2014-07-02 11:31umartirenaReview Assigned To => umartirena
2014-07-02 11:31umartirenaNote Added: 0068502
2014-07-02 11:31umartirenaStatusresolved => closed
2014-07-02 11:31umartirenaFixed in Version => PR14Q3
2014-08-08 18:52hudsonbotCheckin
2014-08-08 18:52hudsonbotNote Added: 0069128

Notes
(0068501)
hgbot   
2014-07-02 11:25   
Repository: erp/devel/pi
Changeset: 7feca0cc80f3912765faf46526c81be759ade975
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Jul 02 11:24:49 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7feca0cc80f3912765faf46526c81be759ade975 [^]

Fixes bug 26995 oustandingAmount is wrong calculated in done validation

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0068502)
umartirena   
2014-07-02 11:31   
Tested and verified
(0069128)
hudsonbot   
2014-08-08 18:52   
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/4450016dee64 [^]
Maturity status: Test