IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting / Peer review
This commit is contained in:
parent
ccf712f7d6
commit
ba35f250ba
|
@ -134,4 +134,58 @@ UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2011-07-22 17:15:20','YYYY-M
|
||||||
-- 26/07/2011 3:12:34 PM
|
-- 26/07/2011 3:12:34 PM
|
||||||
-- --
|
-- --
|
||||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_DATE('2011-07-26 15:12:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4918
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_DATE('2011-07-26 15:12:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4918
|
||||||
;
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET ColumnSpan=2, SeqNo=60, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=61967
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3997
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8686
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8687
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10585
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10586
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10587
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3999
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:41:08 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Column SET DefaultValue='@DateAcct@',Updated=TO_DATE('2012-12-12 11:41:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5216
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:41:34 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2012-12-12 11:41:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4121
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201212121120_IDEMPIERE-480_780.11_StatementDateAcct.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
||||||
|
|
|
@ -136,4 +136,56 @@ UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2011-07-22 17:15:20','Y
|
||||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_TIMESTAMP('2011-07-26 15:12:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4918
|
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_TIMESTAMP('2011-07-26 15:12:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4918
|
||||||
;
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET ColumnSpan=2, SeqNo=60, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=61967
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3997
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8686
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8687
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:16 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2012-12-12 11:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10585
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10586
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10587
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:39:17 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2012-12-12 11:39:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3999
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:41:08 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Column SET DefaultValue='@DateAcct@',Updated=TO_TIMESTAMP('2012-12-12 11:41:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5216
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 12, 2012 11:41:34 AM COT
|
||||||
|
-- IDEMPIERE-480 Huge bug with FactAcctReset and Automatic Accounting
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2012-12-12 11:41:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4121
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201212121120_IDEMPIERE-480_780.11_StatementDateAcct.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,19 @@ public interface I_C_BankStatement
|
||||||
/** Get C_BankStatement_UU */
|
/** Get C_BankStatement_UU */
|
||||||
public String getC_BankStatement_UU();
|
public String getC_BankStatement_UU();
|
||||||
|
|
||||||
|
/** Column name CopyFrom */
|
||||||
|
public static final String COLUMNNAME_CopyFrom = "CopyFrom";
|
||||||
|
|
||||||
|
/** Set Copy From.
|
||||||
|
* Copy From Record
|
||||||
|
*/
|
||||||
|
public void setCopyFrom (String CopyFrom);
|
||||||
|
|
||||||
|
/** Get Copy From.
|
||||||
|
* Copy From Record
|
||||||
|
*/
|
||||||
|
public String getCopyFrom();
|
||||||
|
|
||||||
/** Column name Created */
|
/** Column name Created */
|
||||||
public static final String COLUMNNAME_Created = "Created";
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
@ -141,6 +154,19 @@ public interface I_C_BankStatement
|
||||||
*/
|
*/
|
||||||
public String getCreateFrom();
|
public String getCreateFrom();
|
||||||
|
|
||||||
|
/** Column name DateAcct */
|
||||||
|
public static final String COLUMNNAME_DateAcct = "DateAcct";
|
||||||
|
|
||||||
|
/** Set Account Date.
|
||||||
|
* Accounting Date
|
||||||
|
*/
|
||||||
|
public void setDateAcct (Timestamp DateAcct);
|
||||||
|
|
||||||
|
/** Get Account Date.
|
||||||
|
* Accounting Date
|
||||||
|
*/
|
||||||
|
public Timestamp getDateAcct();
|
||||||
|
|
||||||
/** Column name Description */
|
/** Column name Description */
|
||||||
public static final String COLUMNNAME_Description = "Description";
|
public static final String COLUMNNAME_Description = "Description";
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,9 @@ import org.compiere.util.Msg;
|
||||||
if (amt.compareTo(getChargeAmt()) != 0)
|
if (amt.compareTo(getChargeAmt()) != 0)
|
||||||
setChargeAmt (amt);
|
setChargeAmt (amt);
|
||||||
//
|
//
|
||||||
|
// IDEMPIERE-480
|
||||||
|
setDateAcct(getParent().getDateAcct());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} // beforeSave
|
} // beforeSave
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20121031L;
|
private static final long serialVersionUID = 20121212L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName)
|
public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName)
|
||||||
|
@ -43,6 +43,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
||||||
{
|
{
|
||||||
setC_BankAccount_ID (0);
|
setC_BankAccount_ID (0);
|
||||||
setC_BankStatement_ID (0);
|
setC_BankStatement_ID (0);
|
||||||
|
setDateAcct (new Timestamp( System.currentTimeMillis() ));
|
||||||
setDocAction (null);
|
setDocAction (null);
|
||||||
// CO
|
// CO
|
||||||
setDocStatus (null);
|
setDocStatus (null);
|
||||||
|
@ -175,6 +176,23 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
||||||
return (String)get_Value(COLUMNNAME_C_BankStatement_UU);
|
return (String)get_Value(COLUMNNAME_C_BankStatement_UU);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set Copy From.
|
||||||
|
@param CopyFrom
|
||||||
|
Copy From Record
|
||||||
|
*/
|
||||||
|
public void setCopyFrom (String CopyFrom)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_CopyFrom, CopyFrom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Copy From.
|
||||||
|
@return Copy From Record
|
||||||
|
*/
|
||||||
|
public String getCopyFrom ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_CopyFrom);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Create lines from.
|
/** Set Create lines from.
|
||||||
@param CreateFrom
|
@param CreateFrom
|
||||||
Process which will generate a new document lines based on an existing document
|
Process which will generate a new document lines based on an existing document
|
||||||
|
@ -192,6 +210,23 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
||||||
return (String)get_Value(COLUMNNAME_CreateFrom);
|
return (String)get_Value(COLUMNNAME_CreateFrom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set Account Date.
|
||||||
|
@param DateAcct
|
||||||
|
Accounting Date
|
||||||
|
*/
|
||||||
|
public void setDateAcct (Timestamp DateAcct)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_DateAcct, DateAcct);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Account Date.
|
||||||
|
@return Accounting Date
|
||||||
|
*/
|
||||||
|
public Timestamp getDateAcct ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_DateAcct);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Description.
|
/** Set Description.
|
||||||
@param Description
|
@param Description
|
||||||
Optional short description of the record
|
Optional short description of the record
|
||||||
|
|
Loading…
Reference in New Issue