Invoice for POS ORder
This commit is contained in:
parent
865a5603fe
commit
08458e7f15
|
|
@ -96,7 +96,7 @@ public class MID_RMAValidator {
|
||||||
invoice.processIt(DocAction.ACTION_Complete);
|
invoice.processIt(DocAction.ACTION_Complete);
|
||||||
invoice.saveEx();
|
invoice.saveEx();
|
||||||
MInvoice invoiceUsed = new MInvoice(RMA.getCtx (), order.getC_Invoice_ID(), RMA.get_TrxName());
|
MInvoice invoiceUsed = new MInvoice(RMA.getCtx (), order.getC_Invoice_ID(), RMA.get_TrxName());
|
||||||
if(invoiceUsed.getC_Payment_ID()>0) {
|
if(invoiceUsed.getC_Payment_ID()>0 && (invoice.getC_Order().getC_DocType_ID()==1000135 || invoice.getC_Order().getC_DocType_ID()==135)) {
|
||||||
MPayment payment = new MPayment(RMA.getCtx(), 0, RMA.get_TrxName());
|
MPayment payment = new MPayment(RMA.getCtx(), 0, RMA.get_TrxName());
|
||||||
|
|
||||||
payment.setC_Invoice_ID(invoice.get_ID());
|
payment.setC_Invoice_ID(invoice.get_ID());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue