src-db/database/model/triggers/C_CASHBOOK_TRG.xml
changeset 1605 8a0fe0193bef
parent 1067 4a05c922c488
child 1929 ad0353d93b0f
--- a/src-db/database/model/triggers/C_CASHBOOK_TRG.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/triggers/C_CASHBOOK_TRG.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -47,7 +47,7 @@
       INSERT
       INTO C_Cashbook_Acct
         (
-          C_Cashbook_ID, C_AcctSchema_ID, AD_Client_ID,
+          C_Cashbook_Acct_ID, C_Cashbook_ID, C_AcctSchema_ID, AD_Client_ID,
           AD_Org_ID, IsActive, Created,
           CreatedBy, Updated, UpdatedBy,
           CB_Asset_Acct, CB_Differences_Acct, CB_Expense_Acct,
@@ -55,7 +55,7 @@
         )
         VALUES
         (
-          :new.C_Cashbook_ID, Cur_Defaults.C_AcctSchema_ID, :new.AD_Client_ID,
+          get_uuid(), :new.C_Cashbook_ID, Cur_Defaults.C_AcctSchema_ID, :new.AD_Client_ID,
           :new.AD_ORG_ID,  'Y', now(),
           :new.CreatedBy, now(), :new.UpdatedBy,
           Cur_Defaults.CB_Asset_Acct, Cur_Defaults.CB_Differences_Acct, Cur_Defaults.CB_Expense_Acct,