- aggiunta campi Gas data + fix

This commit is contained in:
Surya Paolo
2023-12-28 23:48:03 +01:00
parent c001587702
commit 5afe9dd1e2
9 changed files with 26 additions and 21 deletions

View File

@@ -258,6 +258,9 @@ module.exports.getOrderByID = function (id, callback) {
module.exports.createOrder = async function (order) {
try {
if (order.idGasordine === '') {
order.idGasordine = undefined;
}
Order.updateTotals(order);
return await Order.create(order)
.then((ris) => {