IDEMPIERE-814 POS Sales Order generating Cash transactions

This commit is contained in:
Richard Morales 2013-05-29 11:37:13 -05:00
parent c8da100ab2
commit fe88029151
1 changed files with 9 additions and 3 deletions

View File

@ -1734,9 +1734,15 @@ public class MInvoice extends X_C_Invoice implements DocAction
return DocAction.STATUS_Invalid;
}
MDocType[] doctypes = MDocType.getOfDocBaseType(getCtx(), MDocType.DOCBASETYPE_ARReceipt);
String docBaseType = "";
if (isSOTrx())
docBaseType=MDocType.DOCBASETYPE_ARReceipt;
else
docBaseType=MDocType.DOCBASETYPE_APPayment;
MDocType[] doctypes = MDocType.getOfDocBaseType(getCtx(), docBaseType);
if (doctypes == null || doctypes.length == 0) {
m_processMsg = "No document type for AR Receipt";
m_processMsg = "No document type ";
return DocAction.STATUS_Invalid;
}
MDocType doctype = null;