Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026649Openbravo ERPZ. Otherspublic2014-05-21 16:242014-08-08 18:52
maite 
pramakrishnan 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
daniOpenbravo
Advanced Payables and Receivables Mngmt
No
0026649: Wrong payment details when "using credit" but total amount to pay is negative
Wrong payment details when "using credit" but 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 details are not correct and that credit has not really been used
No tags attached.
related to defect 0035054 closed AtulOpenbravo It is not possible to pay a negative purchase invoice using credit and selecting "Refund amount to customer" 
Issue History
2014-05-21 16:24maiteNew Issue
2014-05-21 16:24maiteAssigned To => dmiguelez
2014-05-21 16:24maiteModules => Advanced Payables and Receivables Mngmt
2014-05-21 16:24maiteTriggers an Emergency Pack => No
2014-05-21 16:25maiteResolution time => 1403820000
2014-05-21 16:25maiteNote Added: 0067339
2014-05-21 16:25maiteAssigned Todmiguelez => pramakrishnan
2014-06-30 12:35eduardo_ArgalTarget VersionPR14Q3 => PR14Q4
2014-07-03 18:35hgbotCheckin
2014-07-03 18:35hgbotNote Added: 0068532
2014-07-03 18:35hgbotStatusnew => resolved
2014-07-03 18:35hgbotResolutionopen => fixed
2014-07-03 18:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cf89ea93bdfc35190ab1982be4e7e01bebbe19f9 [^]
2014-07-03 18:38daniOpenbravoNote Added: 0068533
2014-07-03 18:47daniOpenbravoReview Assigned To => daniOpenbravo
2014-07-03 18:47daniOpenbravoNote Added: 0068534
2014-07-03 18:47daniOpenbravoStatusresolved => closed
2014-07-03 18:48daniOpenbravoFixed in Version => PR14Q4
2014-08-08 18:52hudsonbotCheckin
2014-08-08 18:52hudsonbotNote Added: 0069134
2017-03-29 13:51aferrazRelationship addedrelated to 0035054

Notes
(0067339)
maite   
2014-05-21 16:25   
modulescript required to fix erroneous data
(0068532)
hgbot   
2014-07-03 18:35   
Repository: erp/devel/pi
Changeset: cf89ea93bdfc35190ab1982be4e7e01bebbe19f9
Author: Daniel Ruiz <daniel.ruiz <at> openbravo.com>
Date: Thu Jul 03 18:33:48 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cf89ea93bdfc35190ab1982be4e7e01bebbe19f9 [^]

Fixes Issue 26649:Wrong payment details when using credit but total amount to pay is negative

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0068533)
daniOpenbravo   
2014-07-03 18:38   
Finally there is no bug.

Used Credit is 0 as it is not necessary to use that credit because there is no amount to be paid (60 - 100= -40, so there is nothing to pay but credit is going to be generated).

Amount of 40 is left as credit.

Amount of the payment is 0 as a result of Total Amount of purchase invoices plus generated credit.

We have added a message in order to be shown when using credit is not necessary.
(0068534)
daniOpenbravo   
2014-07-03 18:47   
Verified. Added note.
(0069134)
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