projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git]
/
templates
/
webpages
/
do
/
stock_in_form.html
diff --git
a/templates/webpages/do/stock_in_form.html
b/templates/webpages/do/stock_in_form.html
index
08384f7
..
f8fa9d8
100644
(file)
--- a/
templates/webpages/do/stock_in_form.html
+++ b/
templates/webpages/do/stock_in_form.html
@@
-140,8
+140,13
@@
[% L.date_tag('bestbefore_'_ loop.count, row.bestbefore) %]
</td>
[% END %]
[% L.date_tag('bestbefore_'_ loop.count, row.bestbefore) %]
</td>
[% END %]
- <td><input name="qty_[% loop.count %]" size="12" value="[% HTML.escape(LxERP.format_amount(row.qty)) %]"></td>
-
+ <td><input name="qty_[% loop.count %]" size="12"
+ [%- IF (!row.qty) && (loop.count == 1) %]
+ value="[% HTML.escape(do_qty) %]"
+ [%- ELSE %]
+ value="[% HTML.escape(LxERP.format_amount(row.qty)) %]"
+ [% END %]
+ ></td>
<td>
<select name="unit_[% loop.count %]">
[%- FOREACH unit = UNITS %]
<td>
<select name="unit_[% loop.count %]">
[%- FOREACH unit = UNITS %]