[%- USE LxERP -%][%- USE HTML -%][%- USE P -%]

[% HTML.escape(title) %]

[% IF !ORDERS.size %]

[% LxERP.t8("There are no orders for the selected time period.") %]

[% ELSE %] [% FOREACH order = ORDERS %] [% END %]
[% LxERP.t8("Date") %] [% LxERP.t8("Delivery Date") %] [% LxERP.t8("Order") %] [% LxERP.t8("Customer Order Number") %] [% LxERP.t8("Customer") %] [% LxERP.t8("Total") %] [% LxERP.t8("Net amount") %] [% LxERP.t8("Employee") %] [% LxERP.t8("Transaction description") %] [% LxERP.t8("Recurring") %]
[% HTML.escape(order.transdate.to_kivitendo) %] [% HTML.escape(order.reqdate.to_kivitendo) %] [% P.order.sales_order(order) %] [% HTML.escape(order.cusordnumber) %] [% P.customer_vendor.customer(order.customer) %] [% HTML.escape(LxERP.format_amount(order.amount, 2)) %] [% HTML.escape(LxERP.format_amount(order.netamount, 2)) %] [% HTML.escape(order.employee.safe_name) %] [% HTML.escape(order.transaction_description) %] [% IF order.is_recurring %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]
[% END %]