svn commit: r795064 - /ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r795064 - /ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl

apatel-2
Author: apatel
Date: Fri Jul 17 12:28:28 2009
New Revision: 795064

URL: http://svn.apache.org/viewvc?rev=795064&view=rev
Log:
Minor enhancements, show creditcart type if available. Show payment reference number in place of methodtype.

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl?rev=795064&r1=795063&r2=795064&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/reports/DepositSlip.fo.ftl Fri Jul 17 12:28:28 2009
@@ -39,7 +39,7 @@
                         <fo:block>${uiLabelMap.FormFieldTitle_paymentId}</fo:block>
                     </fo:table-cell>
                     <fo:table-cell padding="2pt" background-color="#D4D0C8" border="1pt solid" border-width=".1mm">
-                        <fo:block text-align="center">${uiLabelMap.AccountingPaymentType}</fo:block>
+                        <fo:block text-align="center">${uiLabelMap.AccountingReferenceNumber}</fo:block>
                     </fo:table-cell>
                     <fo:table-cell padding="2pt" background-color="#D4D0C8" border="1pt solid" border-width=".1mm">
                         <fo:block text-align="right">${uiLabelMap.AccountingPaymentMethod}</fo:block>
@@ -65,6 +65,9 @@
                         </#if>
                         <#if payment.paymentMethodTypeId?has_content>
                             <#assign paymentMethodType = delegator.findOne("PaymentMethodType", {"paymentMethodTypeId" : payment.paymentMethodTypeId}, false)/>
+                            <#if payment.paymentMethodTypeId?if_exists == "CREDIT_CARD">
+                                <#assign creditCard = delegator.findOne("CreditCard", {"paymentMethodId" : payment.paymentMethodId}, false)/>
+                            </#if>
                         </#if>
                         <fo:table-row>
                             <fo:table-cell padding="2pt" border="1pt solid" border-width=".1mm">
@@ -72,11 +75,11 @@
                             </fo:table-cell>
                             <fo:table-cell padding="2pt" border="1pt solid" border-width=".1mm">
                                 <fo:block text-align="center">
-                                    ${paymentType.description?if_exists}
+                                    ${payment.paymentRefNum?if_exists}
                                 </fo:block>
                             </fo:table-cell>
                             <fo:table-cell padding="2pt" border="1pt solid" border-width=".1mm">
-                                <fo:block text-align="right">${paymentMethodType.description?if_exists}</fo:block>
+                                <fo:block text-align="right">${paymentMethodType.description?if_exists} <#if creditCard?has_content>(${creditCard.cardType?if_exists})</#if></fo:block>
                             </fo:table-cell>
                             <fo:table-cell padding="2pt" border="1pt solid" border-width=".1mm">
                                 <fo:block text-align="right">