IDEMPIERE-2908 Method to retrieve doctype or doctype target
This commit is contained in:
parent
f48d939388
commit
aa98a2becc
|
@ -67,7 +67,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -859760245939837565L;
|
||||
private static final long serialVersionUID = 6262118410996877227L;
|
||||
|
||||
/**
|
||||
* Get Payments Of BPartner
|
||||
|
@ -2739,4 +2739,11 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
|||
providers.values().toArray(retValue);
|
||||
return retValue;
|
||||
}
|
||||
|
||||
/** Returns C_DocType_ID (or C_DocTypeTarget_ID if C_DocType_ID is not set) */
|
||||
public int getDocTypeID()
|
||||
{
|
||||
return getC_DocType_ID() > 0 ? getC_DocType_ID() : getC_DocTypeTarget_ID();
|
||||
}
|
||||
|
||||
} // MInvoice
|
||||
|
|
|
@ -70,7 +70,7 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6750443365394535762L;
|
||||
private static final long serialVersionUID = -4032643956656204341L;
|
||||
|
||||
/**
|
||||
* Create new Order by copying
|
||||
|
@ -2963,4 +2963,11 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
providers.values().toArray(retValue);
|
||||
return retValue;
|
||||
}
|
||||
|
||||
/** Returns C_DocType_ID (or C_DocTypeTarget_ID if C_DocType_ID is not set) */
|
||||
public int getDocTypeID()
|
||||
{
|
||||
return getC_DocType_ID() > 0 ? getC_DocType_ID() : getC_DocTypeTarget_ID();
|
||||
}
|
||||
|
||||
} // MOrder
|
||||
|
|
Loading…
Reference in New Issue