Merge pull request '2928-entry_latestsbuys_weight' (#660) from 2928-entry_latestsbuys_weight into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #660
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2021-06-16 11:18:28 +00:00
commit c8d378cc36
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)