Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0038085 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | major | always | 2018-03-08 15:54 | 2018-03-29 13:07 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | markmm82 | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR18Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 1c30cd9ab986 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | dmiguelez | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 581 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0038085: Prices in Invoice lines of discounts copied by Copy Lines process are updated to 0 when completing if a price adjustment exists | |||||||
Description | Prices in Invoice lines of discounts copied by Copy Lines process are updated to 0 when completing if a price adjustment exists and price includes taxes The problem is that the grosspricestd is 0 and M_PROMOTION_CALCULATE function transfers it to gross_unit_price column | |||||||
Steps To Reproduce | As group admin role: Create a new record in Discounts and Promotions window: Discount/Promotion Type: Price Adjustment Starting Date: today Included...: Only those defined (the discount will not applicable as we are not going to include any record in the tabs) Create a Sales Order Select a price list set as Price Includes Tax Add a product and a basic discount to it Book it Launch Create Invoices From Orders process and select the previously create order Check the invoice is correct Create a new Sales Invoice header Launch Copy Lines process and select previously created invoice Complete it and check prices in Discount line are updated to 0 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||||||||||||||||
|
![]() |
|
(0103247) markmm82 (viewer) 2018-03-14 17:22 |
Test Plan: As group admin role: Create a new record in Discounts and Promotions window: Discount/Promotion Type: Price Adjustment Starting Date: today Included...: Only those defined (the discount will not applicable as we are not going to include any record in the tabs) Create a Sales Order Select a price list set as Price Includes Tax Add a product and a basic discount to it Book it Launch Create Invoices From Orders process and select the previously create order Check the invoice is correct Create a new Sales Invoice header Launch Copy Lines process and select previously created invoice Complete it and check prices in Discount line still the same and all invoice values are correct |
(0103489) hgbot (developer) 2018-03-26 09:20 |
Repository: erp/devel/pi Changeset: 1c30cd9ab98620fcb18afda5ca737c989bf2d4ca Author: Mark <markmm82 <at> gmail.com> Date: Thu Mar 22 10:16:12 2018 -0400 URL: http://code.openbravo.com/erp/devel/pi/rev/1c30cd9ab98620fcb18afda5ca737c989bf2d4ca [^] Fixes issue 38085: Prices in Invoice lines of discounts copied by Copy Lines process are updated to 0 when completing if a price adjustment exists. The problem is happening when we are copying the invoice line with the basic discount, in the Copy Lines process and M_PROMOTION_CALCULATE function resets the price for this line too. As lines with basic discount have zero grosspricestd, gross_unit_price and line_gross_amount are set to zero too. We should avoid to reset prices in the M_PROMOTION_CALCULATE function for those lines related to basic discounts. They are the invoice lines related to an invoice discount, or those when product is related to a basic discount. --- M src-db/database/model/functions/M_PROMOTION_CALCULATE.xml M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice_data.xsql --- |
(0103490) dmiguelez (viewer) 2018-03-26 09:21 |
Code Review + Testing Ok |
(0103629) hudsonbot (viewer) 2018-03-29 13:07 |
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/ead4656f507e [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2018-03-08 15:54 | ngarcia | New Issue | |
2018-03-08 15:54 | ngarcia | Assigned To | => Triage Finance |
2018-03-08 15:54 | ngarcia | OBNetwork customer | => Yes |
2018-03-08 15:54 | ngarcia | Modules | => Core |
2018-03-08 15:54 | ngarcia | Support ticket | => 581 |
2018-03-08 15:54 | ngarcia | Resolution time | => 1522274400 |
2018-03-08 15:54 | ngarcia | Triggers an Emergency Pack | => No |
2018-03-08 15:55 | ngarcia | Issue Monitored: networkb | |
2018-03-08 15:55 | ngarcia | Relationship added | related to 0036969 |
2018-03-08 15:55 | ngarcia | Relationship added | depends on 0037314 |
2018-03-08 15:55 | ngarcia | Relationship added | depends on 0037960 |
2018-03-08 15:58 | ngarcia | Description Updated | View Revisions |
2018-03-08 16:01 | ngarcia | Relationship replaced | related to 0037314 |
2018-03-08 16:01 | ngarcia | Relationship replaced | related to 0037960 |
2018-03-08 17:47 | dmiguelez | Assigned To | Triage Finance => markmm82 |
2018-03-14 17:22 | markmm82 | Note Added: 0103247 | |
2018-03-14 17:30 | markmm82 | Status | new => scheduled |
2018-03-26 09:20 | hgbot | Checkin | |
2018-03-26 09:20 | hgbot | Note Added: 0103489 | |
2018-03-26 09:20 | hgbot | Status | scheduled => resolved |
2018-03-26 09:20 | hgbot | Resolution | open => fixed |
2018-03-26 09:20 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1c30cd9ab98620fcb18afda5ca737c989bf2d4ca [^] |
2018-03-26 09:21 | dmiguelez | Review Assigned To | => dmiguelez |
2018-03-26 09:21 | dmiguelez | Note Added: 0103490 | |
2018-03-26 09:21 | dmiguelez | Status | resolved => closed |
2018-03-26 09:21 | dmiguelez | Fixed in Version | => 3.0PR18Q2 |
2018-03-29 13:07 | hudsonbot | Checkin | |
2018-03-29 13:07 | hudsonbot | Note Added: 0103629 |
Copyright © 2000 - 2009 MantisBT Group |