use of org.compiere.model.I_C_UOM in project adempiere by adempiere.
the class DefaultRoutingServiceImpl method convertDurationToResourceUOM.
protected BigDecimal convertDurationToResourceUOM(BigDecimal duration, int S_Resource_ID, I_AD_WF_Node node) {
MResource resource = MResource.get(Env.getCtx(), S_Resource_ID);
I_AD_Workflow wf = MWorkflow.get(Env.getCtx(), node.getAD_Workflow_ID());
I_C_UOM resourceUOM = MUOM.get(Env.getCtx(), resource.getC_UOM_ID());
return convertDuration(duration, wf.getDurationUnit(), resourceUOM);
}
Aggregations