Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018016
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2011-07-18 10:102011-08-02 12:07
ReporterpsarobeView Statuspublic 
Assigned Tovmromanos 
PriorityurgentResolutionfixedFixed in Version3.0MP2
StatusclosedFix in branchFixed in SCM revisionb2f11fac6056
ProjectionnoneETAnoneTarget Version3.0MP3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018016: Vendor credit payment: Automatic payment is not working well when payment method creates payment and withdrawal

DescriptionThe advance payment feature is not working properly when you use a payment method that creates the payment and the withdrawal/deposit.

To explain this scenario we are going to use the QA testing dema data. The payment method will be:

6(Spain): Creates a payment and withdrawal

The same happens with payment method 4 (Spain) that creates a payment but not the withdrawal
Steps To Reproduce****Create Advance payment****

Login with:

    "User name": Openbravo
    "Password": openbravo
    "Role": QA testing Admin

Go to Financial management || Receivables & Payables || Transactions || Payment Out

Click New and select:

    Paying to: Vendor B
    Generated credit: 33.44
    Change payment method to: 6(Spain)

Click Save and verify:

    Document type: AP Payment
    Paying from: EUR - Spain Bank
    Currency: EUR
    Status: Awaiting Payment

Click Add details button

Do not select any invoice or order but select the option Leave this amount to be used later. Click Process

Then it appears another pop-up window. Verify that the combo box Action regarding document has the value Process Made Payment(s)and withdrawal

Click OK button

Verify:

    Process completed succesfully green message appears
    Amount: 33.44
    Status: Payment Made
    Description: Amount left as credit: 33.44

********Create the purchase invoice**********+

Go to Procurement management || Transactions || Purchase invoice

Click new and fill:

    "Transaction Document": AP Invoice
    "Business partner": Vendor B

Click Save and verify:

    "Partner adress" : . Pamplona, Street Purchase center nÂș1
    "Invoice Date": Current system date
    "Price list": Purchase
    "Currency": EUR
    "Payment method": 6 (Spain)
    "Payment Terms": 30,5 days

Move to lines tab and click new

Select the product Raw materials C and change the Invoice Quantity to 15.2 an save

Then verify:

    "UOM": Bag
    "Net Unit Price": 2.00
    "Net List Price": 2.00
    "Tax": VAT 10%
    "Line net amount": 30.40

Move to the header tab and lick the complete button and verify:

    "Description": Invoice paid using credit: {Document No of payment created in FINa10} - 13/07/2011 - Vendor A - 33.44
    In the status bar "Payment complete": Yes
    In the status bar "Total Net Amount": 30.40
    In the status bar "Total Gross Amount": 33.44
    In the status bar "Document Status": Completed

******* Things that are wrong*********

1. Notice the "Description" field is not populated as it should be and remains blank. This is wrong
2. Notice it has created two payments (See attach):
  2.1 One because of the payment method itself with 33,44 amount. Status withdrawn not cleared. This is wrong
  2.2 Another one because of the Advance automatic payment feature with amount 0,00 and not processed (Status: Awaiting payment) with no lines. This is wrong
3. Finally it creates another transaction in the financial account so we are paying double to this vendor. this is wrong
Proposed SolutionAlthough the payment method is forcing to create the payment and the withdrawal, since it is a purchase invoice that is the result of an advance payment the ERP should check this and not take into account the payment method and just create the payment that matches with the Advance payment.
TagsNo tags attached.
Attached Filespng file icon AdvancePayment.png [^] (34,552 bytes) 2011-07-18 10:10


png file icon Captura.PNG [^] (21,099 bytes) 2011-07-18 10:44

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0039303)
hgbot (developer)
2011-07-21 17:36

Repository: erp/devel/pi
Changeset: b2f11fac605600693678ab084543118b42148657
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jul 21 17:36:04 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b2f11fac605600693678ab084543118b42148657 [^]

Fixes issue 18016: cancel credit not working with automatic payment

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0039653)
hudsonbot (developer)
2011-08-01 14:20

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/cf2afed6e8ef [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2011-07-18 10:10 psarobe New Issue
2011-07-18 10:10 psarobe Assigned To => vmromanos
2011-07-18 10:10 psarobe File Added: AdvancePayment.png
2011-07-18 10:10 psarobe Modules => Core
2011-07-18 10:15 psarobe Description Updated View Revisions
2011-07-18 10:44 psarobe File Added: Captura.PNG
2011-07-21 17:36 hgbot Checkin
2011-07-21 17:36 hgbot Note Added: 0039303
2011-07-21 17:36 hgbot Status new => resolved
2011-07-21 17:36 hgbot Resolution open => fixed
2011-07-21 17:36 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b2f11fac605600693678ab084543118b42148657 [^]
2011-08-01 14:20 hudsonbot Checkin
2011-08-01 14:20 hudsonbot Note Added: 0039653
2011-08-02 12:07 gorkaion Status resolved => closed
2011-08-02 12:07 gorkaion Fixed in Version => 3.0MP2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker