Merge branch 'Warehouse/improve3' into 'master'
improved new features See merge request fronk/thetool!1282
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user