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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013698
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2010-06-18 12:392010-08-16 00:00
ReportersureshbabuView Statuspublic 
Assigned Toadrianromero 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revisione8550a2429e4
ProjectionnoneETAnoneTarget Version2.50MP20
OSLinux 64 bitDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013698: While creating sales invoice using Copy lines option system wrongly adds line item of which is created automatically for discoun

DescriptionWhile creating sales invoice using Copy lines option system wrongly adds line item of product : Discounts, because of this system wrongly calculates Discount amount for the newly generated invoice.
Steps To Reproduce1) Setup to define discount for a Business partner
a: Create a product with below details
Name: Discount 17.5% , product Category: Discounts, UOM:Unit, Product Type: Item, Purchase & Sales: Checked

b) Navigate to Discount tab (Master Data Management || Business Partner Setup || Discount || Discount ) and click new, then enter the below details
Name: Discount 17.5% for BP:Bell Phone apply only to invoice , Product: Discount 17.5%, Discount %: 17.50

c) Navigate to Business partner window (Master Data Management || Business Partner || Business Partner ) and select the customer : Bell Phone company and then navigate to "Discount" tab, then click New and enter the below details

Discount: Discount 17.5% for BP:Bell Phone apply only to invoice, Apply in order: unchecked (critical, please make sure you unchecked this check box) , Customer:Checked
 
2) Created and complete a sales invoice for BP: Bell Phone company, & Product: Hammer

3) on complete of invoice, a new line item for product "Discount 17.5%" add ups to the sales invoice

4) Create one more Sales invoice for BP: Bell Phone Company, but this time copy line item details using sales invoice created in step 2 using button "COPY LINES"

Error: System wrongly copies line items of product: "Discount 17.5%", because of this, on complete of sales invoice system wrongly calculates discount amount.



TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0029948)
hgbot (developer)
2010-08-13 09:48

Repository: erp/devel/pi
Changeset: e8550a2429e49514a490e6f0256f5966f010b933
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Aug 13 09:46:55 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e8550a2429e49514a490e6f0256f5966f010b933 [^]

Fixes issue 0013698: While creating sales invoice using Copy lines option system
wrongly calculates Discount amount for the newly
generated invoice.
It has been modified the SQL sentence that copies the invoice lines to not
include lines that are discounts that are applied when completing invoices

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice_data.xsql
---
(0029953)
hudsonbot (developer)
2010-08-13 14:20

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/e8550a2429e4 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/e10b0c3d07eb [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18143.obx [^]
(0029962)
sureshbabu (reporter)
2010-08-15 19:45

verified closed

- Issue History
Date Modified Username Field Change
2010-06-18 12:39 sureshbabu New Issue
2010-06-18 12:39 sureshbabu Assigned To => adrianromero
2010-06-18 15:38 sureshbabu Summary While creating sales invoice using Copy lines option system wrongly adds line item of product category: Discounts => While creating sales invoice using Copy lines option system wrongly adds line item of which is created automatically for discoun
2010-06-18 15:38 sureshbabu Description Updated View Revisions
2010-06-18 15:38 sureshbabu Steps to Reproduce Updated View Revisions
2010-08-12 13:58 adrianromero Status new => scheduled
2010-08-12 13:58 adrianromero fix_in_branch => pi
2010-08-13 09:48 hgbot Checkin
2010-08-13 09:48 hgbot Note Added: 0029948
2010-08-13 09:48 hgbot Status scheduled => resolved
2010-08-13 09:48 hgbot Resolution open => fixed
2010-08-13 09:48 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e8550a2429e49514a490e6f0256f5966f010b933 [^]
2010-08-13 14:20 hudsonbot Checkin
2010-08-13 14:20 hudsonbot Note Added: 0029953
2010-08-15 19:45 sureshbabu Note Added: 0029962
2010-08-15 19:45 sureshbabu Status resolved => closed
2010-08-16 00:00 anonymous sf_bug_id 0 => 3045724


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker