Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0017207 | Openbravo ERP | 08. Project and service management | public | 2011-05-17 16:53 | 2011-06-01 20:24 | |||||||
Reporter | xabiermerino | |||||||||||
Assigned To | adrianromero | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 3.0RC6.1 | |||||||||||
Target Version | 3.0MP0 | Fixed in Version | 3.0MP0 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0017207: It is not possible save a Project Line with Planned Price = 0 | |||||||||||
Description | It is not possible save a Project Line with Planned Price = 0. This error appears: ERROR: division by zero In several cases products with price 0 are used. | |||||||||||
Steps To Reproduce | - As Openbravo Admin go to Project & Service Management || Transactions || Service Project || Service Project >> Project Line - Create a line with Planned Price = 0 - Save | |||||||||||
Proposed Solution | In Trigger C_projectline_trg3: v_oldLine_PlannedMarginAmt:=COALESCE((COALESCE(old.PLANNEDPRICE,0)-COALESCE(old.PLANNEDPOPRICE,0))*100/COALESCE(old.PLANNEDPRICE,1),0); --> "IF (COALESCE(old.PLANNEDPRICE,0) <> 0) THEN v_oldLine_PlannedMarginAmt:=COALESCE((COALESCE(old.PLANNEDPRICE,0)-COALESCE(old.PLANNEDPOPRICE,0))*100/old.PLANNEDPRICE,0); END IF;" v_newLine_PlannedMarginAmt:=COALESCE((COALESCE(new.PLANNEDPRICE,0)-COALESCE(new.PLANNEDPOPRICE,0))*100/COALESCE(new.PLANNEDPRICE,1),0); --> IF (COALESCE(new.PLANNEDPRICE,0) <> 0) THEN v_newLine_PlannedMarginAmt:=COALESCE((COALESCE(new.PLANNEDPRICE,0)-COALESCE(new.PLANNEDPOPRICE,0))*100/new.PLANNEDPRICE,0); END IF; | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2011-05-17 16:53 | xabiermerino | New Issue | ||||||||||
2011-05-17 16:53 | xabiermerino | Assigned To | => adrianromero | |||||||||
2011-05-17 16:53 | xabiermerino | Modules | => Core | |||||||||
2011-05-17 16:53 | xabiermerino | OBNetwork customer | => Yes | |||||||||
2011-05-17 16:53 | xabiermerino | Status | new => scheduled | |||||||||
2011-05-17 16:53 | xabiermerino | fix_in_branch | => pi | |||||||||
2011-05-17 17:46 | xabiermerino | Issue Monitored: networkb | ||||||||||
2011-05-27 14:20 | hgbot | Checkin | ||||||||||
2011-05-27 14:20 | hgbot | Note Added: 0037667 | ||||||||||
2011-05-27 14:20 | hgbot | Status | scheduled => resolved | |||||||||
2011-05-27 14:20 | hgbot | Resolution | open => fixed | |||||||||
2011-05-27 14:20 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/145fea0f45020f8605f410675ba77372d1ff3862 [^] | |||||||||
2011-05-27 14:25 | adrianromero | Note Added: 0037668 | ||||||||||
2011-05-31 09:44 | hudsonbot | Checkin | ||||||||||
2011-05-31 09:44 | hudsonbot | Note Added: 0037785 | ||||||||||
2011-06-01 20:24 | jonalegriaesarte | Note Added: 0037896 | ||||||||||
2011-06-01 20:24 | jonalegriaesarte | Status | resolved => closed | |||||||||
2011-06-01 20:24 | jonalegriaesarte | Fixed in Version | => 3.0MP0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|