diff --git a/base/src/org/compiere/model/GridField.java b/base/src/org/compiere/model/GridField.java index ac6474393a..270df78ee4 100644 --- a/base/src/org/compiere/model/GridField.java +++ b/base/src/org/compiere/model/GridField.java @@ -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); diff --git a/base/src/org/eevolution/process/BankTransfer.java b/base/src/org/eevolution/process/BankTransfer.java index 4b8105ddd8..d7374c28be 100644 --- a/base/src/org/eevolution/process/BankTransfer.java +++ b/base/src/org/eevolution/process/BankTransfer.java @@ -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