Fix vari
This commit is contained in:
parent
af1535f784
commit
736c04890a
|
@ -136,7 +136,7 @@ switch (post('op')) {
|
|||
|
||||
$articolo->id_iva = post('idiva');
|
||||
|
||||
//$articolo->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$articolo->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$articolo->prezzo_unitario_vendita = post('prezzo');
|
||||
$articolo->sconto_unitario = post('sconto');
|
||||
$articolo->tipo_sconto = post('tipo_sconto');
|
||||
|
@ -194,7 +194,7 @@ switch (post('op')) {
|
|||
|
||||
$riga->id_iva = post('idiva');
|
||||
|
||||
//$riga->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$riga->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$riga->prezzo_unitario_vendita = post('prezzo');
|
||||
$riga->sconto_unitario = post('sconto');
|
||||
$riga->tipo_sconto = post('tipo_sconto');
|
||||
|
|
|
@ -82,7 +82,7 @@ foreach ($righe as $riga) {
|
|||
// Imponibile
|
||||
echo '
|
||||
<td class="text-right">
|
||||
'.moneyFormat($riga->imponibile_scontato).'
|
||||
'.moneyFormat($riga->totale_imponibile).'
|
||||
</td>';
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ class Contratto extends Document
|
|||
|
||||
public function fixBudget()
|
||||
{
|
||||
$this->budget = $this->imponibile_scontato ?: 0;
|
||||
$this->budget = $this->totale_imponibile ?: 0;
|
||||
}
|
||||
|
||||
public function save(array $options = [])
|
||||
|
|
|
@ -146,7 +146,7 @@ switch (post('op')) {
|
|||
|
||||
$articolo->id_iva = post('idiva');
|
||||
|
||||
//$articolo->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$articolo->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$articolo->prezzo_unitario_vendita = post('prezzo');
|
||||
$articolo->sconto_unitario = post('sconto');
|
||||
$articolo->tipo_sconto = post('tipo_sconto');
|
||||
|
@ -204,7 +204,7 @@ switch (post('op')) {
|
|||
|
||||
$riga->id_iva = post('idiva');
|
||||
|
||||
//$riga->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$riga->prezzo_unitario_acquisto = post('prezzo_acquisto') ?: 0;
|
||||
$riga->prezzo_unitario_vendita = post('prezzo');
|
||||
$riga->sconto_unitario = post('sconto');
|
||||
$riga->tipo_sconto = post('tipo_sconto');
|
||||
|
|
|
@ -82,7 +82,7 @@ foreach ($righe as $riga) {
|
|||
// Imponibile
|
||||
echo '
|
||||
<td class="text-right">
|
||||
'.moneyFormat($riga->imponibile_scontato).'
|
||||
'.moneyFormat($riga->totale_imponibile).'
|
||||
</td>';
|
||||
}
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ class Preventivo extends Document
|
|||
|
||||
public function fixBudget()
|
||||
{
|
||||
$this->budget = $this->imponibile_scontato ?: 0;
|
||||
$this->budget = $this->totale_imponibile ?: 0;
|
||||
}
|
||||
|
||||
public function save(array $options = [])
|
||||
|
|
|
@ -82,7 +82,7 @@ class Translator extends Util\Singleton
|
|||
$this->locale = $locale;
|
||||
|
||||
$reduced = explode('_', $locale)[0];
|
||||
|
||||
|
||||
setlocale(LC_TIME, $reduced);
|
||||
Carbon::setLocale($reduced);
|
||||
|
||||
|
|
Loading…
Reference in New Issue