Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0021053 | Openbravo ERP | 07. Sales management | public | 2012-07-12 17:08 | 2012-07-13 11:57 |
Reporter | mirurita | ||||
Assigned To | mirurita | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | 3.0MP13 | Fixed in Version | 3.0MP13 | ||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0021053: C_INVOICELINE_TRG2: price including taxes logic not working in the trigger | ||||
Description | Price including taxes functionality in C_INVOICELINE_TRG2 is not working properly when DELETE action is triggered. v_istaxincluded variable is only initialized on INSERTING action IF INSERTING OR v_Insert THEN SELECT C_BPartner_ID, dateInvoiced, priceprecision, i.M_PriceList_ID,p.istaxincluded INTO v_BPartner_ID, v_DateInvoiced, v_Precision, v_PriceList_ID, v_istaxincluded ... but then the variable is used inside DELETE action CASE v_istaxincluded WHEN 'Y' THEN grandtotal - v_oldgrossamt this condition will never be satisfied because v_istaxincluded is NULL at this point. | ||||
Steps To Reproduce | 1. Enter as F&B Internation Group Admin role 2. Go to Price List window 3. Edit "Tarifa de Ventas" record by marking it as Including Taxes 4. Go to Sales Invoice window 5. Create a new document for "Alimentos y Supermercados" business partner. Add a discount 6. Create a new line for "Agua sin gas 1L" 7. Book the order 8. Total gross amount is: 1.38 9. Reactivate the sales invoice. realize that the total gross amount is = 1.38 | ||||
Proposed Solution | 1. Assign value to v_istaxincluded also on DELETE action 2. Assign proper value to v_oldgrossamt | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-12 17:08 | mirurita | New Issue | |||
2012-07-12 17:08 | mirurita | Assigned To | => mirurita | ||
2012-07-12 17:08 | mirurita | Modules | => Core | ||
2012-07-12 17:08 | mirurita | OBNetwork customer | => No | ||
2012-07-12 17:11 | hgbot | Checkin | |||
2012-07-12 17:11 | hgbot | Note Added: 0050535 | |||
2012-07-12 17:11 | hgbot | Status | new => resolved | ||
2012-07-12 17:11 | hgbot | Resolution | open => fixed | ||
2012-07-12 17:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/745fd4a939d1971b93a248ada1427b7fb07c5d30 [^] | ||
2012-07-13 11:42 | psarobe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3630#r3630 | ||
2012-07-13 11:57 | psarobe | Note Added: 0050551 | |||
2012-07-13 11:57 | psarobe | Status | resolved => closed | ||
2012-07-13 11:57 | psarobe | Fixed in Version | => 3.0MP13 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|