From e9c207d8f9863b737c12962ecc95d26946b3e82e Mon Sep 17 00:00:00 2001 From: Bacca97 Date: Tue, 27 Mar 2018 18:34:49 +0200 Subject: [PATCH] Aggiunta creazione fattura da contratto --- modules/contratti/buttons.php | 13 +++++++++++++ modules/contratti/edit.php | 10 ++++++++++ modules/fatture/actions.php | 30 ++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/modules/contratti/buttons.php b/modules/contratti/buttons.php index 31e15d593..f0a2fd155 100644 --- a/modules/contratti/buttons.php +++ b/modules/contratti/buttons.php @@ -2,6 +2,19 @@ include_once __DIR__.'/../../core.php'; +$rs_documento = $dbo->fetchArray("SELECT * FROM co_righe_documenti WHERE idcontratto=".prepare($id_record)); +if(sizeof($rs_documento)>0){ + echo " + '; +}else{ + echo " + '; +} + if ($records[0]['rinnovabile']) { echo "