1 [%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
2 [% SET data = job.data_as_hash %]
4 <h2>[% LxERP.t8("Watch status") %]</h2>
6 [% L.hidden_tag('', job.id, id="smt_job_id") %]
8 JOBID: [% job.id %] <p>
9 [% LxERP.t8("This status output will be refreshed every five seconds.") %]
14 [% L.link("#", LxERP.t8("Close window"), onclick="kivi.ShopOrder.processClose();") %]
17 <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
20 [% LxERP.t8("waiting for job to be started") %]
21 [% ELSIF data.status == 1 %]
22 [% LxERP.t8("Converting to deliveryorder") %]
24 [% LxERP.t8("Done.") %]
29 <th valign="top" align="left">[% LxERP.t8("Number of orders created:") %]</th>
30 <td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_order_created) %] / [% HTML.escape(data.shop_order_record_ids.size) %][% ELSE %]–[% END %]</td>
35 <th valign="top" align="left">[% LxERP.t8("Errors during conversion:") %]</th>
39 [% ELSIF !data.conversion_errors.size %]
40 [% LxERP.t8("No errors have occurred.") %]
43 <tr class="listheader">
44 <th>[% LxERP.t8("Shoporder") %]</th>
45 <th>[% LxERP.t8("Error") %]</th>
48 [% FOREACH error = data.conversion_errors %]
50 <td valign="top">[% HTML.escape(error.number) %]</td>
51 <td valign="top">[% FOREACH message = error.message %][% HTML.escape(message) %]<br>[% END %]</td>