From e5cb3e2b9aeab14b72b0a50a4f47fee62229b584 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 22 Oct 2021 12:52:42 +0200 Subject: [PATCH] Set date a null negli ordini se non inserite --- modules/ordini/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ordini/actions.php b/modules/ordini/actions.php index c36c2bc34..efe959560 100755 --- a/modules/ordini/actions.php +++ b/modules/ordini/actions.php @@ -84,7 +84,7 @@ switch (post('op')) { $ordine->idanagrafica = post('idanagrafica'); $ordine->idreferente = post('idreferente'); - $ordine->data = post('data'); + $ordine->data = post('data') ?: null; $ordine->numero = post('numero'); $ordine->numero_esterno = post('numero_esterno'); $ordine->note = post('note'); @@ -103,7 +103,7 @@ switch (post('op')) { $ordine->ritenutaacconto = 0; $ordine->numero_cliente = post('numero_cliente'); - $ordine->data_cliente = post('data_cliente'); + $ordine->data_cliente = post('data_cliente') ?: null; $ordine->id_documento_fe = post('numero_cliente'); $ordine->codice_commessa = post('codice_commessa');