Add purchased date to inventory (#1102)

* Add purchased date to inventory

* Clarify stock settings label

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
kriddles
2020-10-29 11:04:34 -05:00
committed by GitHub
parent fb17c57dd3
commit 9bbcdafab9
6 changed files with 35 additions and 7 deletions

View File

@@ -25,6 +25,10 @@
{
jsonData.location_id = Grocy.Components.LocationPicker.GetValue();
}
if (Grocy.UserSettings.show_purchased_date_on_purchase)
{
jsonData.purchased_date = Grocy.Components.DateTimePicker2.GetValue();
}
jsonData.price = price;