Error you can assign 2 payment same invoice

http://sourceforge.net/tracker/?func=detail&aid=2880182&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2009-10-15 22:26:01 +00:00
parent d005a0cb06
commit b765189583
1 changed files with 1 additions and 7 deletions

View File

@ -2010,7 +2010,7 @@ public final class MPayment extends X_C_Payment
// Create invoice Allocation - See also MCash.completeIt // Create invoice Allocation - See also MCash.completeIt
if (getC_Invoice_ID() != 0) if (getC_Invoice_ID() != 0)
{ {
boolean InvoiceIsPaid = new Query(getCtx(), I_C_Invoice.Table_Name, I_C_Invoice.COLUMNNAME_C_Invoice_ID + "=? AND " + I_C_Invoice.COLUMNNAME_IsPaid + "=?", getTrx_Name()) boolean InvoiceIsPaid = new Query(getCtx(), I_C_Invoice.Table_Name, I_C_Invoice.COLUMNNAME_C_Invoice_ID + "=? AND " + I_C_Invoice.COLUMNNAME_IsPaid + "=?", get_TrxName())
.setClient_ID() .setClient_ID()
.setParameters(new Object[]{getC_Invoice_ID(), "Y"}) .setParameters(new Object[]{getC_Invoice_ID(), "Y"})
.match(); .match();
@ -2067,12 +2067,6 @@ public final class MPayment extends X_C_Payment
m_processMsg = "@C_AllocationHdr_ID@: " + alloc.getDocumentNo(); m_processMsg = "@C_AllocationHdr_ID@: " + alloc.getDocumentNo();
return alloc.save(get_TrxName()); return alloc.save(get_TrxName());
} // allocateIt } // allocateIt
private String getTrx_Name() {
// TODO Auto-generated method stub
return null;
}
/** /**
* Allocate single AP/AR Invoice * Allocate single AP/AR Invoice