Validate Invoice commit when complete it in GenerateInvoice - fixes #36
http://bitbucket.org/idempiere/idempiere/issue/36
This commit is contained in:
parent
0cc73a03fd
commit
5cfcc86631
|
|
@ -491,8 +491,13 @@ public class InvoiceGenerate extends SvrProcess
|
||||||
log.warning("completeInvoice - failed: " + m_invoice);
|
log.warning("completeInvoice - failed: " + m_invoice);
|
||||||
addLog("completeInvoice - failed: " + m_invoice); // Elaine 2008/11/25
|
addLog("completeInvoice - failed: " + m_invoice); // Elaine 2008/11/25
|
||||||
}
|
}
|
||||||
m_invoice.save();
|
///fercho m_invoice.save();
|
||||||
//
|
if (!m_invoice.save())
|
||||||
|
{
|
||||||
|
log.warning("completeInvoice - failed: " + m_invoice);
|
||||||
|
addLog("completeInvoice - failed: " + m_invoice);
|
||||||
|
}
|
||||||
|
///fercho
|
||||||
addLog(m_invoice.getC_Invoice_ID(), m_invoice.getDateInvoiced(), null, m_invoice.getDocumentNo());
|
addLog(m_invoice.getC_Invoice_ID(), m_invoice.getDateInvoiced(), null, m_invoice.getDocumentNo());
|
||||||
m_created++;
|
m_created++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue