IDEMPIERE-2362 Cash Button changes Document Accounting Date

This commit is contained in:
Carlos Ruiz 2014-12-17 18:21:16 -05:00
parent 72bb8e620a
commit c0c7f0a0cf
1 changed files with 2 additions and 4 deletions

View File

@ -372,8 +372,8 @@ public abstract class PaymentFormCash extends PaymentForm {
m_mPayment.setC_Order_ID(C_Order_ID); m_mPayment.setC_Order_ID(C_Order_ID);
m_needSave = true; m_needSave = true;
} }
m_mPayment.setDateTrx(m_DateAcct); m_mPayment.setDateTrx(newDateAcct);
m_mPayment.setDateAcct(m_DateAcct); m_mPayment.setDateAcct(newDateAcct);
m_mPayment.saveEx(); m_mPayment.saveEx();
// Save/Post // Save/Post
@ -398,8 +398,6 @@ public abstract class PaymentFormCash extends PaymentForm {
*/ */
log.config("Saving changes"); log.config("Saving changes");
// //
if (!newDateAcct.equals(m_DateAcct))
getGridTab().setValue("DateAcct", newDateAcct);
// Set Payment // Set Payment
if (m_mPayment.getC_Payment_ID() != m_C_Payment_ID) if (m_mPayment.getC_Payment_ID() != m_C_Payment_ID)
{ {