More undo window messages

This commit is contained in:
Katharina Bogad 2021-06-26 00:26:58 +02:00
parent 8ba4749e61
commit 61dbf171ac

View File

@ -436,6 +436,18 @@ class GrocyClass
function()
{
toastr.success(self.translate("Booking successfully undone"));
self.Api.Get('stock/transactions/' + transactionId.toString(),
function(result)
{
if (result[0].product_id !== undefined)
window.postMessage(WindowMessageBag("ProductChanged", result[0].product_id), self.BaseUrl);
},
function(xhr)
{
console.error(xhr);
}
);
},
function(xhr)
{