Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016216Openbravo ERP09. Financial managementpublic2011-03-10 18:032011-04-14 00:00
psarobe 
mirurita 
urgentmajoralways
closedfixed 
5
pi 
3.0RC63.0RC6 
Advanced Payables and Receivables Mngmt
No
0016216: Actions not allowed are shown when creating a payment. Window Payment Out
The ERP only allows you to select "Process Payment made and withdrawal" when it makes no sense the withdrawal
First of all you enter a Payment Out with the amount that the vendor already told you that you have to pay. Go to Payment Out screen and create a new record:
Organization = F&B US, Inc.,
Paying To = Happy Drinks, Inc.,
Payment Method = Wire Transfer,
Paying From = USD - US Bank - Account 1
Amount = 0.00,
Generated Credit = 546.77,
Save
Click Add Payment Details. Do not select any orders or invoices, but select the option Leave this amount to be used later
Let's assume that timed passed by and in the meantime you received purchase invoices from the vendor. You enter them into the application using the Purchase Invoice screen and creating a new record:
[Header]
Organization = F&B US, Inc.
Transaction Document = US AP Invoice
Business Partner = Happy Drinks, Inc.
Payment Method = Wire Transfer
Payment Terms = 30 days
[Lines]
Product = Rosé Wine
Invoiced Quantity = 100
back in [Header]
Verify that the Total Gross Amount is 401.25 USD.
Complete the invoice.
There were no discounts applied, so the Total Gross Amount should still be 401.25 USD.
Go to the Purchase Invoice screen and create a new record:
[Header]
Organization
= F&B US, Inc.
Transaction Document = US AP Invoice
Business Partner = Happy Drinks, Inc.
Payment Method = Wire Transfer
Payment Terms = 30 days
[Lines]
Product = Ale Beer
Invoiced Quantity' = 100
back in [Header]
Verify that the Total Gross Amount is 145.52 USD.
Complete the invoice.
There were no discounts applied, so the Total Gross Amount is still 145.52 USD.
Now execute the payment of the 2 purchase invoices by go to Payment Out and create a new record:
Organization = F&B US, Inc.
Paying To = Happy Drinks, Inc.
Payment Method = Wire Transfer
Paying From = USD - US Bank - Account 1
Save record
Click Add Payment Details:
Available credit of 546.77 USD appears on the pop up screen
Select the checkbox Use Available Credit and select the two purchase invoices
The 'Total' is exactly 546.77
Click 'Process' and 'OK'

Here is the mistake. In this scenario the withdrawal makes no sense since you already did it when paying the vendor. This will mislead the users although finally the ERP doesn't do the withdrawal

Expected behaviour: It should only show Process payments made
No tags attached.
depends on backport 00166313.0RC6 closed mirurita Actions not allowed are shown when creating a payment. Window Payment Out 
Issue History
2011-03-10 18:03psarobeNew Issue
2011-03-10 18:03psarobeAssigned To => mirurita
2011-03-10 18:03psarobeModules => Advanced Payables and Receivables Mngmt
2011-04-04 13:38miruritaStatusnew => scheduled
2011-04-04 13:38miruritafix_in_branch => pi
2011-04-05 09:39hgbotCheckin
2011-04-05 09:39hgbotNote Added: 0035583
2011-04-05 09:39hgbotStatusscheduled => resolved
2011-04-05 09:39hgbotResolutionopen => fixed
2011-04-05 09:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/966854b29a2b737cdf23734828a0e5a2b5dec989 [^]
2011-04-07 12:47psarobeNote Added: 0035727
2011-04-13 14:49psanjuanNote Added: 0035912
2011-04-13 14:49psanjuanStatusresolved => closed
2011-04-13 14:49psanjuanFixed in Version => 3.0RC6
2011-04-13 14:49psanjuanfix_in_branchpi =>
2011-04-14 00:00anonymoussf_bug_id0 => 3286197

Notes
(0035583)
hgbot   
2011-04-05 09:39   
Repository: erp/devel/pi
Changeset: 966854b29a2b737cdf23734828a0e5a2b5dec989
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Tue Apr 05 09:38:33 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/966854b29a2b737cdf23734828a0e5a2b5dec989 [^]

Fixes issue 16216: Actions not allowed are shown

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.html
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java
---
(0035727)
psarobe   
2011-04-07 12:47   
The solution is that in this cases no pop-up is shown
(0035912)
psanjuan   
2011-04-13 14:49   
fixed and working