add purchased date to purchase (#1056)

This commit is contained in:
kriddles
2020-10-17 03:54:10 -05:00
committed by GitHub
parent 235b96d17f
commit cd65195532
6 changed files with 40 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
var jsonData = {};
jsonData.amount = amount;
jsonData.purchased_date = Grocy.Components.DateTimePicker2.GetValue();
if (Grocy.Components.DateTimePicker)
{
jsonData.best_before_date = Grocy.Components.DateTimePicker.GetValue();

View File

@@ -9,3 +9,7 @@ if (BoolVal(Grocy.UserSettings.show_icon_on_stock_overview_page_when_product_is_
{
$("#show_icon_on_stock_overview_page_when_product_is_on_shopping_list").prop("checked", true);
}
if (BoolVal(Grocy.UserSettings.product_display_purchased_date))
{
$("#product_display_purchased_date").prop("checked", true);
}