1 [%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
3 [% SET data = job.data_as_hash %]
6 <h2>[% LxERP.t8("Watch status") %]</h2>
8 [% L.hidden_tag('', job.id, id="smt_job_id") %]
10 JOBID: [% job.id %] <p>
11 [% LxERP.t8("This status output will be refreshed every five seconds.") %]
16 [% L.link("#", LxERP.t8("Close window"), onclick="kivi.ShopOrder.processClose();") %]
19 <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
22 [% LxERP.t8("waiting for job to be started") %]
23 [% ELSIF data.status == 1 %]
24 [% LxERP.t8("Converting to deliveryorder") %]
26 [% LxERP.t8("Done.") %]
31 <th valign="top" align="left">[% LxERP.t8("Number of orders created:") %]</th>
32 <td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_order_created) %] / [% HTML.escape(data.shop_order_record_ids.size) %][% ELSE %]–[% END %]</td>
37 <th valign="top" align="left">[% LxERP.t8("Errors during conversion:") %]</th>
41 [% ELSIF !data.conversion_errors.size %]
42 [% LxERP.t8("No errors have occurred.") %]
45 <tr class="listheader">
46 <th>[% LxERP.t8("Shoporder") %]</th>
47 <th>[% LxERP.t8("Error") %]</th>
50 [% FOREACH error = data.conversion_errors %]
52 <td valign="top">[% HTML.escape(error.number) %]</td>
53 <td valign="top">[% FOREACH message = error.message %][% HTML.escape(message) %]<br>[% END %]</td>