editLatestsBuys now is called only with id and itemFk

This commit is contained in:
Carlos Jimenez Ruiz 2021-06-16 12:29:40 +02:00
parent 47c9071bdb
commit 588a499c44
1 changed files with 5 additions and 1 deletions

View File

@ -59,10 +59,14 @@ export default class Controller extends Section {
}
onEditAccept() {
const rowsToEdit = [];
for (let row of this.checked)
rowsToEdit.push({id: row.id, itemFk: row.itemFk});
let data = {
field: this.editedColumn.field,
newValue: this.editedColumn.newValue,
lines: this.checked
lines: rowsToEdit
};
return this.$http.post('Buys/editLatestBuys', data)