diff --git a/modules/contratti/edit.php b/modules/contratti/edit.php index ee29eaaf6..cfb33c9d2 100644 --- a/modules/contratti/edit.php +++ b/modules/contratti/edit.php @@ -27,10 +27,10 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica']; ".tr('Rinnova').'... '; } - - echo Prints::getDropdown($id_module, $id_record); - ?> + + {( "name": "button", "type": "print", "id_module": "", "id_record": "" )} +

@@ -51,8 +51,9 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
{[ "type": "select", "label": "", "name": "idagente", "values": "query=SELECT an_anagrafiche.idanagrafica AS id, ragione_sociale AS descrizione FROM an_anagrafiche INNER JOIN (an_tipianagrafiche_anagrafiche INNER JOIN an_tipianagrafiche ON an_tipianagrafiche_anagrafiche.idtipoanagrafica=an_tipianagrafiche.idtipoanagrafica) ON an_anagrafiche.idanagrafica=an_tipianagrafiche_anagrafiche.idanagrafica WHERE descrizione='Agente' AND deleted=0 ORDER BY ragione_sociale", "value": "$idagente$" ]}
@@ -117,8 +118,8 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
{[ "type": "number", "label": "", "name": "sconto_generico", "value": "$sconto_globale$", "help": "", "icon-after": "choice|untprc|$tipo_sconto_globale$" ]}
@@ -282,7 +283,6 @@ if ($records[0]['stato'] != 'Pagato') {
@@ -386,7 +386,7 @@ if (!empty($fatture)) {

'.tr('_NUM_ altr_I_ document_I_ collegat_I_', [ '_NUM_' => count($fatture), - '_I_' => (count($fatture)>1) ? tr('i') : tr('o') + '_I_' => (count($fatture) > 1) ? tr('i') : tr('o'), ]).':

@@ -149,7 +147,6 @@ if ($records[0]['stato'] != 'Evaso') { @@ -158,18 +155,16 @@ if ($records[0]['stato'] != 'Evaso') { ... + + {( "name": "button", "type": "print", "id_module": "", "id_record": "" )}
@@ -206,9 +201,9 @@ if (!empty($fatture)) { echo '

'.tr('_NUM_ altr_I_ document_I_ collegat_I_', [ - '_NUM_' => count($fatture), - '_I_' => (count($fatture)>1) ? tr('i') : tr('o') - ]).':

+ '_NUM_' => count($fatture), + '_I_' => (count($fatture) > 1) ? tr('i') : tr('o'), + ]).':

'; $label = tr('Numero secondario'); } else { - $label = tr('Numero fattura'); + $label = tr('Numero fattura'); } ?>
@@ -302,7 +302,7 @@ if ($records[0]['stato'] != 'Pagato' && $records[0]['stato'] != 'Emessa') { Riga generica '; - + echo ' Descrizione @@ -339,7 +339,7 @@ if ($dir == 'entrata') { echo "
Prima di procedere alla stampa completa i seguenti campi dell'anagrafica:
".implode(', ', $campi_mancanti).'
'.Modules::link('Anagrafiche', $records[0]['idanagrafica'], tr('Vai alla scheda anagrafica'), null).'
'; } else { - echo Prints::getDropdown($id_module, $id_record); + echo '{( "name": "button", "type": "print", "id_module": "'.$id_module.'", "id_record": "'.$id_record.'" )}'; } } } diff --git a/modules/interventi/edit.php b/modules/interventi/edit.php index 961dc11c5..655fc49ad 100644 --- a/modules/interventi/edit.php +++ b/modules/interventi/edit.php @@ -34,9 +34,8 @@ if (empty($records[0]['firma_file'])) {
- + {( "name": "button", "type": "print", "id_module": "", "id_record": "" )} +
 
@@ -310,7 +309,7 @@ if (!empty($fatture)) {

'.tr('_NUM_ altr_I_ document_I_ collegat_I_', [ '_NUM_' => count($fatture), - '_I_' => (count($fatture)>1) ? tr('i') : tr('o') + '_I_' => (count($fatture) > 1) ? tr('i') : tr('o'), ]).':


@@ -137,7 +136,7 @@ if (!empty($elementi)) {

'.tr('_NUM_ altr_I_ document_I_ collegat_I_', [ '_NUM_' => count($elementi), - '_I_' => (count($elementi)>1) ? tr('i') : tr('o') + '_I_' => (count($elementi) > 1) ? tr('i') : tr('o'), ]).':