summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b92770c)
und nicht bei Anzahlungs- oder Schlußrechnungen
$form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
}
$form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
}
- $TMPL_VAR{is_type_invoice_for_advance_payment} = $form->{type} eq "invoice_for_advance_payment";
- $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};
+ $TMPL_VAR{is_type_normal_invoice} = $form->{type} eq "invoice";
+ $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};
# hiddens
$TMPL_VAR{HIDDENS} = [qw(
# hiddens
$TMPL_VAR{HIDDENS} = [qw(
}
print $form->parse_html_template('is/form_footer', {
}
print $form->parse_html_template('is/form_footer', {
- is_type_invoice_for_advance_payment => ($form->{type} eq "invoice_for_advance_payment"),
+ is_type_normal_invoice => ($form->{type} eq "invoice"),
is_type_credit_note => ($form->{type} eq "credit_note"),
totalpaid => $totalpaid,
paid_missing => $form->{invtotal} - $totalpaid,
is_type_credit_note => ($form->{type} eq "credit_note"),
totalpaid => $totalpaid,
paid_missing => $form->{invtotal} - $totalpaid,
-
-[% IF !is_type_invoice_for_advance_payment %]
+[% IF is_type_normal_invoice OR is_type_credit_note %]
[% PROCESS 'is/_payments.html' %]
[% END %]
</table>
[% PROCESS 'is/_payments.html' %]
[% END %]
</table>