IDEMPIERE-814 POS Sales Order generating Cash transactions
This commit is contained in:
parent
c8da100ab2
commit
fe88029151
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue