Merge branch 'Warehouse/improve3' into 'master'

improved new features

See merge request fronk/thetool!1282
This commit is contained in:
Luca Haid
2025-04-29 12:17:00 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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() {

View File

@@ -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();
}
},