mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a new product option default_purchase_price_type (closes #566)
This commit is contained in:
@@ -343,6 +343,15 @@ if (Grocy.Components.ProductPicker !== undefined)
|
||||
$("#stock_label_type").trigger("change");
|
||||
}
|
||||
|
||||
if (productDetails.product.default_purchase_price_type == 2)
|
||||
{
|
||||
$("#price-type-unit-price").click();
|
||||
}
|
||||
else if (productDetails.product.default_purchase_price_type == 3)
|
||||
{
|
||||
$("#price-type-total-price").click();
|
||||
}
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#display_amount').focus();
|
||||
|
Reference in New Issue
Block a user