Fix more undos

This commit is contained in:
Katharina Bogad 2021-06-26 00:23:05 +02:00
parent 25c16f4f28
commit 8ba4749e61

View File

@ -451,6 +451,18 @@ class GrocyClass
function()
{
toastr.success(self.translate("Transaction 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)
{