[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cash receipts screen
- Subject: Re: Cash receipts screen
- From: Erik Huelsmann <..hidden..>
- Date: Thu, 19 May 2011 21:33:52 +0200
On Thu, May 19, 2011 at 8:27 PM, Erik Huelsmann <..hidden..> 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.