Lieferschein: Bei der Maske zum Auslagern automatisch die Lieferscheinmenge eintragen...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 9 Apr 2009 09:49:32 +0000 (09:49 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 9 Apr 2009 09:49:32 +0000 (09:49 +0000)
templates/webpages/do/stock_out_form_de.html
templates/webpages/do/stock_out_form_master.html

index c71d2ff..1520083 100644 (file)
 
      <td>[% HTML.escape(row.available_qty) %]</td>
      <td><input name="qty_[% loop.count %]" style="text-align: right;" size="12"
-                value="[% IF row.stock_qty %][% HTML.escape(LxERP.format_amount(row.stock_qty)) %][% END %]"></td>
+                [%- IF row.stock_qty %]
+                value="[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]"
+                [%- ELSIF ((WHCONTENTS.size == 1) && (!row.stock_qty)) %]
+                value="[% HTML.escape(do_qty) %]"
+                [%- END %]
+                ></td>
      <td>
       <select name="unit_[% loop.count %]">
        [%- FOREACH unit = UNITS %]
index 3a13b87..971b6e7 100644 (file)
 
      <td>[% HTML.escape(row.available_qty) %]</td>
      <td><input name="qty_[% loop.count %]" style="text-align: right;" size="12"
-                value="[% IF row.stock_qty %][% HTML.escape(LxERP.format_amount(row.stock_qty)) %][% END %]"></td>
+                [%- IF row.stock_qty %]
+                value="[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]"
+                [%- ELSIF ((WHCONTENTS.size == 1) && (!row.stock_qty)) %]
+                value="[% HTML.escape(do_qty) %]"
+                [%- END %]
+                ></td>
      <td>
       <select name="unit_[% loop.count %]">
        [%- FOREACH unit = UNITS %]