Revision acbd9d0f
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
$form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
|
||
}
|
||
|
||
# TODO There is no credit_note for vendor invoices (remove template code)
|
||
$TMPL_VAR{is_type_credit_note} = $form->{type} eq "credit_note";
|
||
$TMPL_VAR{is_format_html} = $form->{format} eq 'html';
|
||
$TMPL_VAR{dateformat} = $myconfig{dateformat};
|
||
$TMPL_VAR{numberformat} = $myconfig{numberformat};
|
||
... | ... | |
$form->{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted();
|
||
|
||
print $form->parse_html_template('ir/form_footer', {
|
||
is_type_credit_note => ($form->{type} eq "credit_note"),
|
||
totalpaid => $totalpaid,
|
||
paid_missing => $form->{invtotal} - $totalpaid,
|
||
show_storno => $form->{id} && !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ap") && !$totalpaid,
|
templates/webpages/ir/_payments.html | ||
---|---|---|
<td>
|
||
<table width="100%">
|
||
<tr class="listheading">
|
||
[% IF is_type_credit_note || vc == 'vendor' %]
|
||
<th colspan="6" class="listheading">[% 'Payments' | $T8 %]</th>
|
||
[% ELSE %]
|
||
<th colspan="6" class="listheading">[% 'Incoming Payments' | $T8 %]</th>
|
||
[%- END %]
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<th>[% 'Date' | $T8 %]</th>
|
||
<th>[% 'Source' | $T8 %]</th>
|
templates/webpages/ir/form_header.html | ||
---|---|---|
<th align="right">[% 'Employee' | $T8 %]</th>
|
||
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]</td>
|
||
</tr>
|
||
|
||
[%- IF is_type_credit_note %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th>
|
||
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Credit Note Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('invdate', invdate) %]</td>
|
||
</tr>
|
||
[%- ELSE %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
|
||
<td colspan="3">[% L.input_tag("invnumber", invnumber, size="11") %]</td>
|
||
... | ... | |
<span id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate) %]</span>
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
|
||
<td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
|
Auch abrufbar als: Unified diff
Einkaufsrechnung: Sinnfreie Weiche für Gutschrift entfernt (toter Code)
Da es keine Einkaufsrechnungen-Gutschriften gibt, sind die
entsprechend Weichen eher irritierend als hilfreich => entfernt.