improved new features
This commit is contained in:
@@ -67,8 +67,8 @@ class WarehouseArticleDistributorController extends TTCrud {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function afterDelete($postData) {
|
protected function afterDelete($postData) {
|
||||||
WarehouseArticleController::updateCheapestPurchasePrice($postData["id"]);
|
WarehouseArticleController::updateCheapestPurchasePrice($postData["articleId"]);
|
||||||
WarehouseArticleController::updateSellPrices($postData["id"]);
|
WarehouseArticleController::updateSellPrices($postData["articleId"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getHistoryAction() {
|
protected function getHistoryAction() {
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ Vue.component('warehouse-article-distributor', {
|
|||||||
await this.fetchArticleDistributors();
|
await this.fetchArticleDistributors();
|
||||||
},
|
},
|
||||||
async deleteDistributor(distributorId) {
|
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();
|
await this.fetchArticleDistributors();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user