Fix für Bugs 1264 und 1266.
qq| ex.$rate AS exchangerate, | .
qq| pr.projectnumber AS globalprojectnumber, | .
qq| e.name AS employee, s.name AS salesman, | .
- qq| ct.customernumber, ct.country, ct.ustid | .
+ qq| ct.${vc}number AS vcnumber, ct.country, ct.ustid | .
qq|FROM oe o | .
qq|JOIN $vc ct ON (o.${vc}_id = ct.id) | .
qq|LEFT JOIN employee e ON (o.employee_id = e.id) | .
"shipvia", "globalprojectnumber",
"transaction_description", "open",
"delivered", "marge_total", "marge_percent",
- "customernumber", "ustid",
+ "vcnumber", "ustid",
"country",
);
'delivered' => { 'text' => $locale->text('Delivered'), },
'marge_total' => { 'text' => $locale->text('Ertrag'), },
'marge_percent' => { 'text' => $locale->text('Ertrag prozentual'), },
- 'customernumber' => { 'text' => $locale->text('Customer Number'), },
+ 'vcnumber' => { 'text' => $form->{vc} eq 'customer' ? $locale->text('Customer Number') : $locale->text('Vendor Number'), },
'country' => { 'text' => $locale->text('Country'), },
'ustid' => { 'text' => $locale->text('USt-IdNr.'), },
);
[%- USE HTML %]
[%- SET vclabel = vc == 'customer' ? 'Kunde' : 'Lieferant' %]
+[%- SET vcnumberlabel = vc == 'customer' ? 'Kundennummer' : 'Lieferantennummer' %]
<body>
<form method="post" action="oe.pl">
</td>
</tr>
<tr>
- <td colspan=4 align=left><b>Kunde</td>
+ <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
</tr>
<tr>
<td>
- <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
- <label for="l_customernumber">Kundennummer</label>
+ <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
+ <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
</td>
<td>
<input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
[%- USE HTML %]
[%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
+[%- SET vcnumberlabel = vc == 'customer' ? '<translate>Customer Number</translate>' : '<translate>Vendor Number</translate>' %]
<body>
<form method="post" action="oe.pl">
</td>
</tr>
<tr>
- <td colspan=4 align=left><b><translate>Customer</translate></td>
+ <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
</tr>
<tr>
<td>
- <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
- <label for="l_customernumber"><translate>Customer Number</translate></label>
+ <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
+ <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
</td>
<td>
<input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">