if ($form->{type} eq "credit_note") {
$form->{type} = "credit_note";
$form->{formname} = "credit_note";
+
+ } elsif ($form->{type} eq "invoice_for_advance_payment") {
+ $form->{type} = "invoice_for_advance_payment";
+
} elsif ($form->{formname} eq "proforma" ) {
$form->{type} = "invoice";
+
} else {
$form->{type} = "invoice";
$form->{formname} = "invoice";
$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};
}
print $form->parse_html_template('is/form_footer', {
+ is_type_invoice_for_advance_payment => ($form->{type} eq "invoice_for_advance_payment"),
is_type_credit_note => ($form->{type} eq "credit_note"),
totalpaid => $totalpaid,
paid_missing => $form->{invtotal} - $totalpaid,
</td>
</tr>
-[% PROCESS 'is/_payments.html' %]
+[% IF !is_type_invoice_for_advance_payment %]
+ [% PROCESS 'is/_payments.html' %]
+[% END %]
</table>
</div>
[% PROCESS 'webdav/_list.html' %]