grocy/public
joshvazquez 3a997ac8dc
Fix printing label per unit
If a product allows label printing per unit, the current code prevents you from setting "stock entry label" to "label per unit" on the purchase page because the option is disabled. Only a single label can be printed.

Even if you set the product default to "label per unit" and don't change it on the purchase page, the selection is ignored because the option is disabled, so `jsonForm.print_stock_label` is undefined. In this case, no labels are printed at all because the value is undefined.

This change enables/disables the option in the correct cases.
2021-10-10 13:17:49 -07:00
..
css Fixed modal backdrop z-index (references #1589) 2021-09-19 16:20:06 +02:00
img Added all application icon variants (closes #159) 2019-03-02 08:56:53 +01:00
js Fixed negative number plural form handling (fixes #1601) 2021-09-06 22:26:31 +02:00
uisounds Implemented "Scan mode" 2020-01-26 15:35:01 +01:00
viewjs Fix printing label per unit 2021-10-10 13:17:49 -07:00
.htaccess Reorganize project part 3 2018-04-12 21:13:38 +02:00
index.php Applied PHP formatting rules 2020-08-31 20:40:31 +02:00
robots.txt Move public stuff into subdirectory 2018-04-11 20:47:03 +02:00