Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011312Openbravo ERP03. Procurement managementpublic2009-11-11 10:482012-05-10 11:15
arunkumar 
Sandrahuguet 
normalmajorhave not tried
closedunable to reproduce 
5
main 
 
Core
No
0011312: Purchase invoice lines - Trailing zeros are missed in purchase order line
Purchase order grant total amount is 2.20. Create goods receipt for this and Create purchase invoice for this order.Verify the purchase invoice lines. In purchase order line it misses trailing zeros.It display only 2.2
Login as userA
Go to Procurement management->Transactions->Purchase Order
Select the business partner
Move to tab Lines and click New.
Click on the product icon and select the product.and enter the following values
Unit price:2
List price:2
Tax:VAT 10%
Fill in Ordered quantity= 1
Move to header and complete. Verify:
Summed Line Amount= 2.00
Grand Total Amount= 2.20

Go to Procurement management->Transactions->Goods receipt
Click new and select the same business partner which we selected in purchase order.
Click on button 'Create lines from'
In the "Order" combo box there is the purchase order
Select the purchase order
Select a warehouse position
Select the purchase order line
Click OK
Move to Lines
Click on Attribute set value icon and fill the values and click OK
Go back to header and Complete

Go to Procurement management->Transactions->Purchase invoice
Click New and select Transaction Document= AP Invoice
Select the same business partner
Click on button 'Create lines from'
In the "Order" combo box there is the purchase order
In the "Shipment" combo box there is the good receipt
Select the good receipt and click OK
Move to Lines and verify the tax:
Taxes: VAT 10%

The box "Purchase Order Line" is filled properly

Here you can see the amount is displayed as 2.2 instead of 2.20. Trailing zero is missed here.(Refer the screenshot)
No tags attached.
jpg purchaseordergrandtotalamount.JPG (196,426) 2009-11-11 10:48
https://issues.openbravo.com/file_download.php?file_id=1938&type=bug
jpg

jpg PurchaseInvoice-purchaseorderline.JPG (179,226) 2009-11-11 10:48
https://issues.openbravo.com/file_download.php?file_id=1939&type=bug
jpg

png Pantallazo del 2012-05-10 11:08:49.png (123,324) 2012-05-10 11:10
https://issues.openbravo.com/file_download.php?file_id=5204&type=bug
png

png Pantallazo del 2012-05-10 11:09:19.png (103,627) 2012-05-10 11:11
https://issues.openbravo.com/file_download.php?file_id=5205&type=bug
png

png Pantallazo del 2012-05-10 11:12:10.png (108,054) 2012-05-10 11:14
https://issues.openbravo.com/file_download.php?file_id=5206&type=bug
png
Issue History
2009-11-11 10:48arunkumarNew Issue
2009-11-11 10:48arunkumarAssigned To => rafaroda
2009-11-11 10:48arunkumarFile Added: purchaseordergrandtotalamount.JPG
2009-11-11 10:48arunkumarFile Added: PurchaseInvoice-purchaseorderline.JPG
2009-11-16 11:50arunkumarStatusnew => acknowledged
2009-11-16 11:51arunkumarNote Added: 0021845
2009-11-16 13:22arunkumarNote Added: 0021855
2010-02-11 18:16rafarodaAssigned Torafaroda => adrianromero
2011-06-03 11:00dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:11dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-02-15 19:05iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-05-10 08:58SandrahuguetStatusacknowledged => scheduled
2012-05-10 08:58SandrahuguetAssigned Tovmromanos => Sandrahuguet
2012-05-10 08:58Sandrahuguetfix_in_branch => pi
2012-05-10 11:10SandrahuguetFile Added: Pantallazo del 2012-05-10 11:08:49.png
2012-05-10 11:11SandrahuguetFile Added: Pantallazo del 2012-05-10 11:09:19.png
2012-05-10 11:14SandrahuguetFile Added: Pantallazo del 2012-05-10 11:12:10.png
2012-05-10 11:15SandrahuguetNote Added: 0048544
2012-05-10 11:15SandrahuguetStatusscheduled => closed
2012-05-10 11:15SandrahuguetResolutionopen => unable to reproduce

Notes
(0021845)
arunkumar   
2009-11-16 11:51   
Rafa our daily build is getting failed for past few days due to this missing trailing zeros.
(0021855)
arunkumar   
2009-11-16 13:22   
I would like to mention the places where I saw the issues.

Scenario 1:

I have created a purchase order with Line Net Amount as 2.00 and Grand total amount as 2 20.Assume the purchase order document number is 800000 and created on 16-11-2009.

*** Create Goods receipt for the order.

I have seen in Goods receipt for the order -> Header -> Purchase order is displayed as 800000 - 16-11-2009 - 2.2
Goods receipt -> lines -> Purchase Order Line is displayed as 800000 - 16-11-2009 - 2.2 - 10 - 2

*** Create Purchase Invoice for the order.

I have seen in Purchase Invoice for the order -> Header -> Purchase order is displayed as 800000 - 16-11-2009 - 2.2
Lines -> Invoice is displayed as 10000000 - 2.2 - 16-11-2009
Lines -> Purchase Order Line is displayed as 800000 - 16-11-2009 - 2.2 - 10 - 2

Scenario 2:

I have created a sales order with Line Net Amount as 2.00 and Grand total amount as 2 20.Assume the sales order document number is 50000 and created on 16-11-2009.

*** Create Goods shipment for the order.

I have seen in Goods shipment for the order -> Header -> Sales order is displayed as 50000 - 16-11-2009 - 2.2
Goods shipment -> lines -> Sales Order Line is displayed as 50000 - 16-11-2009 - 2.2 - 10 - 2

*** Create Sales Invoice for the order.

I have seen in Sales Invoice for the order -> Header -> Sales order is displayed as 50000 - 16-11-2009 - 2.2
Lines -> Invoice is displayed as I/1 - 2.2 - 16-11-2009
Lines -> Purchase Order Line is displayed as 50000 - 16-11-2009 - 2.2 - 10 - 2
(0048544)
Sandrahuguet   
2012-05-10 11:15   
This issue is not happening anymore as you can see in screenshots.