mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +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) {
|
||||
$operations['ricerca-coordinate'] = [
|
||||
'text' => '<span><i class="fa fa-map"></i> '.tr('Ricerca coordinate').'</span>',
|
||||
|
@ -20,7 +20,6 @@
|
||||
namespace Modules\Articoli\Export;
|
||||
|
||||
use Exporter\CSVExporter;
|
||||
use Modules\Anagrafiche\Anagrafica;
|
||||
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
|
||||
foreach ($sconti as $sconto) {
|
||||
$tipo_sconto = !empty($sconto['Importo']) ? 'UNT' : 'PRC';
|
||||
if(!empty($tipo) && $tipo_sconto!=$tipo){
|
||||
if (!empty($tipo) && $tipo_sconto != $tipo) {
|
||||
$tipo = 'UNT';
|
||||
} else{
|
||||
} else {
|
||||
$tipo = $tipo_sconto;
|
||||
}
|
||||
}
|
||||
@ -251,17 +251,17 @@ class FatturaOrdinaria extends FatturaElettronica
|
||||
'qta' => $obj->qta,
|
||||
'cumulativo' => false,
|
||||
]);
|
||||
|
||||
if($tipo == 'PRC'){
|
||||
|
||||
if ($tipo == 'PRC') {
|
||||
$tot_sconto = $sconto_calcolato * 100 / $obj->imponibile;
|
||||
} else {
|
||||
$tot_sconto = $sconto_calcolato;
|
||||
}
|
||||
} else{
|
||||
} else {
|
||||
$tot_sconto = $sconto_riga;
|
||||
}
|
||||
|
||||
$sconto_unitario += $tot_sconto;
|
||||
$sconto_unitario += $tot_sconto;
|
||||
}
|
||||
|
||||
$obj->setSconto($sconto_unitario, $tipo);
|
||||
|
@ -74,7 +74,7 @@ echo '
|
||||
|
||||
$counter = 0;
|
||||
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));
|
||||
|
||||
echo '
|
||||
|
@ -138,7 +138,7 @@ class Intervento extends Resource implements UpdateInterface
|
||||
// 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'])) {
|
||||
$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'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user