Revision e1cb0036
Von Jan Büren vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
599 | 599 |
$auth->assert('customer_vendor_edit'); |
600 | 600 |
|
601 | 601 |
CT->get_delivery(\%myconfig, \%$form ); |
602 |
$form->{IS_CUSTOMER} = $form->{db} eq 'customer'; |
|
602 | 603 |
|
603 | 604 |
print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery'); |
604 | 605 |
|
templates/webpages/ct/get_delivery_de.html | ||
---|---|---|
16 | 16 |
[%- FOREACH row = DELIVERY %] |
17 | 17 |
<tr class="listrow[% loop.count % 2 %]"> |
18 | 18 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
19 |
<td>[% IF row.id %]<a href='is.pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
|
19 |
<td>[% IF row.id %]<a href='[% IF IS_CUSTOMER %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
|
20 | 20 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=sales_order&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td> |
21 | 21 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
22 | 22 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
templates/webpages/ct/get_delivery_master.html | ||
---|---|---|
16 | 16 |
[%- FOREACH row = DELIVERY %] |
17 | 17 |
<tr class="listrow[% loop.count % 2 %]"> |
18 | 18 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
19 |
<td>[% IF row.id %]<a href='is.pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
|
19 |
<td>[% IF row.id %]<a href='[% IF IS_CUSTOMER %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
|
20 | 20 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=sales_order&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td> |
21 | 21 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
22 | 22 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
Auch abrufbar als: Unified diff
Bugfix für Bug 1127. webpages/ct/get_delivery_master ist nicht customer/vendor sicher. Eine entsprechende Abfrage in das Template eingefügt. Ferner vor dem Aufruf von parse_html noch ->IS_CUSTOMER gesetzt