X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fio.pl;h=2f0fb95cdaf9ea4952671ac4a124bf5e59580c29;hb=6f28dbb7499775d7f33834c08846a7909c665c22;hp=46bad906b80e62d2bc6c93a894f89159febfe1f1;hpb=cae81a9301ce3bc3cfd5ac47b0c6f0537ca23ff0;p=kivitendo-erp.git diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 46bad906b..2f0fb95cd 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1205,6 +1205,15 @@ sub print_form { if ($form->{formname} eq "invoice") { $form->{label} = $locale->text('Invoice'); } + + if ($form->{formname} eq "invoice_for_advance_payment") { + $form->{label} = $locale->text('Invoice for Advance Payment'); + } + + if ($form->{formname} eq "final_invoice") { + $form->{label} = $locale->text('Final Invoice'); + } + if ($form->{formname} eq 'sales_order') { $inv = "ord"; $due = "req"; @@ -1302,7 +1311,7 @@ sub print_form { } $form->{TEMPLATE_DRIVER_OPTIONS} = { }; - if (any { $form->{type} eq $_ } qw(sales_quotation sales_order sales_delivery_order invoice request_quotation purchase_order purchase_delivery_order credit_note)) { + if (any { $form->{type} eq $_ } qw(sales_quotation sales_order sales_delivery_order invoice invoice_for_advance_payment final_invoice request_quotation purchase_order purchase_delivery_order credit_note)) { $form->{TEMPLATE_DRIVER_OPTIONS}->{variable_content_types} = $form->get_variable_content_types(); } @@ -1886,6 +1895,7 @@ sub _make_record_item { request_quotation => 'OrderItem', invoice => 'InvoiceItem', invoice_for_advance_payment => 'InvoiceItem', + final_invoice => 'InvoiceItem', credit_note => 'InvoiceItem', purchase_invoice => 'InvoiceItem', purchase_delivery_order => 'DeliveryOrderItem', @@ -1966,7 +1976,7 @@ sub _make_record { sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; - if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) { + if ($::form->{type} =~ /invoice|credit_note/) { $class = $::form->{vc} eq 'customer' ? 'Invoice' : $::form->{vc} eq 'vendor' ? 'PurchaseInvoice' : do { die 'unknown invoice type' };