improved new features

This commit is contained in:
Luca Haid
2025-04-29 14:16:51 +02:00
parent f2dc7eae53
commit 7343571af7
2 changed files with 3 additions and 3 deletions
@@ -67,8 +67,8 @@ class WarehouseArticleDistributorController extends TTCrud {
}
protected function afterDelete($postData) {
WarehouseArticleController::updateCheapestPurchasePrice($postData["id"]);
WarehouseArticleController::updateSellPrices($postData["id"]);
WarehouseArticleController::updateCheapestPurchasePrice($postData["articleId"]);
WarehouseArticleController::updateSellPrices($postData["articleId"]);
}
protected function getHistoryAction() {
@@ -121,7 +121,7 @@ Vue.component('warehouse-article-distributor', {
await this.fetchArticleDistributors();
},
async deleteDistributor(distributorId) {
await this.window.handleApiResponse(axios.post(`${window['TT_CONFIG']['BASE_PATH']}/WarehouseArticleDistributor/delete`, {id: distributorId}));
await this.window.handleApiResponse(axios.post(`${window['TT_CONFIG']['BASE_PATH']}/WarehouseArticleDistributor/delete`, {id: distributorId, articleId: this.id}));
await this.fetchArticleDistributors();
}
},