Merge branch 'master' into 2.4
@ -213,6 +213,8 @@ if (!empty($result_query) && $result_query != 'menu' && $result_query != 'custom
|
|||||||
$attributes[] = $key.'="'.$val.'"';
|
$attributes[] = $key.'="'.$val.'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Replace rootdir per le query
|
||||||
|
$value = str_replace('ROOTDIR', ROOTDIR, $value);
|
||||||
$result[] = str_replace('|attr|', implode(' ', $attributes), '<div |attr|>'.$value.'</div>');
|
$result[] = str_replace('|attr|', implode(' ', $attributes), '<div |attr|>'.$value.'</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "devcode/openstamanager",
|
"name": "devcode/openstamanager",
|
||||||
"description": "Gestionale open-source per assistenza tecnica e fatturazione",
|
"description": "Gestionale open-source per assistenza tecnica e fatturazione",
|
||||||
"version": "2.4.0",
|
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"gestionale",
|
"gestionale",
|
||||||
"assistenza tecnica",
|
"assistenza tecnica",
|
||||||
"fatturazione"
|
"fatturazione"
|
||||||
],
|
],
|
||||||
"homepage": "http://openstamanager.com/",
|
"homepage": "https://www.openstamanager.com/",
|
||||||
"authors": [{
|
"authors": [{
|
||||||
"name": "Fabio Lovato",
|
"name": "Fabio Lovato",
|
||||||
"email": "info@openstamanager.com"
|
"email": "info@openstamanager.com"
|
||||||
|
@ -261,7 +261,7 @@ if ($fornitore) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{[ "type": "number", "label": "<?php echo tr('Capitale sociale'); ?>", "name": "capitale_sociale", "decimals": 0, "value": "$capitale_sociale$", "icon-after":"€" ]}
|
{[ "type": "text", "label": "<?php echo tr('Capitale sociale'); ?>", "name": "capitale_sociale", "value": "$capitale_sociale$" ]}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -17,8 +17,9 @@ $idsede = filter('idsede');
|
|||||||
$impianti = [];
|
$impianti = [];
|
||||||
|
|
||||||
if (!empty($idanagrafica)) {
|
if (!empty($idanagrafica)) {
|
||||||
$rs = $dbo->fetchArray('SELECT idtipointervento_default FROM an_anagrafiche WHERE idanagrafica='.prepare($idanagrafica));
|
$rs = $dbo->fetchArray('SELECT idtipointervento_default, idzona FROM an_anagrafiche WHERE idanagrafica='.prepare($idanagrafica));
|
||||||
$idtipointervento = $rs[0]['idtipointervento_default'];
|
$idtipointervento = $rs[0]['idtipointervento_default'];
|
||||||
|
$idzona = $rs[0]['idzona'];
|
||||||
$idstatointervento = 'WIP';
|
$idstatointervento = 'WIP';
|
||||||
$richiesta = filter('richiesta');
|
$richiesta = filter('richiesta');
|
||||||
}
|
}
|
||||||
@ -38,8 +39,9 @@ $idordineservizio = filter('idordineservizio');
|
|||||||
$idcontratto_riga = filter('idcontratto_riga');
|
$idcontratto_riga = filter('idcontratto_riga');
|
||||||
|
|
||||||
if (!empty($idcontratto) && !empty($idordineservizio)) {
|
if (!empty($idcontratto) && !empty($idordineservizio)) {
|
||||||
$rs = $dbo->fetchArray('SELECT * FROM co_contratti WHERE id='.prepare($idcontratto));
|
$rs = $dbo->fetchArray('SELECT *, (SELECT idzona FROM an_anagrafiche WHERE idanagrafica = co_contratti.idanagrafica) AS idzona FROM co_contratti WHERE id='.prepare($idcontratto));
|
||||||
$idanagrafica = $rs[0]['idanagrafica'];
|
$idanagrafica = $rs[0]['idanagrafica'];
|
||||||
|
$idzona = $rs[0]['idzona'];
|
||||||
|
|
||||||
// Info riga pianificata
|
// Info riga pianificata
|
||||||
$rs = $dbo->fetchArray('SELECT * FROM co_ordiniservizio WHERE idcontratto='.prepare($idcontratto).' AND id='.prepare($idordineservizio));
|
$rs = $dbo->fetchArray('SELECT * FROM co_ordiniservizio WHERE idcontratto='.prepare($idcontratto).' AND id='.prepare($idordineservizio));
|
||||||
@ -57,8 +59,9 @@ if (!empty($idcontratto) && !empty($idordineservizio)) {
|
|||||||
|
|
||||||
// Se sto pianificando un contratto, leggo tutti i dati del contratto per predisporre l'aggiunta intervento
|
// Se sto pianificando un contratto, leggo tutti i dati del contratto per predisporre l'aggiunta intervento
|
||||||
elseif (!empty($idcontratto) && !empty($idcontratto_riga)) {
|
elseif (!empty($idcontratto) && !empty($idcontratto_riga)) {
|
||||||
$rs = $dbo->fetchArray('SELECT * FROM co_contratti WHERE id='.prepare($idcontratto));
|
$rs = $dbo->fetchArray('SELECT *, (SELECT idzona FROM an_anagrafiche WHERE idanagrafica = co_contratti.idanagrafica) AS idzona FROM co_contratti WHERE id='.prepare($idcontratto));
|
||||||
$idanagrafica = $rs[0]['idanagrafica'];
|
$idanagrafica = $rs[0]['idanagrafica'];
|
||||||
|
$idzona = $rs[0]['idzona'];
|
||||||
|
|
||||||
// Info riga pianificata
|
// Info riga pianificata
|
||||||
$rs = $dbo->fetchArray('SELECT * FROM co_righe_contratti WHERE idcontratto='.prepare($idcontratto).' AND id='.prepare($idcontratto_riga));
|
$rs = $dbo->fetchArray('SELECT * FROM co_righe_contratti WHERE idcontratto='.prepare($idcontratto).' AND id='.prepare($idcontratto_riga));
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "openstamanager",
|
"name": "openstamanager",
|
||||||
"description": "Gestionale open-source per assistenza tecnica e fatturazione",
|
"description": "Gestionale open-source per assistenza tecnica e fatturazione",
|
||||||
"version": "2.3.0",
|
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"open-source",
|
"open-source",
|
||||||
@ -9,7 +8,7 @@
|
|||||||
"assistenza tecnica",
|
"assistenza tecnica",
|
||||||
"fatturazione"
|
"fatturazione"
|
||||||
],
|
],
|
||||||
"homepage": "http://openstamanager.com/",
|
"homepage": "https://www.openstamanager.com/",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Fabio Lovato",
|
"name": "Fabio Lovato",
|
||||||
"email": "info@openstamanager.com"
|
"email": "info@openstamanager.com"
|
||||||
|
@ -27,7 +27,7 @@ return '
|
|||||||
<p>'.$f_citta_full.'</p>
|
<p>'.$f_citta_full.'</p>
|
||||||
<p>'.(!empty($f_piva) ? tr('P.Iva').': '.$f_piva : '').'</p>
|
<p>'.(!empty($f_piva) ? tr('P.Iva').': '.$f_piva : '').'</p>
|
||||||
<p>'.(!empty($f_codicefiscale) ? tr('C.F.').': '.$f_codicefiscale : '').'</p>
|
<p>'.(!empty($f_codicefiscale) ? tr('C.F.').': '.$f_codicefiscale : '').'</p>
|
||||||
<p>'.(!empty($f_capsoc) ? tr('Cap.Soc.').': '.$f_capsoc.' €' : '').'</p>
|
<p>'.(!empty($f_capsoc) ? tr('Cap.Soc.').': '.$f_capsoc : '').'</p>
|
||||||
<p>'.(!empty($f_telefono) ? tr('Tel').': '.$f_telefono : '').'</p>
|
<p>'.(!empty($f_telefono) ? tr('Tel').': '.$f_telefono : '').'</p>
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB |
@ -119,8 +119,6 @@ $files = [
|
|||||||
'templates/contratti/contratto.html',
|
'templates/contratti/contratto.html',
|
||||||
'templates/preventivo/preventivo_body.html',
|
'templates/preventivo/preventivo_body.html',
|
||||||
'templates/preventivo/preventivo.html',
|
'templates/preventivo/preventivo.html',
|
||||||
'locale/it/it.po',
|
|
||||||
'locale/it/it.mo',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($files as $key => $value) {
|
foreach ($files as $key => $value) {
|
||||||
|