Revision e1cb0036
Von Jan Büren vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
$auth->assert('customer_vendor_edit');
|
||
|
||
CT->get_delivery(\%myconfig, \%$form );
|
||
$form->{IS_CUSTOMER} = $form->{db} eq 'customer';
|
||
|
||
print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery');
|
||
|
templates/webpages/ct/get_delivery_de.html | ||
---|---|---|
[%- FOREACH row = DELIVERY %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td>
|
||
<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>
|
||
<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>
|
||
<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>
|
||
<td>[% HTML.escape(row.transdate) || ' ' %]</td>
|
||
<td>[% HTML.escape(row.description) || ' ' %]</td>
|
templates/webpages/ct/get_delivery_master.html | ||
---|---|---|
[%- FOREACH row = DELIVERY %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td>
|
||
<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>
|
||
<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>
|
||
<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>
|
||
<td>[% HTML.escape(row.transdate) || ' ' %]</td>
|
||
<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