Merge pull request 'feat: refs #7670 addSale' (!2679) from 7670-addSaleRenewPrice into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2679 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
58f8b4f714
|
@ -70,7 +70,7 @@ module.exports = Self => {
|
||||||
quantity: quantity
|
quantity: quantity
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
await Self.rawSql('CALL vn.sale_calculateComponent(?, NULL)', [newSale.id], myOptions);
|
await Self.rawSql('CALL vn.sale_calculateComponent(?, ?)', [newSale.id, 'renewPrices'], myOptions);
|
||||||
await Self.rawSql('CALL vn.ticket_recalc(?, NULL)', [id], myOptions);
|
await Self.rawSql('CALL vn.ticket_recalc(?, NULL)', [id], myOptions);
|
||||||
|
|
||||||
const sale = await models.Sale.findById(newSale.id, {
|
const sale = await models.Sale.findById(newSale.id, {
|
||||||
|
|
Loading…
Reference in New Issue