IDEMPIERE-814 POS Sales Order generating Cash transactions
This commit is contained in:
parent
c8da100ab2
commit
fe88029151
|
@ -1734,9 +1734,15 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
||||||
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