Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011875Openbravo ERP03. Procurement managementpublic2009-12-29 10:572010-03-10 18:28
networkb 
adrianromero 
urgentminoralways
closedfixed 
5
2.50MP9 
2.50MP122.50MP12 
Core
No
0011875: When complete a Purchase Invoice creates a payment with amount 0
This Purchase Invoice has two payments that cover 100 % of the amount
-As Openbravo Admin go to Procurement Management || Transactions || Purchase Order
-Create a new record, save
-Create a line (Product: Hammer, Tax: Exempt, Unit Price: 5.00)
-Save and go to Payment.
-Create a new record(Amount: 3.00)
-Save and create a new record (Amount: 2.00), save.
-Complete the Order

-Go to Procurement Management || Transactions || Purchase Invoice
-Create a new record, and create lines from the order created.
    -Transaction Document: AP Invoice
-Complete and go to payments.
-Verify that there are three payments. One of them with amount 0.
No tags attached.
Issue History
2009-12-29 10:57networkbNew Issue
2009-12-29 10:57networkbAssigned To => rafaroda
2009-12-30 19:04psarobeNote Added: 0023172
2009-12-30 19:04psarobeStatusnew => feedback
2009-12-31 09:41networkbNote Added: 0023177
2009-12-31 11:09psarobeStatusfeedback => scheduled
2009-12-31 11:09psarobefix_in_branch => pi
2009-12-31 11:09psarobePriorityimmediate => urgent
2009-12-31 11:09psarobefix_in_branchpi =>
2010-02-12 12:24networkbSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22#r22
2010-02-16 16:55rafarodaAssigned Torafaroda => adrianromero
2010-02-19 10:35hgbotCheckin
2010-02-19 10:35hgbotNote Added: 0024639
2010-02-19 10:35hgbotStatusscheduled => resolved
2010-02-19 10:35hgbotResolutionopen => fixed
2010-02-19 10:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/051c780949781972cc64b89c2861ae2313cdbeab [^]
2010-02-19 10:46harikrishnanNote Added: 0024640
2010-03-01 11:04arunkumarNote Added: 0024895
2010-03-01 11:04arunkumarStatusresolved => closed
2010-03-01 11:04arunkumarFixed in Version => 2.50MP12
2010-03-03 13:48hudsonbotCheckin
2010-03-03 13:48hudsonbotNote Added: 0024999
2010-03-10 17:21anonymoussf_bug_id0 =>
2010-03-10 18:28anonymoussf_bug_id => 2967969

Notes
(0023172)
psarobe   
2009-12-30 19:04   
Hi Natalia,

I thought we were talking the other day about Sales management and not Procurement. In your example you mention Procurement. That means that happens in Procurement and Sales?
(0023177)
networkb   
2009-12-31 09:41   
We are talking about Procurement Management. In Sales doesn't happen.
(0024639)
hgbot   
2010-02-19 10:35   
Repository: erp/devel/pi
Changeset: 051c780949781972cc64b89c2861ae2313cdbeab
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Fri Feb 19 15:04:21 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/051c780949781972cc64b89c2861ae2313cdbeab [^]

Fixes Issue 11875: When complete a Purchase Invoice creates a payment with amount 0.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0024640)
harikrishnan   
2010-02-19 10:46   
Steps to Test

*Create a new purchase order(Procurement Management || Transactions || Purchase Order || Header ) with the following details.
    Header:
        Business Partner : McGiver Supplies
    Lines
        Product:Hammer
        Net Unit Price:5
        Tax:Exempt
    Payment(create 2 datas)
        1.Due Date:Any date
          Amount 3
        2.Due Date:Any date
          Amount :2
    Complete the purchase order.
*Create a purchase invoice (Procurement Management || Transactions || Purchase Invoice || Header ) with following details.
    Header
        Business partner:McGiver Supplies
        Transaction Document : AP Invoice
        Click on Button "Create Lines From" and select the previous created purchase order.
    Complete the Purchase invoice.Now you can able to see only 2 payments.
*Repeat the same above steps with order unit price as 6.Then in the invoice payment tab you can notice 3 payment.One line is with amount 1 in payment tab.
(0024895)
arunkumar   
2010-03-01 11:04   
Tested & Working fine
(0024999)
hudsonbot   
2010-03-03 13:48   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/051c78094978 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/17ddf2c3af51 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16508.obx [^]