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:
parent
d4ae40fc05
commit
0f44135db3
|
@ -323,13 +323,21 @@ public class GridField
|
|||
return false;
|
||||
|
||||
// Numeric Keys and Created/Updated as well as
|
||||
// DocumentNo/Value/ASI ars not mandatory (persistency layer manages them)
|
||||
if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID"))
|
||||
// DocumentNo/Value/ASI are not mandatory (persistence layer manages them)
|
||||
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.equals("Value")
|
||||
|| m_vo.ColumnName.equals("DocumentNo")
|
||||
|| m_vo.ColumnName.equals("M_AttributeSetInstance_ID")) // 0 is valid
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Mandatory if displayed
|
||||
return isDisplayed (checkContext);
|
||||
|
|
|
@ -49,7 +49,7 @@ public class BankTransfer extends SvrProcess
|
|||
private int p_To_C_BankAccount_ID= 0; // Bank Account To
|
||||
private Timestamp p_StatementDate = null; // Date Statement
|
||||
private Timestamp p_DateAcct = null; // Date Account
|
||||
|
||||
private int m_created = 0;
|
||||
/**
|
||||
* Prepare - e.g., get Parameters.
|
||||
*/
|
||||
|
@ -129,8 +129,7 @@ public class BankTransfer extends SvrProcess
|
|||
p_DateAcct = p_StatementDate;
|
||||
|
||||
generateBankTransfer();
|
||||
|
||||
return "@OK@ ";
|
||||
return "@Created@ = " + m_created;
|
||||
} // doIt
|
||||
|
||||
|
||||
|
@ -181,7 +180,7 @@ public class BankTransfer extends SvrProcess
|
|||
paymentBankTo.save();
|
||||
paymentBankTo.processIt(MPayment.DOCACTION_Complete);
|
||||
paymentBankTo.saveEx();
|
||||
|
||||
m_created++;
|
||||
return;
|
||||
|
||||
} // createCashLines
|
||||
|
|
Loading…
Reference in New Issue