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

@ -1733,10 +1733,16 @@ public class MInvoice extends X_C_Invoice implements DocAction
m_processMsg = "@NoAccountOrgCurrency@"; m_processMsg = "@NoAccountOrgCurrency@";
return DocAction.STATUS_Invalid; 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) { if (doctypes == null || doctypes.length == 0) {
m_processMsg = "No document type for AR Receipt"; m_processMsg = "No document type ";
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
} }
MDocType doctype = null; MDocType doctype = null;