Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032462Openbravo ERP03. Procurement managementpublic2016-03-11 12:512016-03-11 12:51
psanjuan 
Triage Omni OMS 
highminoralways
newopen 
20Ubuntu 8.04.1
 
 
Core
No
0032462: Copy Record feature does not properly work in case a Basic Discount has been added to the order to be cloned.
Copy Record feature does not properly work in case a Basic Discount has been added to the order to be cloned.
In F&B España.

Create a Purchase Price List for F&B España
Add a version and a product to it, for instance "Agua sin Gas 1L"
Enter a Unit/List Price = 100.00€

Create a Purchaser Order for F&B España, BP= Bebidas Alegres.
Select the purchase price list just created.
Go to Lines and select the product "Agua sin Gas 1L", add 1 unit. Save it.

Check that Total Gross Amount = 120, Total Net Amount = 100. This is correct.

Go to Tax tab and check below values:
Taxable Amount = 100
Tax Amount = 21
This is correct.

Go to Basic discount tab and add a discount of 10% for instance.

Book the order. (ie. order 1000248)

Check now that the values have changed due to basic discount of 10%.

Total Gross Amount = 108.90
Total Net Amount = 90.00
Taxable Amount = 90.00
Tax Amount = 18.90

This is correct.

Go back to the header and click on the Copy record button of the toolbar. Clone the order.

Check that the order has been cloned into a new one (ie. order 10002409.
In the new order check below data is shown:

Total Gross Amount = 108.90
Total Net Amount = 90.00
Taxable Amount = 90.00
Tax Amount = 18.90

Go to lines and check that discount line is also properly created.

Book the order and check that suddenly discount line is removed and figures do not match anymore as the discount amount 10.00 has been added but not in the proper way.

Total Gross Amount = 118.90 (108.90 + 10.00) - this is not correct as it should be 121.00
Total Net Amount = 100.00 (90.00 + 10.00) - this is correct

Taxable Amount = 100.00 - this is correct
Tax Amount = 21.00 - this is correct

Go to Basic Discount tab and check that it is empty, this info was never copied by Copy Record feature, therefore discount is removed (and not properly removed) after booking the order, regardless discount line was shown in Lines tab prior booking the order.

Copy Record feature should also copy Basic Discount info, so new order created is properly booked as a clone of original one.
No tags attached.
Issue History
2016-03-11 12:51psanjuanNew Issue
2016-03-11 12:51psanjuanAssigned To => Triage Finance
2016-03-11 12:51psanjuanModules => Core
2016-03-11 12:51psanjuanTriggers an Emergency Pack => No

There are no notes attached to this issue.