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();