Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022888Openbravo ERPZ. Otherspublic2013-01-24 17:312013-03-05 09:30
maite 
eduardo_Argal 
urgentmajoralways
closedfixed 
5
 
3.0MP21 
Sandrahuguet
Advanced Payables and Receivables Mngmt
No
0022888: Wrong Payment In amount distribution when selecting negative details.
Wrong Payment In amount distribution when selecting negative details.
1. Register Standard Sales Invoice for "Restaurantes Luna Llena" with payment term=30days and total amount=10000
2. Register Credit Memo Sales Invoice for "Restaurantes Luna Llena" with payment term=60days and total amount=2000
3. Register Payment In header for "Restaurantes Luna Llena" and set amount=8000 (as you want to pay both invoices). Press Add details button and realize that amount is not correctly distributed (as first invoice is not completely paid although total amount is enough for both invoices)
4. Edit 'Actual Payment in' field to set any value and then edit it again to set 8000 amount again. Now amount has been properly distributed
Code executed when 'Actual Payment in' field has been modified should be executed first time that you run Add Details process

Not verified if same solution fits for Payment Out
No tags attached.
Issue History
2013-01-24 17:31maiteNew Issue
2013-01-24 17:31maiteAssigned To => dmiguelez
2013-01-24 17:31maiteModules => Advanced Payables and Receivables Mngmt
2013-01-24 17:31maiteTriggers an Emergency Pack => No
2013-01-24 17:32maiteIssue Monitored: networkb
2013-01-24 19:33jonalegriaesarteTarget Version3.0MP20 => 3.0MP21
2013-01-24 19:34jonalegriaesarteAssigned Todmiguelez => jonalegriaesarte
2013-02-20 14:50jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2013-02-26 09:59ioritzCiaAssigned ToioritzCia => dmiguelez
2013-02-28 09:48SandrahuguetAssigned Todmiguelez => Sandrahuguet
2013-02-28 17:21SandrahuguetStatusnew => scheduled
2013-02-28 17:21Sandrahuguetfix_in_branch => pi
2013-02-28 17:45SandrahuguetNote Added: 0056855
2013-03-04 10:37SandrahuguetAssigned ToSandrahuguet => eduardo_Argal
2013-03-04 10:50hgbotCheckin
2013-03-04 10:50hgbotNote Added: 0056965
2013-03-04 10:50hgbotStatusscheduled => resolved
2013-03-04 10:50hgbotResolutionopen => fixed
2013-03-04 10:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/60243532caef75a49a75afa612e363b997b6cf2d [^]
2013-03-04 10:51SandrahuguetReview Assigned To => Sandrahuguet
2013-03-04 10:51SandrahuguetNote Added: 0056967
2013-03-04 10:51SandrahuguetStatusresolved => closed
2013-03-05 09:30hudsonbotCheckin
2013-03-05 09:30hudsonbotNote Added: 0057021

Notes
(0056855)
Sandrahuguet   
2013-02-28 17:45   
Test Plan:
1. Register Standard Sales Invoice for "Restaurantes Luna Llena" with payment term=30days and total amount=10000
2. Register Credit Memo Sales Invoice for "Restaurantes Luna Llena" with payment term=60days and total amount=2000
3. Register Payment In header for "Restaurantes Luna Llena" and set amount=8000 (as you want to pay both invoices). Press Add details button and realize that amount is correctly distributed.
(0056965)
hgbot   
2013-03-04 10:50   
Repository: erp/devel/pi
Changeset: 60243532caef75a49a75afa612e363b997b6cf2d
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Mon Mar 04 10:49:27 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/60243532caef75a49a75afa612e363b997b6cf2d [^]

Fixed bug 22888 Distributed amount properly in AddOrderOrInvoice

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html
---
(0056967)
Sandrahuguet   
2013-03-04 10:51   
Code review + testing OK
(0057021)
hudsonbot   
2013-03-05 09:30   
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/e5bdfce74ee2 [^]

Maturity status: Test