mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fix more undos
This commit is contained in:
parent
25c16f4f28
commit
8ba4749e61
12
js/grocy.js
12
js/grocy.js
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user