Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019427Openbravo ERP09. Financial managementpublic2012-01-09 10:172012-06-07 13:27
dmiguelez 
Sandrahuguet 
normalminoralways
closedfixed 
20Community Appliance
pi 
3.0MP13 
Advanced Payables and Receivables Mngmt
No
0019427: Issue with Add Payment In/Out process with an invoice with multiple Payment Plan lines and negative values
Having an invoice with multiple Payment Plan lines, with negative values, it does not distribute as intended the outstanding amount through the Add Payment In/Out Process.
Make an invoice with multiple Payment Plan lines with negative values, for example:
 - In the Payment Term Window activate the one with the search key: 20%15d-40%30d-40%60d
 - Create a Sales Invoice with:
    - Organization: F&B España, S.A.
    - Business Partner: Alimentos y Supermercados, S.A.
    - Payment Terms: 20% a 15 días, 40% a 30 días y resto a 60 días
 - Create a line for this invoice with the values:
    - Product Cerveza Ale 0,5L
    - Invoiced Quantity -2,000
 - Complete the invoice. In the Payment In Plan there should be three lines with negative Expected Amount.
 - Click the Add Payment In/Out button. It does not distribute as intended the outstanding amount of the invoice through the Payment Plan lines.
VMA-Reviewed
related to defect 0020041 closed dmiguelez It does not balance as intended the amount when making a Payment to an Invoice 
Issue History
2012-01-09 10:17dmiguelezNew Issue
2012-01-09 10:17dmiguelezAssigned To => jonalegriaesarte
2012-01-09 10:17dmiguelezModules => Advanced Payables and Receivables Mngmt
2012-02-15 19:03iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 18:30vmromanosTag Attached: VMA-Reviewed
2012-05-10 12:13gorka_gilAssigned Tovmromanos => mirurita
2012-05-21 09:59SandrahuguetAssigned Tomirurita => Sandrahuguet
2012-05-21 09:59SandrahuguetStatusnew => acknowledged
2012-05-21 09:59SandrahuguetStatusacknowledged => scheduled
2012-05-21 09:59Sandrahuguetfix_in_branch => pi
2012-05-21 15:50SandrahuguetNote Added: 0048809
2012-06-01 13:50dmiguelezRelationship addedrelated to 0020041
2012-06-07 13:26hgbotCheckin
2012-06-07 13:26hgbotNote Added: 0049669
2012-06-07 13:26hgbotStatusscheduled => resolved
2012-06-07 13:26hgbotResolutionopen => fixed
2012-06-07 13:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2d5e6e678e93a4a0bbc763df6557d940a7d1c8af [^]
2012-06-07 13:26hgbotCheckin
2012-06-07 13:26hgbotNote Added: 0049670
2012-06-07 13:27miruritaNote Added: 0049672
2012-06-07 13:27miruritaStatusresolved => closed
2012-06-07 13:27miruritaFixed in Version => 3.0MP13

Notes
(0048809)
Sandrahuguet   
2012-05-21 15:50   
Test Plan 1:
-Go to Payment Term, and create:
 -Organization: *
 -Search key: 30d-60d-90d
 -Name: 30d-60d-90d
 -Overdue Payment Days Rule: 30
 -Navigate to lines and create:
  -Line No.: 10
  -Percentaje Due: 40
  -Overdue Payment Days Rule: 60
 -Create other line
  -Line No.: 20
  -Percentaje Due: 40
  -Overdue Payment Days Rule: 90
  -Rest: true
-Go to sales invoice:
  -Organization: F&B España, S.A
  -Business Partner: Alimentos y Supermercados, S.A
  -Payment Terms: 30d-60d-90d
  -Navigate to lines and create
    -Product: Cerveza Ale 0.5L
    - Invoiced Quantity: -2000
  -Click the Add Payment button.
  -Notice that it does distribute as intended the outstanding amount of the invoice through the Payment Plan lines.

Test Plan 2:
-Create a Sales Invoice with:
 -Organization: F&B España - Región Norte
 -Business Partner: Alimentos y Supermercados, S.A.
 -Payment terms: 30 days
 -Create line: Product=Cerveza Ale 0.5L , Invoiced Quatity=60, Net Unit Price=1, Tax=Ventas exentas
-Create a Sales Invoice with:
 -Organization: F&B España - Región Norte
 -Business Partner: Alimentos y Supermercados, S.A.
 -Payment terms: 30 days
 -Create line: Product=Cerveza Ale 0.5L , Invoiced Quatity=-20, Net Unit Price=1, Tax=Ventas exentas
-Create a Sales Invoice with:
 -Organization: F&B España - Región Norte
 -Business Partner: Alimentos y Supermercados, S.A.
 -Payment terms: 30 days
 -Create line: Product=Cerveza Ale 0.5L , Invoiced Quatity=10, Net Unit Price=1, Tax=Ventas exentas
Select one of the invoices created and click the Add Payment button.
  -Notice that the payment in for each line is correct.
(0049669)
hgbot   
2012-06-07 13:26   
Repository: erp/devel/pi
Changeset: 2d5e6e678e93a4a0bbc763df6557d940a7d1c8af
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon May 21 13:53:12 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2d5e6e678e93a4a0bbc763df6557d940a7d1c8af [^]

Fixed bug 19427 Change behavior in multiple Payment Plan lines and negative values
Change behavior in multiple Payment Plan lines and negative values
in Add Payment process.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
(0049670)
hgbot   
2012-06-07 13:26   
Repository: erp/devel/pi
Changeset: a44a29d2a0c00d1bfe4f44535fba51ea8a140864
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jun 07 13:17:39 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a44a29d2a0c00d1bfe4f44535fba51ea8a140864 [^]

Related to issue 19427: missing flow. Fixed issue 20041.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
(0049672)
mirurita   
2012-06-07 13:27   
code review + testing OK