[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
+[%- USE L %]
<tr>
<td>
<table width="100%">
show_empty = 1 -%]
</td>
</tr>
+
+[%- IF is_sales_ord %]
+ <tr>
+ <th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
+ <td>
+ [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
+ ([% HTML.escape(periodic_invoices_status) %])
+ [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
+ </td>
+ </tr>
+[%- END %]
+
[%- IF id && num_follow_ups %]
<tr>
<td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
<tr>
<th align="left">[% 'Ertrag' | $T8 %]</th>
- <td align="right">[% LxERP.format_amount(marge_total, 2) %]</td>
+ <td align="right">
+ [% LxERP.format_amount(marge_total, 2) %]
+ <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
+ </td>
</tr>
<tr>
<th align="left">[% 'Ertrag prozentual' | $T8 %]</th>
- <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
+ <td align="right">
+ [% LxERP.format_amount(marge_percent, 2) %]
+ <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
+ </td>
<td>%</td>
</tr>
-
- <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
- <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
</table>
</td>
[%- END %]
[% tax %]
<tr>
<th align="right">[% 'Total' | $T8 %]</th>
- <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
+ <td align="right">[% LxERP.format_amount(invtotal, 2) %]
+ <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
+ <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
+ </td>
</tr>
</table>
</td>
</table>
</td>
</tr>
- <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
- <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
<tr>
<td><hr size="3" noshade></td>
</tr>
<input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
[%- END %]
- [%- IF is_sales_ord || is_pur_ord %]
+ [%- IF is_sales_ord || is_pur_ord && !delivered%]
<input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
[%- END %]
<input type="hidden" name="action" value="dispatcher">
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
-<input type="hidden" name="callback" value="[% callback %]">
+<input type="hidden" name="callback" value="[% callback | html %]">
[% IF vc == 'customer' %]
<input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
[% ELSE %]
</form>
+
+ <script type="text/javascript">
+ <!--
+ Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
+ Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
+
+ $('document').ready(function(){
+ setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
+ setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
+ });
+ //-->
+ </script>
</body>
</html>