Author: apatel
Date: Thu Jul 30 07:16:37 2009
New Revision: 799191

URL: http://svn.apache.org/viewvc?rev=799191&view=rev
Log:
Add Find/List of deposit slips for the bankaccount. Patch from OFBIZ-2770. 
Thanks Sumit, Awdesh.

Modified:
    ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml
    ofbiz/trunk/applications/accounting/widget/FinAccountForms.xml
    ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml

Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=799191&r1=799190&r2=799191&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original)
+++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Thu Jul 
30 07:16:37 2009
@@ -6861,6 +6861,9 @@
         <value xml:lang="th">Security Error: 
ความผิดพลาด! 
การตรวจสอบการพิมพ์, 
คุณต้องมี ACCOUNTING_PRINT_CHECKS ก่อน</value>
         <value 
xml:lang="zh">安全错误:要打印支票,你必须具有ACCOUNTING_PRINT_CHECKS权限</value>
     </property>
+    <property key="AccountingPrintDepositSlip">
+        <value xml:lang="en">Print Deposit Slip</value>
+    </property>
     <property key="AccountingProblemChangingInvoiceStatusTo">
         <value xml:lang="ar">مشكل عند تغيير وضعية 
الفاتورة إلى  ${newStatus}</value>
         <value xml:lang="en">Problem changing invoice status to 
${newStatus}</value>

Modified: ofbiz/trunk/applications/accounting/widget/FinAccountForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FinAccountForms.xml?rev=799191&r1=799190&r2=799191&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/FinAccountForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/FinAccountForms.xml Thu Jul 30 
07:16:37 2009
@@ -246,12 +246,18 @@
         </field>
     </form>
     <form name="EditDepositSlip" type="single" target="updateDepositSlip" 
extends="EditPaymentGroup" 
extends-resource="component://accounting/widget/PaymentGroupForms.xml">
+        <field name="paymentGroupTypeId" 
title="${uiLabelMap.CommonType}"><display-entity entity-name="PaymentGroupType" 
description="${description}"/></field>
         <field name="finAccountId"><hidden value="${finAccountId}"/></field>
     </form>
     <form name="AddDepositSlipMember" type="single" 
target="addDepositSlipMember" extends="AddPaymentGroupMember" 
extends-resource="component://accounting/widget/PaymentGroupForms.xml">
         <field name="finAccountId"><hidden value="${finAccountId}"/></field>
     </form>
     <form name="ListDepositSlipMember" type="list" 
target="updateDepositSlipMember" extends="ListPaymentGroupMember" 
extends-resource="component://accounting/widget/PaymentGroupForms.xml">
+        <actions>
+            <entity-and entity-name="PaymentGroupMember" 
list="paymentGroupMembers">
+                <field-map field-name="paymentGroupId"/>
+            </entity-and>
+        </actions>
         <field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" 
widget-style="buttontext">
             <hyperlink target="expireDepositSlipMember" 
description="${uiLabelMap.CommonCancel}" also-hidden="false">
                 <parameter param-name="paymentGroupId"/>

Modified: ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml?rev=799191&r1=799190&r2=799191&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml Thu Jul 30 
07:16:37 2009
@@ -326,7 +326,7 @@
                 <set field="paymentGroupId" 
from-field="parameters.paymentGroupId"/>
                 <entity-one entity-name="FinAccount" value-field="finAccount"/>
                 <entity-one entity-name="PaymentGroup" 
value-field="paymentGroup"/>
-                <entity-and entity-name="PaymentGroupMember" 
list="paymentGroupMembers">
+                <entity-and entity-name="PaymentGroupMember" 
list="paymentGroupMemberList" filter-by-date="true">
                     <field-map field-name="paymentGroupId"/>
                 </entity-and>
             </actions>
@@ -334,16 +334,24 @@
                 <decorator-screen name="CommonFinAccountDecorator" 
location="${parameters.finAccountDecoratorLocation}">
                     <decorator-section name="body">
                         <section>
+                            <condition>
+                                <not><if-empty 
field="paymentGroupMemberList"/></not>
+                            </condition>
                             <widgets>
-                                <screenlet 
title="${uiLabelMap.AccountingEditPaymentGroupFor}">
-                                    <include-form name="EditDepositSlip" 
location="component://accounting/widget/FinAccountForms.xml"/>
-                                </screenlet>
-                                <screenlet 
title="${uiLabelMap.AccountingEditPaymentGroupMemberFor}">
-                                    <include-form name="AddDepositSlipMember" 
location="component://accounting/widget/FinAccountForms.xml"/>
-                                    <include-form name="ListDepositSlipMember" 
location="component://accounting/widget/FinAccountForms.xml"/>
-                                </screenlet>
+                                <container style="button-bar">
+                                    <link target="DepositSlip.pdf" 
text="${uiLabelMap.AccountingPrintDepositSlip}" style="buttontext">
+                                        <parameter 
param-name="paymentGroupId"/>
+                                    </link>
+                                </container>
                             </widgets>
                         </section>
+                        <screenlet 
title="${uiLabelMap.AccountingEditPaymentGroupFor}">
+                            <include-form name="EditDepositSlip" 
location="component://accounting/widget/FinAccountForms.xml"/>
+                        </screenlet>
+                        <screenlet 
title="${uiLabelMap.AccountingEditPaymentGroupMemberFor}">
+                            <include-form name="AddDepositSlipMember" 
location="component://accounting/widget/FinAccountForms.xml"/>
+                            <include-form name="ListDepositSlipMember" 
location="component://accounting/widget/FinAccountForms.xml"/>
+                        </screenlet>
                     </decorator-section>
                 </decorator-screen>
             </widgets>


Reply via email to