Fix sui consuntivi di preventivi e contratti. Rimosse stampe ordini di servizio

This commit is contained in:
Fabio Lovato 2018-08-08 19:00:19 +02:00
parent f277086aba
commit 149566fbf5
6 changed files with 25 additions and 25 deletions

View File

@ -71,7 +71,7 @@ if (!empty($rsi)) {
</td>
<td class="text-right">
'.Translator::numberToLocale($int['totale']).'
'.Translator::numberToLocale($int['totale_scontato']).'
</td>
</tr>';
@ -203,7 +203,7 @@ if (!empty($rsi)) {
$totale_km += $int['km'];
$totale_costo += $int['totale_costo'];
$totale_addebito += $int['totale_addebito'];
$totale += $int['totale'];
$totale += $int['totale_scontato'];
}
// Totali

View File

@ -150,16 +150,15 @@ switch (post('op')) {
$operations = [
'delete-bulk' => tr('Elimina selezionati'),
];
$operations['crea_fattura'] = [
'text' => tr('Crea fattura'),
'data' => [
'msg' => tr('Vuoi davvero creare una fattura per questi interventi?'),
'button' => tr('Procedi'),
'class' => 'btn btn-lg btn-warning',
'blank' => false,
],
'crea_fattura' => [
'text' => tr('Crea fattura'),
'data' => [
'msg' => tr('Vuoi davvero creare una fattura per questi interventi?'),
'button' => tr('Procedi'),
'class' => 'btn btn-lg btn-warning',
'blank' => false,
],
]
];
return $operations;

View File

@ -87,13 +87,10 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
<div class="col-md-3">
{[ "type": "select", "label": "<?php echo tr('Tipo di attività'); ?>", "name": "idtipointervento", "required": 1, "values": "query=SELECT idtipointervento AS id, descrizione FROM in_tipiintervento ORDER BY descrizione", "value": "$idtipointervento$" ]}
</div>
<!--div class="col-md-3">
{[ "type": "select", "label": "<?php echo tr('Iva'); ?>", "name": "idiva", "values": "query=SELECT id, descrizione FROM co_iva ORDER BY descrizione ASC", "value": "$idiva$" ]}
</div-->
<div class="col-md-3">
<!--div class="col-md-3">
{[ "type": "select", "label": "<?php echo tr('Resa materiale'); ?>", "name": "idporto", "values": "query=SELECT id, descrizione FROM dt_porto ORDER BY descrizione", "value": "$idporto$" ]}
</div>
</div-->
</div>
<div class="row">

View File

@ -73,7 +73,7 @@ if (!empty($rsi)) {
</td>
<td class="text-right">
'.Translator::numberToLocale($int['totale']).'
'.Translator::numberToLocale($int['totale_scontato']).'
</td>
</tr>';
@ -205,7 +205,7 @@ if (!empty($rsi)) {
$totale_km += $int['km'];
$totale_costo += $int['totale_costo'];
$totale_addebito += $int['totale_addebito'];
$totale += $int['totale'];
$totale += $int['totale_scontato'];
}
// Totali

View File

@ -29,7 +29,8 @@ echo '
<td colspan=2 class="border-full" style="height:16mm;">
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
<p>$c_ragionesociale$</p>
<p>$c_indirizzo$ $c_citta_full$</p>
<p>$c_indirizzo$</p>
<p>$c_citta_full$</p>
</td>
</tr>
@ -185,7 +186,7 @@ foreach ($righe as $r) {
$sconto = sum($sconto);
$imponibile = sum($imponibile);
$iva = sum($iva, null, 2);
$iva = sum($iva);
$totale = $imponibile - $sconto;
@ -269,8 +270,9 @@ $rs = $dbo->fetchArray('SELECT * FROM co_pagamenti WHERE id = '.$records[0]['idp
$pagamento = $rs[0]['descrizione'];
// Lettura resa
$rs = $dbo->fetchArray('SELECT * FROM dt_porto WHERE id = '.$records[0]['idporto']);
$resa_materiale = $rs[0]['descrizione'];
//$rs = $dbo->fetchArray('SELECT * FROM dt_porto WHERE id = '.$records[0]['idporto']);
//$resa_materiale = $rs[0]['descrizione'];
echo '
<table class="table table-bordered">
@ -290,7 +292,7 @@ echo '
</td>
</tr>
<tr>
<!--tr>
<th>
'.tr('Resa materiale', [], ['upper' => true]).'
</th>
@ -298,7 +300,7 @@ echo '
<td>
'.$resa_materiale.'
</td>
</tr>
</tr-->
<tr>
<th>

View File

@ -478,3 +478,5 @@ INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `
(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Tipi di intervento'), 'Tempo standard', 'in_tipiintervento.tempo_standard', 10, 1, 0, 1, '', '', 0, 0, 0);
-- Disabilito temporaneamente le stampe degli ordini di servizio, plugins disabilitati
UPDATE `zz_prints` SET `enabled` = 0 WHERE `name` IN( 'Ordine di servizio', 'Ordine di servizio (senza costi)' );