From 9024c225fd2624c3c35217ebb998f6db31b70fc4 Mon Sep 17 00:00:00 2001 From: Sergio Sanchis Climent <sergiosanchis@hotmail.com> Date: Tue, 4 Oct 2016 00:33:34 +0200 Subject: [PATCH] FIX: updateligne if $txlocaltax1 is null --- htdocs/contrat/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index c323fbf5cc5..c855f2165a8 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -680,8 +680,8 @@ if (empty($reshook)) $objectline->qty=GETPOST('elqty'); $objectline->remise_percent=GETPOST('elremise_percent'); $objectline->tva_tx=GETPOST('eltva_tx')?GETPOST('eltva_tx'):0; // Field may be disabled, so we use vat rate 0 - $objectline->localtax1_tx=$localtax1_tx; - $objectline->localtax2_tx=$localtax2_tx; + $objectline->localtax1_tx=is_numeric($localtax1_tx)?$localtax1_tx:0; + $objectline->localtax2_tx=is_numeric($localtax2_tx)?$localtax2_tx:0; $objectline->date_ouverture_prevue=$date_start_update; $objectline->date_ouverture=$date_start_real_update; $objectline->date_fin_validite=$date_end_update; -- GitLab