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:
parent
fbc0fa1815
commit
c71d366208
|
@ -16,6 +16,7 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.adempiere.pipo.handler;
|
package org.adempiere.pipo.handler;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
@ -131,7 +132,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
if(getStringValue(atts, "Duration") != null)
|
if(getStringValue(atts, "Duration") != null)
|
||||||
m_Workflow.setDuration(Integer.valueOf(atts.getValue("Duration")));
|
m_Workflow.setDuration(Integer.valueOf(atts.getValue("Duration")));
|
||||||
if(getStringValue(atts, "Cost") != null)
|
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
|
m_Workflow.setWorkingTime(Integer.valueOf(atts
|
||||||
.getValue("WorkingTime")));
|
.getValue("WorkingTime")));
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.wf;
|
package org.compiere.wf;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
@ -173,7 +174,7 @@ public class MWorkflow extends X_AD_Workflow
|
||||||
setIsDefault (false);
|
setIsDefault (false);
|
||||||
setPublishStatus (PUBLISHSTATUS_UnderRevision); // U
|
setPublishStatus (PUBLISHSTATUS_UnderRevision); // U
|
||||||
setVersion (0);
|
setVersion (0);
|
||||||
setCost (0);
|
setCost (Env.ZERO);
|
||||||
setWaitingTime (0);
|
setWaitingTime (0);
|
||||||
setWorkingTime (0);
|
setWorkingTime (0);
|
||||||
setIsBetaFunctionality(false);
|
setIsBetaFunctionality(false);
|
||||||
|
|
Loading…
Reference in New Issue