On Thu, May 19, 2011 at 8:27 PM, Erik Huelsmann <[email protected]> wrote:
> Hi Chris,
>
> I'd like to change the AR screen to say "To receive" instead of "To
> pay" and replace all occurrances of "Vendor" to "Customer" and send a
> patch with that change.
>
> However, there are 3 files called payment.pl... where do I start?
Chris helped me out to find the cause. Turns out the template wasn't
coded with the right conditionals. Here's the patch to correct the
issue:
Index: UI/payments/payment2.html
===================================================================
--- UI/payments/payment2.html (revision 3142)
+++ UI/payments/payment2.html (working copy)
@@ -36,7 +36,11 @@
<td width="50%" id="info_data">
<table id="cv_info_table">
<tr id="cv_row">
- <th class="label_left" id="cv_label_column"><?lsmb
text('Vendor') ?></th>
+ <th class="label_left" id="cv_label_column">
+ <?lsmb IF (type.value == 'receipt') -?>
+ <?lsmb text('Customer Name') -?>
+ <?lsmb ELSE; text('Vendor Name') -?>
+ <?lsmb END -?>
<td id="cv_column">
<?lsmb vc.name ?><?lsmb vendorcustomer.type =
'hidden'; INCLUDE input element_data=vendorcustomer?>
</td>
Bye,
Erik.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Ledger-smb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel