mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-25 15:58:56 +01:00
Compare commits
7 Commits
4eeeed12d8
...
0662ba11d7
Author | SHA1 | Date | |
---|---|---|---|
|
0662ba11d7 | ||
|
bbd0825f6a | ||
|
bee21f02da | ||
|
058c76fb45 | ||
|
c808e25967 | ||
|
4661a184b0 | ||
|
6e846483f2 |
@ -15,7 +15,7 @@
|
|||||||
}],
|
}],
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.4|^8.1",
|
"php": "^8.1|^8.3",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
@ -149,7 +149,7 @@
|
|||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"platform-check": false,
|
"platform-check": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "8.1.27"
|
"php": "8.1.28"
|
||||||
},
|
},
|
||||||
"allow-plugins": {
|
"allow-plugins": {
|
||||||
"kylekatarnls/update-helper": true
|
"kylekatarnls/update-helper": true
|
||||||
|
@ -105,7 +105,7 @@ switch (post('op')) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$segment = $dbo->selectOne('zz_segments_lang', 'title', ['id_record' => $_SESSION['module_'.$id_module]['id_segment']])['name'];
|
$segment = $dbo->selectOne('zz_segments_lang', 'title', ['id_record' => $_SESSION['module_'.$id_module]['id_segment']])['title'];
|
||||||
|
|
||||||
if ($segment != 'Tutti') {
|
if ($segment != 'Tutti') {
|
||||||
$operations['copy_listino'] = [
|
$operations['copy_listino'] = [
|
||||||
|
@ -159,7 +159,7 @@ echo '
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="width:20%;">'.tr('Banca accredito').'</th>
|
<th style="width:20%;">'.tr('Banca accredito').'</th>
|
||||||
<th style="width:20%;">'.tr('Banca addebito').'</th>
|
<th style="width:20%;">'.tr('Banca addebito').'</th>
|
||||||
<th style="width:20%;">'.tr('Tipologia').'</th>
|
<th style="width:20%;">'.tr('Metodo di pagamento').'</th>
|
||||||
<th style="width:10%;">'.tr('Data').'</th>
|
<th style="width:10%;">'.tr('Data').'</th>
|
||||||
<th style="width:10%;">'.tr('Data concordata').'</th>
|
<th style="width:10%;">'.tr('Data concordata').'</th>
|
||||||
<th style="width:10%;">'.tr('Importo').'</th>
|
<th style="width:10%;">'.tr('Importo').'</th>
|
||||||
|
@ -29,8 +29,7 @@ switch (post('op')) {
|
|||||||
'_NAME_' => $nome,
|
'_NAME_' => $nome,
|
||||||
]));
|
]));
|
||||||
} else {
|
} else {
|
||||||
$record->nome = $nome;
|
$dbo->query('UPDATE `in_tags` SET `name`='.prepare($nome).' WHERE `in_tags`.`id`='.prepare($id_record));
|
||||||
$record->save();
|
|
||||||
|
|
||||||
flash()->info(tr('Informazioni salvate correttamente!'));
|
flash()->info(tr('Informazioni salvate correttamente!'));
|
||||||
}
|
}
|
||||||
@ -54,10 +53,17 @@ switch (post('op')) {
|
|||||||
flash()->info(tr('Nuovo tag aggiunto!'));
|
flash()->info(tr('Nuovo tag aggiunto!'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isAjaxRequest()) {
|
||||||
|
echo json_encode([
|
||||||
|
'id' => $id_record,
|
||||||
|
'text' => $nome,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
$dbo->query('DELETE `in_tags` WHERE `in_tags`.`id`='.prepare($id_record));
|
$dbo->query('DELETE FROM `in_tags` WHERE `in_tags`.`id`='.prepare($id_record));
|
||||||
|
|
||||||
flash()->info(tr('Tag eliminato!'));
|
flash()->info(tr('Tag eliminato!'));
|
||||||
|
|
||||||
|
@ -29,3 +29,44 @@ include_once __DIR__.'/../../core.php';
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$elementi = $dbo->fetchArray('SELECT `in_interventi`.`id`, `codice` FROM `in_interventi_tags` INNER JOIN `in_interventi` ON `in_interventi_tags`.`id_intervento`=`in_interventi`.`id` WHERE `id_tag`='.prepare($id_record));
|
||||||
|
|
||||||
|
if (!empty($elementi)) {
|
||||||
|
echo '
|
||||||
|
<div class="box box-warning collapsable collapsed-box">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<h3 class="box-title"><i class="fa fa-warning"></i> '.tr('Attività collegate: _NUM_', [
|
||||||
|
'_NUM_' => count($elementi),
|
||||||
|
]).'</h3>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
|
<ul>';
|
||||||
|
|
||||||
|
foreach ($elementi as $elemento) {
|
||||||
|
$descrizione = tr('Attività _CODICE_', [
|
||||||
|
'_CODICE_' => $elemento['codice'],
|
||||||
|
]);
|
||||||
|
$modulo = 'Attività';
|
||||||
|
$id = $elemento['id'];
|
||||||
|
|
||||||
|
echo '
|
||||||
|
<li>'.Modules::link($modulo, $id, $descrizione).'</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>';
|
||||||
|
} else {
|
||||||
|
echo '
|
||||||
|
<a class="btn btn-danger ask" data-backto="record-list">
|
||||||
|
<i class="fa fa-trash"></i> '.tr('Elimina').'
|
||||||
|
</a>';
|
||||||
|
}
|
||||||
|
@ -386,7 +386,7 @@ class FatturaElettronica
|
|||||||
$cliente = $this->getCliente();
|
$cliente = $this->getCliente();
|
||||||
|
|
||||||
// Inizializzazione libreria per la generazione della fattura in XML
|
// Inizializzazione libreria per la generazione della fattura in XML
|
||||||
$fattura = new FluidXml(null, ['stylesheet' => 'http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2.1/fatturaPA_v1.2.1.xsl']);
|
$fattura = new FluidXml(null, ['stylesheet' => 'https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Foglio_di_stile_fattura_ordinaria_ver1.2.2.xsl']);
|
||||||
|
|
||||||
// Generazione dell'elemento root
|
// Generazione dell'elemento root
|
||||||
$fattura->namespace('p', 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2');
|
$fattura->namespace('p', 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2');
|
||||||
|
@ -68,7 +68,7 @@ echo '
|
|||||||
<p><small><b>'.tr('Cliente').':</b> '.$intervento->anagrafica->ragione_sociale.'</small></p>
|
<p><small><b>'.tr('Cliente').':</b> '.$intervento->anagrafica->ragione_sociale.'</small></p>
|
||||||
<p><small><b>'.tr('Stato').':</b> '.$intervento->stato->getTranslation('title').'</small></p>
|
<p><small><b>'.tr('Stato').':</b> '.$intervento->stato->getTranslation('title').'</small></p>
|
||||||
<p><small><b>'.tr('Data richiesta').':</b> '.dateFormat($intervento->data_richiesta).'</small></p>
|
<p><small><b>'.tr('Data richiesta').':</b> '.dateFormat($intervento->data_richiesta).'</small></p>
|
||||||
<p><small><b>'.tr('Richiesta').':</b> '.$intervento->richiesta.'</p>';
|
<p><small><b>'.tr('Richiesta').':</b> '.strip_tags($intervento->richiesta).'</p>';
|
||||||
if ($intervento->descrizione) {
|
if ($intervento->descrizione) {
|
||||||
echo '
|
echo '
|
||||||
<p><b>'.tr('Descrizione').':</b> '.$intervento->descrizione.'</small></p>';
|
<p><b>'.tr('Descrizione').':</b> '.$intervento->descrizione.'</small></p>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user