This commit is contained in:
parent
8d9dcb1f3e
commit
55b53c86c4
|
@ -123,8 +123,7 @@ module.exports = Self => {
|
||||||
const {Supplier} = Self.app.models;
|
const {Supplier} = Self.app.models;
|
||||||
|
|
||||||
const supplier = await Supplier.findById(id, null, ctx.options);
|
const supplier = await Supplier.findById(id, null, ctx.options);
|
||||||
if (supplier)
|
await supplier?.updateAttribute('account', Number(supplier.account) + id, ctx.options);
|
||||||
await supplier.updateAttribute('account', Number(supplier.account) + id, ctx.options);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue