FR2798200 Add isReturnMaterial to MOrder

https://sourceforge.net/tracker/?func=detail&aid=2798200&group_id=176962&atid=879335
This commit is contained in:
phib 2009-05-29 01:56:32 +00:00
parent c03b0df98e
commit a890145e50
1 changed files with 12 additions and 0 deletions

View File

@ -2383,4 +2383,16 @@ public class MOrder extends X_C_Order implements DocAction
|| DOCSTATUS_Reversed.equals(ds); || DOCSTATUS_Reversed.equals(ds);
} // isComplete } // isComplete
/**
* Is it a Return Material?
* @return true if RM
*/
public boolean isReturnMaterial()
{
MDocType dt = MDocType.get(getCtx(),
getC_DocType_ID()==0 ? getC_DocTypeTarget_ID() : getC_DocType_ID());
return MDocType.DOCSUBTYPESO_ReturnMaterial.equals(dt.getDocSubTypeSO());
} // isReturnMaterial
} // MOrder } // MOrder