The current cost field of WF in integer and should be Dec

http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2492433&group_id=176962
This commit is contained in:
vpj-cd 2009-01-07 22:25:28 +00:00
parent fbc0fa1815
commit c71d366208
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
*****************************************************************************/
package org.adempiere.pipo.handler;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
@ -131,7 +132,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
if(getStringValue(atts, "Duration") != null)
m_Workflow.setDuration(Integer.valueOf(atts.getValue("Duration")));
if(getStringValue(atts, "Cost") != null)
m_Workflow.setCost(Integer.valueOf(atts.getValue("Cost")));
m_Workflow.setCost(new BigDecimal(atts.getValue("Cost")));
m_Workflow.setWorkingTime(Integer.valueOf(atts
.getValue("WorkingTime")));

View File

@ -16,6 +16,7 @@
*****************************************************************************/
package org.compiere.wf;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
@ -173,7 +174,7 @@ public class MWorkflow extends X_AD_Workflow
setIsDefault (false);
setPublishStatus (PUBLISHSTATUS_UnderRevision); // U
setVersion (0);
setCost (0);
setCost (Env.ZERO);
setWaitingTime (0);
setWorkingTime (0);
setIsBetaFunctionality(false);