24b7bf97d1bc4ea1544a76cae9fcfdf7d205a51d
[kivitendo-erp.git] / templates / webpages / shop_order / _transfer_status.html
1 [%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
2 [% SET data = job.data_as_hash %]
3
4 <h2>[% LxERP.t8("Watch status") %]</h2>
5
6 [% L.hidden_tag('', job.id, id="smt_job_id") %]
7
8 JOBID: [% job.id %] <p>
9  [% LxERP.t8("This status output will be refreshed every five seconds.") %]
10 </p>
11 <p>
12 </p>
13 <p>
14  [% L.link("#", LxERP.t8("Close window"), onclick="kivi.ShopOrder.processClose();") %]
15  <table>
16   <tr>
17    <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
18    <td valign="top">
19     [% IF !data.status %]
20      [% LxERP.t8("waiting for job to be started") %]
21     [% ELSIF data.status == 1 %]
22      [% LxERP.t8("Converting to deliveryorder") %]
23      [% ELSE %]
24      [% LxERP.t8("Done.") %]
25     [% END %]
26    </td>
27   </tr>
28   <tr>
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>
31   </tr>
32
33
34   <tr>
35    <th valign="top" align="left">[% LxERP.t8("Errors during conversion:") %]</th>
36    <td valign="top">
37 [% IF !data.status %]
38   –
39 [% ELSIF !data.conversion_errors.size %]
40  [% LxERP.t8("No errors have occurred.") %]
41 [% ELSE %]
42     <table>
43      <tr class="listheader">
44       <th>[% LxERP.t8("Shoporder") %]</th>
45       <th>[% LxERP.t8("Error") %]</th>
46      </tr>
47
48  [% FOREACH error = data.conversion_errors %]
49      <tr>
50       <td valign="top">[% HTML.escape(error.number) %]</td>
51       <td valign="top">[% FOREACH message = error.message %][% HTML.escape(message) %]<br>[% END %]</td>
52      </tr>
53  [% END %]
54     </table>
55 [% END %]
56    </td>
57   </tr>
58  </table>
59 </p>