Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011511Openbravo ERP03. Procurement managementpublic2009-11-26 09:422009-12-19 00:36
sureshbabu 
harikrishnan 
immediatemajoralways
closedfixed 
30
2.50MP9 
2.50MP112.50MP10 
Core
No
0011511: Invoice amount wrongly calculated when invoice is created by Generate invoice from receipt button
Invoice amount wrongly calculated when invoice is created using Generate invoice from receipt button, when receipt is created for partially qty.

This affects QS flows
create and complete a purchase order for qty = 10 (Assume that unit price : 2.55)
Create a receipt for qty =5
create invoice from receipt by clicking the button "Generate Invoice From receipt"
Process complete successfully message appears along with Invoice id

Open the newly generated invoice id and verify the line Net amount in lines tab

Expected result : 12.75 (qty * unit price) 5 * 2.55= 12.75

Actual result: 25.50 (10 & 2.55 = 25.50)

Note: please refer the screen shot attached with this for more details
No tags attached.
has duplicate defect 00116142.50MP11 closed rafaroda Incorrect Line Net Amount when you generate invoice from receipt 
related to defect 00115122.50MP10 closed rafaroda Invoice line net amount wrongly rounded of, while line item is created using the button create line from 
jpg invoice amount wrongly calculated.JPG (176,580) 2009-11-26 09:42
https://issues.openbravo.com/file_download.php?file_id=1986&type=bug
jpg
Issue History
2009-11-26 09:42sureshbabuNew Issue
2009-11-26 09:42sureshbabuFile Added: invoice amount wrongly calculated.JPG
2009-11-26 11:34sureshbabuProject@27@ => Openbravo ERP
2009-11-26 11:35sureshbabuCategoryQuickStart Template + Datasets => 03. Procurement management
2009-11-26 11:45psarobeAssigned To => rafaroda
2009-11-26 11:45psarobePriorityurgent => immediate
2009-11-26 11:45psarobeStatusnew => scheduled
2009-11-26 11:45psarobeDescription Updated
2009-12-02 12:03rafarodaversion => main
2009-12-07 19:13psarobeversionmain => 2.50MP9
2009-12-07 19:54psarobeRelationship addedhas duplicate 0011614
2009-12-10 17:11networkbTarget Version => 2.50MP11
2009-12-15 15:42rafarodaRelationship addedrelated to 0011512
2009-12-17 08:10harikrishnanAssigned Torafaroda => harikrishnan
2009-12-17 09:29harikrishnanNote Added: 0022901
2009-12-17 09:31hgbotCheckin
2009-12-17 09:31hgbotNote Added: 0022902
2009-12-17 09:31hgbotStatusscheduled => resolved
2009-12-17 09:31hgbotResolutionopen => fixed
2009-12-17 09:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ff2b3c15d364641beeac3932f50cbfb600ea5322 [^]
2009-12-18 07:31sureshbabuNote Added: 0022926
2009-12-18 07:31sureshbabuStatusresolved => closed
2009-12-18 07:31sureshbabuFixed in Version => 2.50MP10
2009-12-19 00:00anonymoussf_bug_id0 => 2917329
2009-12-19 00:36hudsonbotCheckin
2009-12-19 00:36hudsonbotNote Added: 0022952

Notes
(0022901)
harikrishnan   
2009-12-17 09:29   
Steps to Test.

1.Create a purchase order(Procurement Management || Transactions || Purchase Order || Header ) with following details:
    Header:
        Business Partner = Any (Eg: McGiver Supplies)
    Lines:
        Product = Any (Eg: Hat)
        Quantity = 10
In this case (product = hat) the unit price will be 27.00
    Complete the purchase order

2.Create a Goods Receipt (Procurement Management || Transactions || Goods Receipt || Header ) with following details:

    Header:
        Business Partner = McGiver Supplies (The business partner selected in purchase order.)
        Using "create lines from" button select the above purchase order with quantity = 5.
    Complete the goods receipt.
Click on "Generate Invoice from Receipt" button and click OK.

The invoice line generated will have a lineNetAmount =5 * 27=135 .
(0022902)
hgbot   
2009-12-17 09:31   
Repository: erp/devel/pi
Changeset: ff2b3c15d364641beeac3932f50cbfb600ea5322
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Dec 17 14:00:48 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/ff2b3c15d364641beeac3932f50cbfb600ea5322 [^]

Fixes Issue 11511: Invoice amount wrongly calculated when invoice is created by Generate invoice from receipt button.

---
M src-db/database/model/functions/M_INOUT_CREATEINVOICE.xml
---
(0022926)
sureshbabu   
2009-12-18 07:31   
Tested, invoice line amount is rightly calculated
(0022952)
hudsonbot   
2009-12-19 00:36   
---
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/ff2b3c15d364 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/867059305a34 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15773.obx [^]
---