mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-13 01:50:46 +01:00
Stile del codice
This commit is contained in:
parent
17d5fd8df3
commit
324607a116
@ -102,7 +102,6 @@ $operations['export-csv'] = [
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
if (App::debug() && $google) {
|
if (App::debug() && $google) {
|
||||||
$operations['ricerca-coordinate'] = [
|
$operations['ricerca-coordinate'] = [
|
||||||
'text' => '<span><i class="fa fa-map"></i> '.tr('Ricerca coordinate').'</span>',
|
'text' => '<span><i class="fa fa-map"></i> '.tr('Ricerca coordinate').'</span>',
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
namespace Modules\Articoli\Export;
|
namespace Modules\Articoli\Export;
|
||||||
|
|
||||||
use Exporter\CSVExporter;
|
use Exporter\CSVExporter;
|
||||||
use Modules\Anagrafiche\Anagrafica;
|
|
||||||
use Modules\Articoli\Articolo;
|
use Modules\Articoli\Articolo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -229,9 +229,9 @@ class FatturaOrdinaria extends FatturaElettronica
|
|||||||
// Determina il tipo di sconto in caso di sconti misti UNT e PRC
|
// Determina il tipo di sconto in caso di sconti misti UNT e PRC
|
||||||
foreach ($sconti as $sconto) {
|
foreach ($sconti as $sconto) {
|
||||||
$tipo_sconto = !empty($sconto['Importo']) ? 'UNT' : 'PRC';
|
$tipo_sconto = !empty($sconto['Importo']) ? 'UNT' : 'PRC';
|
||||||
if(!empty($tipo) && $tipo_sconto!=$tipo){
|
if (!empty($tipo) && $tipo_sconto != $tipo) {
|
||||||
$tipo = 'UNT';
|
$tipo = 'UNT';
|
||||||
} else{
|
} else {
|
||||||
$tipo = $tipo_sconto;
|
$tipo = $tipo_sconto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -252,12 +252,12 @@ class FatturaOrdinaria extends FatturaElettronica
|
|||||||
'cumulativo' => false,
|
'cumulativo' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if($tipo == 'PRC'){
|
if ($tipo == 'PRC') {
|
||||||
$tot_sconto = $sconto_calcolato * 100 / $obj->imponibile;
|
$tot_sconto = $sconto_calcolato * 100 / $obj->imponibile;
|
||||||
} else {
|
} else {
|
||||||
$tot_sconto = $sconto_calcolato;
|
$tot_sconto = $sconto_calcolato;
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
$tot_sconto = $sconto_riga;
|
$tot_sconto = $sconto_riga;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ echo '
|
|||||||
|
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
while (!empty($id_contratto_precedente) && $counter < 50) {
|
while (!empty($id_contratto_precedente) && $counter < 50) {
|
||||||
$counter++;
|
++$counter;
|
||||||
$rs = $dbo->fetchArray('SELECT nome, numero, data_accettazione, data_conclusione, budget, idcontratto_prev FROM co_contratti WHERE id='.prepare($id_contratto_precedente));
|
$rs = $dbo->fetchArray('SELECT nome, numero, data_accettazione, data_conclusione, budget, idcontratto_prev FROM co_contratti WHERE id='.prepare($id_contratto_precedente));
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
@ -138,7 +138,7 @@ class Intervento extends Resource implements UpdateInterface
|
|||||||
// Fix id_cliente per Intervento in caso di generazione da zero
|
// Fix id_cliente per Intervento in caso di generazione da zero
|
||||||
if ($risorsa instanceof Interventi && !empty($this->response['cliente'][$id]) && !empty($this->response['cliente'][$id]['id'])) {
|
if ($risorsa instanceof Interventi && !empty($this->response['cliente'][$id]) && !empty($this->response['cliente'][$id]['id'])) {
|
||||||
$record['id_cliente'] = $this->response['cliente'][$id]['id'];
|
$record['id_cliente'] = $this->response['cliente'][$id]['id'];
|
||||||
} elseif (!($risorsa instanceof Clienti) && !empty($this->response['intervento'][0]) && !empty($this->response['intervento'][0]['id'])){
|
} elseif (!($risorsa instanceof Clienti) && !empty($this->response['intervento'][0]) && !empty($this->response['intervento'][0]['id'])) {
|
||||||
$record['id_intervento'] = $this->response['intervento'][0]['id'];
|
$record['id_intervento'] = $this->response['intervento'][0]['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user