Added a new product option "Should not be frozen" (closes #1320)

This commit is contained in:
Bernd Bestel
2021-07-12 19:27:21 +02:00
parent c048f403e6
commit 8cb8611b4f
5 changed files with 62 additions and 27 deletions

View File

@@ -78,6 +78,11 @@
if (parseInt($("#location_id_from option:selected").attr("data-is-freezer")) === 0 && parseInt($("#location_id_to option:selected").attr("data-is-freezer")) === 1) // Frozen
{
toastr.info('<span>' + __t("Frozen") + "</span> <i class='fas fa-snowflake'></i>");
if (BoolVal(productDetails.product.should_not_be_frozen))
{
toastr.warning(__t("This product shouldn't be frozen"));
}
}
if (parseInt($("#location_id_from option:selected").attr("data-is-freezer")) === 1 && parseInt($("#location_id_to option:selected").attr("data-is-freezer")) === 0) // Thawed
{