Patch [2902292] - Patch of the bank transfer improvements

https://sourceforge.net/tracker/?func=detail&aid=2902292&group_id=176962&atid=879334
BF [2897730] - Bank Transfer improvements and fixes
https://sourceforge.net/tracker/?func=detail&aid=2897730&group_id=176962&atid=879332
This commit is contained in:
trifonnt 2010-01-14 14:17:15 +00:00
parent d4ae40fc05
commit 0f44135db3
2 changed files with 13 additions and 6 deletions

View File

@ -323,13 +323,21 @@ public class GridField
return false; return false;
// Numeric Keys and Created/Updated as well as // Numeric Keys and Created/Updated as well as
// DocumentNo/Value/ASI ars not mandatory (persistency layer manages them) // DocumentNo/Value/ASI are not mandatory (persistence layer manages them)
if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID")) if (m_vo.ColumnName.equals("DocumentNo") && m_vo.AD_Column_ID == 53251){
// TODO - Find why Report Parameter marked as Mandatory is not displayed as Mandatory?
// Find better solution?
// https://sourceforge.net/tracker/?func=detail&aid=2902292&group_id=176962&atid=879334
// https://sourceforge.net/tracker/?func=detail&aid=2897730&group_id=176962&atid=879332
return true;
} else if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID"))
|| m_vo.ColumnName.startsWith("Created") || m_vo.ColumnName.startsWith("Updated") || m_vo.ColumnName.startsWith("Created") || m_vo.ColumnName.startsWith("Updated")
|| m_vo.ColumnName.equals("Value") || m_vo.ColumnName.equals("Value")
|| m_vo.ColumnName.equals("DocumentNo") || m_vo.ColumnName.equals("DocumentNo")
|| m_vo.ColumnName.equals("M_AttributeSetInstance_ID")) // 0 is valid || m_vo.ColumnName.equals("M_AttributeSetInstance_ID")) // 0 is valid
{
return false; return false;
}
// Mandatory if displayed // Mandatory if displayed
return isDisplayed (checkContext); return isDisplayed (checkContext);

View File

@ -49,7 +49,7 @@ public class BankTransfer extends SvrProcess
private int p_To_C_BankAccount_ID= 0; // Bank Account To private int p_To_C_BankAccount_ID= 0; // Bank Account To
private Timestamp p_StatementDate = null; // Date Statement private Timestamp p_StatementDate = null; // Date Statement
private Timestamp p_DateAcct = null; // Date Account private Timestamp p_DateAcct = null; // Date Account
private int m_created = 0;
/** /**
* Prepare - e.g., get Parameters. * Prepare - e.g., get Parameters.
*/ */
@ -129,8 +129,7 @@ public class BankTransfer extends SvrProcess
p_DateAcct = p_StatementDate; p_DateAcct = p_StatementDate;
generateBankTransfer(); generateBankTransfer();
return "@Created@ = " + m_created;
return "@OK@ ";
} // doIt } // doIt
@ -181,7 +180,7 @@ public class BankTransfer extends SvrProcess
paymentBankTo.save(); paymentBankTo.save();
paymentBankTo.processIt(MPayment.DOCACTION_Complete); paymentBankTo.processIt(MPayment.DOCACTION_Complete);
paymentBankTo.saveEx(); paymentBankTo.saveEx();
m_created++;
return; return;
} // createCashLines } // createCashLines