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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007139
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 07. Sales managementmajoralways2009-01-23 12:412009-03-09 23:14
ReporternetworkbView Statuspublic 
Assigned Torafaroda 
PriorityimmediateResolutionfixedFixed in Version2.35MP13
StatusclosedFix in branch2.3xFixed in SCM revision12299
ProjectionnoneETAnoneTarget Version2.40
OSAnyDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007139: Unit price set to zero when you change quantity in lines created with Copy Lines button

DescriptionWhen you create a sales order using Copy lines button and then change the ordered quantity of a line, its unit price is set to zero.
Steps To Reproduce1. Sales Management || Transactions || Sales Order : choose any partner and press "Copy Lines" button
2. Select one or more products and press OK
3. Go to lines and change quantity ordered. Press save or save and new
4. Notice that the Unit price at this moment is zero.

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00070982.40 closedrafaroda Unit price set to zero when you change quantity in lines created with Copy Lines button 

-  Notes
(0012662)
svnbot (reporter)
2009-01-27 09:23

Repository: openbravo
Revision: 12299
Author: rafaroda
Date: 2009-01-27 09:23:12 +0100 (Tue, 27 Jan 2009)

Fixes bug 0007139 Now Copy Lines button does calculate and insert Price Std inside order lines. This way unit price is not set to zero when changing the quantity.

---
U branches/r2.3x/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.java
U branches/r2.3x/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=12299&sc=1 [^]
(0012664)
rafaroda (developer)
2009-01-27 09:24

In order to test the fix, follow these steps:

1) Create a price adjustment in 'Master Data Management || Pricing || Price Adjustments || Adjustments' with values:
* Starting date = 01-01-2000
* Discount % = 50
* Min Quantity = 499
* Business Partner = All Selected
* Product = All Selected
2) Move to Business Partner tab and select one business partner
3) Move to Product tab and select one product
4) Create a new Sales or Purchase Order for the business partner of the price adjustment
5) Create one line for the product of the price adjustment
6) Save this line
7) Change quantity to 500. Unit Price should have half amount
8) Go to the header of the order and complete it
9) Create a new order for the same business partner
10) Click on Copy Lines and select the product of the previous order
11) Change the last price and the quantity (to less than 500) then click OK
12) Go to the line created and change the quantity to 500
13) Unit Price should have half amount (same behavior that in step 7 but different amount if Unit Prices were not the same)
14) Save this line.

- Issue History
Date Modified Username Field Change
2009-01-26 16:51 rafaroda Type defect => backport
2009-01-26 16:51 rafaroda fix_in_branch => 2.3x
2009-01-27 09:23 svnbot Checkin
2009-01-27 09:23 svnbot Note Added: 0012662
2009-01-27 09:23 svnbot Status scheduled => resolved
2009-01-27 09:23 svnbot Resolution open => fixed
2009-01-27 09:23 svnbot svn_revision => 12299
2009-01-27 09:24 rafaroda Note Added: 0012664
2009-03-06 16:09 psarobe Fixed in Version => 2.35MP12
2009-03-09 23:14 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker