IDEMPIERE-4429 BOM Drop to Invoice is throwing error (#228)
IDEMPIERE-1314 getDocumentInfo methods should return translated String
This commit is contained in:
parent
75dcde96b3
commit
02f4d526dc
|
@ -1143,7 +1143,12 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
|||
*/
|
||||
public String getDocumentInfo()
|
||||
{
|
||||
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
|
||||
MDocType dt;
|
||||
if (getC_DocType_ID() == 0) {
|
||||
dt = MDocType.get(getCtx(), getC_DocTypeTarget_ID());
|
||||
} else {
|
||||
dt = MDocType.get(getCtx(), getC_DocType_ID());
|
||||
}
|
||||
StringBuilder msgreturn = new StringBuilder().append(dt.getNameTrl()).append(" ").append(getDocumentNo());
|
||||
return msgreturn.toString();
|
||||
} // getDocumentInfo
|
||||
|
|
Loading…
Reference in New Issue