grocy/public/viewjs
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
..
components Typo 2021-07-17 00:26:26 +02:00
about.js Make it possible to show the changelog directly via /about?tab=changelog 2019-03-09 16:25:23 +01:00
barcodescannertesting.js Fixed camera scanning targets (fixes #1210) 2020-12-22 19:06:41 +01:00
batteries.js Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
batteriesjournal.js Squashed commit 2021-07-13 19:29:23 +02:00
batteriesoverview.js Squashed commit 2021-07-13 19:29:23 +02:00
batteriessettings.js Improved number input initial value decimal handling 2020-11-15 14:15:09 +01:00
batteryform.js Squashed commit 2021-07-13 19:29:23 +02:00
batterytracking.js Optimized chore/battery tracking input focus handling 2021-08-27 20:54:27 +02:00
calendar.js Merge used libraries for Barcode/QR-Code generation 2020-12-20 19:53:28 +01:00
choreform.js Squashed commit 2021-07-13 19:29:23 +02:00
chores.js Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
choresjournal.js Squashed commit 2021-07-13 19:29:23 +02:00
choresoverview.js Squashed commit 2021-07-13 19:29:23 +02:00
choressettings.js Improved number input initial value decimal handling 2020-11-15 14:15:09 +01:00
choretracking.js Optimized chore/battery tracking input focus handling 2021-08-27 20:54:27 +02:00
consume.js Don't apply the barocde qu_id if empty (fixes #1619) 2021-09-19 10:07:25 +02:00
equipment.js Improved initial DataTables sorting (fixes #1235) 2020-12-30 13:55:01 +01:00
equipmentform.js Workaround for file upload problem when the file name contains Umlaute (seems to be a Linux only issue, fixes #1382) 2021-07-09 21:23:04 +02:00
inventory.js Don't apply the barocde qu_id if empty (fixes #1619) 2021-09-19 10:07:25 +02:00
locationcontentsheet.js Finished the implementation of "Location Content Sheet" (closes #341) 2019-08-11 09:24:47 +02:00
locationform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
locations.js Squashed commit 2020-12-07 19:48:33 +01:00
login.js Migrated (hopefully) all translations to PO/Gettext (references #161) 2019-05-01 20:19:18 +02:00
manageapikeys.js Merge used libraries for Barcode/QR-Code generation 2020-12-20 19:53:28 +01:00
mealplan.js Hide elements when printing (#1559) 2021-08-06 20:18:43 +02:00
mealplansectionform.js Implemented meal plan sections (closes #370) 2021-07-15 17:54:48 +02:00
mealplansections.js Implemented meal plan sections (closes #370) 2021-07-15 17:54:48 +02:00
openapiui.js Squashed commit 2021-07-13 19:29:23 +02:00
productbarcodeform.js Fixed barcode QU was not saved for single QU products (fixes #1504) 2021-06-27 19:04:09 +02:00
productform.js Restore the rest of "orderFixed" (DataTables rowgroup option) (again closes #1534) 2021-08-17 17:52:28 +02:00
productgroupform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
productgroups.js Squashed commit 2020-12-07 19:48:33 +01:00
products.js Added on option to only show in-stock products on the /products page (closes #1388) 2021-07-06 20:08:02 +02:00
purchase.js Fix printing label per unit 2021-10-10 13:17:49 -07:00
quantityunitconversionform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
quantityunitform.js Squashed commit 2020-12-07 19:48:33 +01:00
quantityunitpluraltesting.js Replaced jQuery UI by Animate.css (better, faster, lighter) 2020-01-28 19:27:18 +01:00
quantityunits.js Fixed filter clearing on /quantityunits (fixes #1511) 2021-06-27 18:42:15 +02:00
recipeform.js Restore the rest of "orderFixed" (DataTables rowgroup option) (again closes #1534) 2021-08-17 17:52:28 +02:00
recipeposform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
recipes.js Squashed commit 2021-07-13 19:29:23 +02:00
recipessettings.js Improved number input initial value decimal handling 2020-11-15 14:15:09 +01:00
shoppinglist.js Store the list of buttons at the workflow start and iterate over that as the workflow progresses. (#1599) 2021-09-15 14:08:23 +02:00
shoppinglistform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
shoppinglistitemform.js Fixed the "Add as barcode to existing product" productpicker workflow from the /shoppinglistitem page (fixes #1262) 2021-07-04 15:46:19 +02:00
shoppinglistsettings.js Fixed shopping list setting initialization (fixes #1344) 2021-07-03 19:43:32 +02:00
shoppinglocationform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
shoppinglocations.js Squashed commit 2020-12-07 19:48:33 +01:00
stockentries.js Squashed commit 2021-07-13 19:29:23 +02:00
stockentryform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
stockjournal.js Squashed commit 2021-07-13 19:29:23 +02:00
stockjournalsummary.js Squashed commit 2021-07-13 19:29:23 +02:00
stockoverview.js Fixed stock overview dynamic < min. stock amount background handling 2021-08-21 20:20:16 +02:00
stocksettings.js Squashed commit 2021-07-13 19:29:23 +02:00
taskcategories.js Squashed commit 2020-12-07 19:48:33 +01:00
taskcategoryform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
taskform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
tasks.js Fixed /tasks group by category (fixes #1274) 2021-06-28 19:31:27 +02:00
taskssettings.js Improved number input initial value decimal handling 2020-11-15 14:15:09 +01:00
transfer.js Don't apply the barocde qu_id if empty (fixes #1619) 2021-09-19 10:07:25 +02:00
userentities.js Squashed commit 2020-12-07 19:48:33 +01:00
userentityform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
userfieldform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
userfields.js Squashed commit 2020-12-07 19:48:33 +01:00
userform.js Workaround for file upload problem when the file name contains Umlaute (seems to be a Linux only issue, fixes #1382) 2021-07-09 21:23:04 +02:00
userobjectform.js Prevent form submit when any combobox-dropdown is open (fixes #1236) 2020-12-31 13:45:14 +01:00
userobjects.js Squashed commit 2020-12-07 19:48:33 +01:00
userpermissions.js Use better confirm dialog 2020-12-22 10:05:06 +01:00
users.js Squashed commit 2020-12-07 19:48:33 +01:00
usersettings.js Improved number input initial value decimal handling 2020-11-15 14:15:09 +01:00