mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Also copy treat_opened_as_out_of_stock when copying a product (#2501)
This commit is contained in:
parent
5167ba1154
commit
8f9b295e68
@ -14,6 +14,7 @@
|
|||||||
- This executes the configured barcode lookup plugin with the given barcode
|
- This executes the configured barcode lookup plugin with the given barcode
|
||||||
- If the lookup was successful, the product edit page of the created product is displayed, where the product setup can be completed (if required)
|
- If the lookup was successful, the product edit page of the created product is displayed, where the product setup can be completed (if required)
|
||||||
- After that, the transaction is continued with that product
|
- After that, the transaction is continued with that product
|
||||||
|
- Fixed that when copying a product, the field "Treat opened as out of stock" wasn't copied along
|
||||||
|
|
||||||
### Shopping list
|
### Shopping list
|
||||||
|
|
||||||
|
@ -454,6 +454,10 @@ if (Grocy.EditMode == "create" && GetUriParam("copy-of") != undefined)
|
|||||||
{
|
{
|
||||||
$("#move_on_open").prop("checked", true);
|
$("#move_on_open").prop("checked", true);
|
||||||
}
|
}
|
||||||
|
if (BoolVal(sourceProduct.treat_opened_as_out_of_stock))
|
||||||
|
{
|
||||||
|
$("#treat_opened_as_out_of_stock").prop("checked", true);
|
||||||
|
}
|
||||||
|
|
||||||
Grocy.FrontendHelpers.ValidateForm('product-form');
|
Grocy.FrontendHelpers.ValidateForm('product-form');
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user