Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022133Openbravo ERP09. Financial managementpublic2012-10-29 12:482012-11-21 06:07
pramakrishnan 
pramakrishnan 
normaltrivialalways
closedfixed 
3012.04
pi 
 
Google Chrome
Core
No
0022133: Error while creating payment using business partner's credit
Error while creating payment using business partner's credit
Create a price list
"Organization":F&B España - Región Norte
"Name":NewPriceList
"Currency":INR

Add Pricelist version and product price

Create a business partner
"Organization":F&B España, S.A
"Search Key":BP3
"Name":Business Partner3
"Business Partner Category":Supplier
"Vendor":Y
"Purchase Pricelist":NewPriceList
"PO Payment":Transferencia
"PO Payment Terms":90 days
"PO Financial Account": Cuenta de Banco

Generate Credit for Business Partner3
"Organization":F&B España - Región Norte
"Paying To":Business Partner3
"Currency":INR
"Exchange Rate":2
"Generated Credit":1000

Save the record
Click Add Details
Click Ok(Make sure no lines are selected)

Create new purchase invoice
"Organization":F&B España - Región Norte
"Business Partner": Business Partner3
"Price List":Otros servicios

Create lines and complete the invoice
Click "Do not use credit"
Now, Click "Add Payment".
Select "Use Credit" checkbox.
Click Process
Notice the error "Error:
Created Payment: 1000188. For credit generation and/or credit consumption payment currency should map business partner currency: INR"

Go to Payment Out and filter for the document number "1000188"
Notice that No Records exists with that document number.


No tags attached.
Issue History
2012-10-29 12:48pramakrishnanNew Issue
2012-10-29 12:48pramakrishnanAssigned To => dmiguelez
2012-10-29 12:48pramakrishnanWeb browser => Google Chrome
2012-10-29 12:48pramakrishnanModules => Core
2012-11-06 15:39pramakrishnanAssigned Todmiguelez => pramakrishnan
2012-11-06 15:39pramakrishnanStatusnew => scheduled
2012-11-06 15:39pramakrishnanfix_in_branch => pi
2012-11-07 11:21pramakrishnanNote Added: 0054064
2012-11-15 09:18SandrahuguetNote Edited: 0054064bug_revision_view_page.php?bugnote_id=0054064#r4073
2012-11-15 10:39hgbotCheckin
2012-11-15 10:39hgbotNote Added: 0054257
2012-11-15 10:39hgbotStatusscheduled => resolved
2012-11-15 10:39hgbotResolutionopen => fixed
2012-11-15 10:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bcfa910662a285b7f70cee50ca73030317333981 [^]
2012-11-15 11:09SandrahuguetNote Added: 0054259
2012-11-15 11:09SandrahuguetStatusresolved => closed
2012-11-21 06:07hudsonbotCheckin
2012-11-21 06:07hudsonbotNote Added: 0054390

Notes
(0054064)
pramakrishnan   
2012-11-07 11:21   
(edited on: 2012-11-15 09:18)
Test Plan 1:

Login as Openbravo/openbravo

Create pricelist
"Organization":F&B US, Inc.
"Name":Indian Pricelist
"Currency":INR

Create business partner
"Organization":F&B US, Inc.
"Search key":TestBP
"Name":Test Business Partner
"Business Partner Category":Supplier
"Vendor":Y
"Purchase Pricelist":Indian Pricelist
"PO Payment Method":Wire Transfer
"PO Payment Terms":90 days
"PO Financial Account":Bank - Account 1
"Tax Category":Exempt
"Location":Chennai--India

Generate credit for the business partner
Go to payment out window

"Organization":F&B US, Inc.
"Paying To":Test Business Partner
"Currency":INR
"Exchange Rate":0.0184
"Generated Credit":1000

Create purchase invoice
"Organization":F&B US, Inc.
"Invoice Date":06-11-2012
"Business Partner":
"Price List":other services
"Accounting Date":06-11-2012

Enter line details and complete the invoice
click "Do not use credit"

Now, Click "Add Payment".
Select "Use Credit" checkbox.
Click Process
Notice that the document number is not generated and throws the error properly.

(0054257)
hgbot   
2012-11-15 10:39   
Repository: erp/devel/pi
Changeset: bcfa910662a285b7f70cee50ca73030317333981
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Nov 14 12:05:51 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcfa910662a285b7f70cee50ca73030317333981 [^]

Fixes Issue 22133: Error while creating payment using business partner's credit

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
---
(0054259)
Sandrahuguet   
2012-11-15 11:09   
Code review + testing OK
(0054390)
hudsonbot   
2012-11-21 06:07   
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/c3c5e61b0164 [^]

Maturity status: Test