Author: hansbak
Date: Tue Oct 22 03:58:16 2013
New Revision: 1534478
URL:
http://svn.apache.org/r1534478Log:
make status an optional field in the creation of a payment and provide a default value of 'not paid'
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
ofbiz/trunk/applications/accounting/servicedef/services_payment.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml?rev=1534478&r1=1534477&r2=1534478&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml Tue Oct 22 03:58:16 2013
@@ -47,6 +47,10 @@ under the License.
</if-empty>
<field-to-result field="payment.paymentId" result-name="paymentId"/>
+ <if-empty field="parameters.statusId">
+ <set field="parameters.statusId" value="PMNT_NOT_PAID"/>
+ </if-empty>
+
<if-not-empty field="parameters.paymentMethodId">
<entity-one entity-name="PaymentMethod" value-field="paymentMethod">
<field-map field-name="paymentMethodId" from-field="parameters.paymentMethodId"/>
Modified: ofbiz/trunk/applications/accounting/servicedef/services_payment.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_payment.xml?rev=1534478&r1=1534477&r2=1534478&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_payment.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_payment.xml Tue Oct 22 03:58:16 2013
@@ -34,7 +34,6 @@ under the License.
<override name="paymentTypeId" optional="false"/>
<override name="partyIdFrom" optional="false"/>
<override name="partyIdTo" optional="false"/>
- <override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>