From 2cf53b438e758ca9e32ef5868f16ec69a1d2f5ee Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Tue, 14 Jul 2009 16:39:25 +0000 Subject: [PATCH] Add statusId field to the FinAccountTrans entity and verify that existing functionality is not broken. Patch from Jira issue #OFBIZ-2720 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@793969 13f79535-47bb-0310-9956-ffa450edef68 --- .../accounting/data/AccountingTypeData.xml | 3 +++ applications/accounting/entitydef/entitymodel.xml | 4 ++++ .../accounting/finaccount/FinAccountServices.xml | 14 +++++++++++++- applications/accounting/servicedef/secas.xml | 1 + .../accounting/servicedef/services_finaccount.xml | 9 +++++++++ applications/accounting/widget/FinAccountForms.xml | 7 +++++++ 6 files changed, 37 insertions(+), 1 deletion(-) diff --git a/applications/accounting/data/AccountingTypeData.xml b/applications/accounting/data/AccountingTypeData.xml index 701d74c005..154f03c679 100644 --- a/applications/accounting/data/AccountingTypeData.xml +++ b/applications/accounting/data/AccountingTypeData.xml @@ -113,6 +113,9 @@ under the License. + + + diff --git a/applications/accounting/entitydef/entitymodel.xml b/applications/accounting/entitydef/entitymodel.xml index ea96a48149..fac0707fd7 100644 --- a/applications/accounting/entitydef/entitymodel.xml +++ b/applications/accounting/entitydef/entitymodel.xml @@ -462,6 +462,7 @@ under the License. + @@ -488,6 +489,9 @@ under the License. + + + diff --git a/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml b/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml index f8e4dfe9eb..af509ae50e 100644 --- a/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml @@ -173,7 +173,9 @@ under the License. - + + + @@ -362,4 +364,14 @@ under the License. + + + + + + + + + + diff --git a/applications/accounting/servicedef/secas.xml b/applications/accounting/servicedef/secas.xml index 7de0e8b142..a26ba5242f 100644 --- a/applications/accounting/servicedef/secas.xml +++ b/applications/accounting/servicedef/secas.xml @@ -136,6 +136,7 @@ under the License. diff --git a/applications/accounting/servicedef/services_finaccount.xml b/applications/accounting/servicedef/services_finaccount.xml index b388b75a6b..438135e1a9 100644 --- a/applications/accounting/servicedef/services_finaccount.xml +++ b/applications/accounting/servicedef/services_finaccount.xml @@ -376,4 +376,13 @@ under the License. + + + Migrate statusId to FinAccountTrans entity, + this service can be used to upgrade existing data i.e it sets the statusId(new field in entity) to "Approved" if found empty. + Before running this service, load the seed data for StatusType and StatusItem from the file : + accounting/data/AccountingTypeData.xml + + diff --git a/applications/accounting/widget/FinAccountForms.xml b/applications/accounting/widget/FinAccountForms.xml index ee9f748112..3839ad1b8f 100644 --- a/applications/accounting/widget/FinAccountForms.xml +++ b/applications/accounting/widget/FinAccountForms.xml @@ -188,6 +188,13 @@ under the License. + + + + + + +