template => $ctrl->find_template(name => 'invoice', printer_id => $printer_id),
variables => Form->new(''),
return => 'file_name',
+ variable_content_types => { longdescription => 'html',
+ partnotes => 'html',
+ notes => 'html',}
);
+
+
$create_params{variables}->{$_} = $variables{$_} for keys %variables;
$invoice->flatten_to_form($create_params{variables}, format_amounts => 1);
query => [
'!customer_id' => undef,
or => [ closed => undef, closed => 0 ],
- or => [ delivered => undef, delivered => 0 ],
],
);
}
template => $self->find_template(name => 'invoice', printer_id => $params{printer_id}),
variables => Form->new(''),
return => 'file_name',
+ variable_content_types => { longdescription => 'html',
+ partnotes => 'html',
+ notes => 'html',}
);
$create_params{variables}->{$_} = $params{variables}->{$_} for keys %{ $params{variables} };
my @filters = (
[ $filter->{customer}{"name:substr::ilike"}, t8('Customer') ],
- [ $filter->{"transdate:date::ge"}, t8('Delivery Date') . " " . t8('From Date') ],
- [ $filter->{"transdate:date::le"}, t8('Delivery Date') . " " . t8('To Date') ],
+ [ $filter->{"transdate:date::ge"}, t8('Transdate') . " " . t8('From Date') ],
+ [ $filter->{"transdate:date::le"}, t8('Transdate') . " " . t8('To Date') ],
);
for (@filters) {
<th align="right">[% LxERP.t8('Customer') %]</th>
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
</tr>
- <th align="right">[% LxERP.t8('Delivery Date') %] [% LxERP.t8('From Date') %]</th>
+ <th align="right">[% LxERP.t8('Transdate') %] [% LxERP.t8('From Date') %]</th>
<td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
</tr>
<tr>
- <th align="right">[% LxERP.t8('Delivery Date') %] [% LxERP.t8('To Date') %]</th>
+ <th align="right">[% LxERP.t8('Transdate') %] [% LxERP.t8('To Date') %]</th>
<td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
</tr>
- <!-- TODO implement helper function nat sort here -->
- <!-- tr>
- <th align="right">[% LxERP.t8('From') %] [% LxERP.t8('Delivery Order Number') %]</th>
- <td>[% L.input_tag('filter.donumber:number::ge', filter.donumber_number__ge) %]</td>
- </tr>
- <tr>
- <th align="right">[% LxERP.t8('To') %] [% LxERP.t8('Delivery Order Number') %]</th>
- <td>[% L.input_tag('filter.donumber:number::le', filter.donumber_number__le) %]</td>
- </tr -->
-
- </table>
+ </table>
[% L.hidden_tag('action', 'MassInvoiceCreatePrint/dispatch') %]
[% L.hidden_tag('sort_by', FORM.sort_by) %]