2928-entry_latestsbuys_weight #660

Merged
joan merged 2 commits from 2928-entry_latestsbuys_weight into dev 2021-06-16 11:18:30 +00:00
1 changed files with 5 additions and 1 deletions

View File

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