107 |
107 |
# Setup "formname" selection
|
108 |
108 |
#
|
109 |
109 |
|
|
110 |
$form->get_lists("printers" => "ALL_PRINTERS",
|
|
111 |
"languages" => "ALL_LANGUAGES",
|
|
112 |
"dunning_configs" => "ALL_DUNNING_CONFIGS");
|
|
113 |
|
110 |
114 |
my %formname_setup =
|
111 |
115 |
(
|
112 |
|
"balance_sheet" => { "translation" => $locale->text('Balance Sheet'), "html" => 1 },
|
113 |
|
"bin_list" => $locale->text('Bin List'),
|
114 |
|
"bwa" => { "translation" => $locale->text('BWA'), "html" => 1 },
|
115 |
|
"check" => { "translation" => $locale->text('Check'), "html" => 1 },
|
116 |
|
"credit_note" => $locale->text('Credit Note'),
|
117 |
|
"income_statement" => { "translation" => $locale->text('Income Statement'), "html" => 1 },
|
118 |
|
"invoice" => $locale->text('Invoice'),
|
119 |
|
"packing_list" => $locale->text('Packing List'),
|
120 |
|
"pick_list" => $locale->text('Pick List'),
|
121 |
|
"proforma" => $locale->text('Proforma Invoice'),
|
122 |
|
"purchase_order" => $locale->text('Purchase Order'),
|
123 |
|
"receipt" => { "translation" => $locale->text('Receipt'), "tex" => 1 },
|
124 |
|
"request_quotation" => $locale->text('RFQ'),
|
125 |
|
"sales_order" => $locale->text('Confirmation'),
|
126 |
|
"sales_quotation" => $locale->text('Quotation'),
|
127 |
|
"statement" => $locale->text('Statement'),
|
128 |
|
"storno_invoice" => $locale->text('Storno Invoice'),
|
129 |
|
"storno_packing_list" => $locale->text('Storno Packing List'),
|
130 |
|
"ustva-2004" => { "translation" => $locale->text("USTVA 2004"), "tex" => 1 },
|
131 |
|
"ustva-2005" => { "translation" => $locale->text("USTVA 2005"), "tex" => 1 },
|
132 |
|
"ustva-2006" => { "translation" => $locale->text("USTVA 2006"), "tex" => 1 },
|
133 |
|
"ustva-2007" => { "translation" => $locale->text("USTVA 2007"), "tex" => 1 },
|
134 |
|
"ustva" => $locale->text("USTVA"),
|
135 |
|
"zahlungserinnerung" => $locale->text('Payment Reminder'),
|
|
116 |
"balance_sheet" => { "translation" => $locale->text('Balance Sheet'), "html" => 1 },
|
|
117 |
"bin_list" => $locale->text('Bin List'),
|
|
118 |
"bwa" => { "translation" => $locale->text('BWA'), "html" => 1 },
|
|
119 |
"check" => { "translation" => $locale->text('Check'), "html" => 1 },
|
|
120 |
"credit_note" => $locale->text('Credit Note'),
|
|
121 |
"income_statement" => { "translation" => $locale->text('Income Statement'), "html" => 1 },
|
|
122 |
"invoice" => $locale->text('Invoice'),
|
|
123 |
"packing_list" => $locale->text('Packing List'),
|
|
124 |
"pick_list" => $locale->text('Pick List'),
|
|
125 |
"proforma" => $locale->text('Proforma Invoice'),
|
|
126 |
"purchase_order" => $locale->text('Purchase Order'),
|
|
127 |
"receipt" => { "translation" => $locale->text('Receipt'), "tex" => 1 },
|
|
128 |
"request_quotation" => $locale->text('RFQ'),
|
|
129 |
"sales_order" => $locale->text('Confirmation'),
|
|
130 |
"sales_quotation" => $locale->text('Quotation'),
|
|
131 |
"statement" => $locale->text('Statement'),
|
|
132 |
"storno_invoice" => $locale->text('Storno Invoice'),
|
|
133 |
"storno_packing_list" => $locale->text('Storno Packing List'),
|
|
134 |
"ustva-2004" => { "translation" => $locale->text("USTVA 2004"), "tex" => 1 },
|
|
135 |
"ustva-2005" => { "translation" => $locale->text("USTVA 2005"), "tex" => 1 },
|
|
136 |
"ustva-2006" => { "translation" => $locale->text("USTVA 2006"), "tex" => 1 },
|
|
137 |
"ustva-2007" => { "translation" => $locale->text("USTVA 2007"), "tex" => 1 },
|
|
138 |
"ustva" => $locale->text("USTVA"),
|
136 |
139 |
);
|
137 |
140 |
|
138 |
141 |
my (@values, $file, $setup);
|
... | ... | |
146 |
149 |
"default" => $file eq $form->{"formname"} });
|
147 |
150 |
}
|
148 |
151 |
|
|
152 |
# "zahlungserinnerung" => $locale->text('Payment Reminder'),
|
|
153 |
|
|
154 |
foreach my $ref (@{ $form->{"ALL_DUNNING_CONFIGS"} }) {
|
|
155 |
next if !$ref->{"template"};
|
|
156 |
|
|
157 |
push(@values,
|
|
158 |
{ "value" => $ref->{"template"},
|
|
159 |
"label" => $locale->text('Payment Reminder') . ": " . $ref->{"dunning_description"},
|
|
160 |
"default" => $ref->{"template"} eq $form->{"formname"} });
|
|
161 |
}
|
|
162 |
|
149 |
163 |
@values = sort({ $a->{"label"} cmp $b->{"label"} } @values);
|
150 |
164 |
|
151 |
165 |
$options{"FORMNAME"} = [ @values ];
|
... | ... | |
154 |
168 |
# Setup "language" selection
|
155 |
169 |
#
|
156 |
170 |
|
157 |
|
$form->get_lists("printers" => "ALL_PRINTERS",
|
158 |
|
"languages" => "ALL_LANGUAGES");
|
159 |
|
|
160 |
171 |
@values = ( { "value" => "", "label" => "", "default" => 0 } );
|
161 |
172 |
|
162 |
173 |
foreach my $item (@{ $form->{"ALL_LANGUAGES"} }) {
|
Bearbeiten von Vorlagen: Es können jetzt die Vorlagen für alle konfigurierten Mahnstufen bearbeitet werden.