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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039333
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 02. Master data managementminoralways2018-09-20 20:252018-09-25 14:16
Reportermarkmm82View Statuspublic 
Assigned Tomarkmm82 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision18826c3cd89b
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039333: When an order line related to discount is created it uses the system date as ordered date instead of the header's ordered date

DescriptionWhen an order line related to discount is created it uses the system date as the ordered date instead of the header's ordered date.
Steps To ReproduceAs Group Admin:
  Create a new sales order with an order date before than today, for example
  18/09/2018 if today is 20/09/2018.
  Add a new line to it with any product.
  Be sure it is a basic discount applying to the order.
  Book the order and set it is as immediately invoiced.
  Notice that a new line is created related to the discount.

  Create a new sales invoice for the same bp than the created order.
  Execute the Create Lines From Order process.
  Notice that the two lines related to the created order are there.
  The line related to the product is showing as the Order date the same than it order (for example 18/09/2018)
  The line related to the discount is showing Today (for example 20/09/2018) as the Order date. It is wrong, it should be the same than its order (for example 18/09/2018).

   Verify that the same problem happens if the order date is aftr the current date.
Proposed SolutionThe ordered date to the lines related to discounts should be the same than the order.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0106910)
markmm82 (developer)
2018-09-20 20:34

Test Plan:
As Group Admin:
  Create a new sales order with an order date before than today, for example
  18/09/2018 if today is 20/09/2018.
  Add a new line to it with any product.
  Be sure it is a basic discount applying to the order.
  Book the order and set it is as immediately invoiced.
  Notice that a new line is created related to the discount.

  Create a new sales invoice for the same bp than the created order.
  Execute the Create Lines From Order process.
  Notice that the two lines related to the created order are there.
  The line related to the product is showing as the Order date the same than it order (for example 18/09/2018)
  The line related to the discount is showing as the Order date the same than it order (for example 18/09/2018)
(0106968)
hgbot (developer)
2018-09-24 15:17

Repository: erp/devel/pi
Changeset: 18826c3cd89bfe4507950816219163e4d48613f2
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Sep 20 14:31:38 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/18826c3cd89bfe4507950816219163e4d48613f2 [^]

Fixed issue 39333: Use the order date instead of system date when order lines
related to discounts are created.

When an order line related to a discount was created it was using the system date
as it ordered date instead of the header's ordered date. Now it is set the ordered
date of the header as it ordered date.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0106969)
Sandrahuguet (developer)
2018-09-24 15:18

Code review + testing OK
(0107017)
hudsonbot (developer)
2018-09-25 14:16

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c4e1d4ba022d [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2018-09-20 20:25 markmm82 New Issue
2018-09-20 20:25 markmm82 Assigned To => markmm82
2018-09-20 20:25 markmm82 Modules => Core
2018-09-20 20:25 markmm82 Triggers an Emergency Pack => No
2018-09-20 20:25 markmm82 Status new => scheduled
2018-09-20 20:34 markmm82 Note Added: 0106910
2018-09-24 15:17 hgbot Checkin
2018-09-24 15:17 hgbot Note Added: 0106968
2018-09-24 15:17 hgbot Status scheduled => resolved
2018-09-24 15:17 hgbot Resolution open => fixed
2018-09-24 15:17 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/18826c3cd89bfe4507950816219163e4d48613f2 [^]
2018-09-24 15:18 Sandrahuguet Review Assigned To => Sandrahuguet
2018-09-24 15:18 Sandrahuguet Note Added: 0106969
2018-09-24 15:18 Sandrahuguet Status resolved => closed
2018-09-25 14:16 hudsonbot Checkin
2018-09-25 14:16 hudsonbot Note Added: 0107017


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker