Merge pull request '2928-entry_latestsbuys_weight' (#660) from 2928-entry_latestsbuys_weight into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #660 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
c8d378cc36
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue