Migliorie minori
This commit is contained in:
parent
17fa8bd217
commit
7a27d3815d
|
@ -213,7 +213,7 @@ echo '
|
|||
$espandi_dettagli = setting('Espandi automaticamente la sezione "Dettagli aggiuntivi"');
|
||||
echo '
|
||||
<!-- DATI AGGIUNTIVI -->
|
||||
<div class="box box-warning collapsable '.(empty($espandi_dettagli) ? 'collapsed-box' : '').'">
|
||||
<div class="box box-info collapsable '.(empty($espandi_dettagli) ? 'collapsed-box' : '').'">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">'.tr('Dettagli aggiuntivi').'</h3>
|
||||
<div class="box-tools pull-right">
|
||||
|
@ -277,10 +277,10 @@ if (empty($id_intervento)) {
|
|||
}
|
||||
|
||||
echo '
|
||||
<!-- ORE DI LAVORO -->
|
||||
<div class="box box-primary collapsable '.($origine_dashboard ? '' : 'collapsed-box').'">
|
||||
<!-- ORE LAVORO -->
|
||||
<div class="box box-info collapsable '.($origine_dashboard ? '' : 'collapsed-box').'">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">'.tr('Ore di lavoro').'</h3>
|
||||
<h3 class="box-title">'.tr('Ore lavoro').'</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||
<i class="fa fa-'.($origine_dashboard ? 'minus' : 'plus').'"></i>
|
||||
|
@ -315,7 +315,7 @@ echo '
|
|||
</div>
|
||||
|
||||
<!-- RICORRENZA -->
|
||||
<div class="box box-warning collapsable collapsed-box">
|
||||
<div class="box box-info collapsable collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">'.tr('Ricorrenza').'</h3>
|
||||
<div class="box-tools pull-right">
|
||||
|
@ -328,7 +328,7 @@ echo '
|
|||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Ricorsiva').'", "name": "ricorsiva", "value": "" ]}
|
||||
{[ "type": "checkbox", "label": "'.tr('Attività ricorrente').'", "name": "ricorsiva", "value": "" ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 ricorrenza">
|
||||
|
@ -367,7 +367,7 @@ echo '
|
|||
</div>
|
||||
|
||||
<!-- DETTAGLI CLIENTE -->
|
||||
<div class="box box-success collapsable collapsed-box">
|
||||
<div class="box box-info collapsable collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">'.tr('Dettagli cliente').'</h3>
|
||||
<div class="box-tools pull-right">
|
||||
|
@ -378,7 +378,7 @@ echo '
|
|||
</div>
|
||||
|
||||
<div class="box-body" id="dettagli_cliente">
|
||||
'.tr('Prima seleziona un cliente').'...
|
||||
'.tr('Seleziona prima un cliente').'...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ echo '
|
|||
<!-- ORE LAVORO -->
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><?php echo tr('Ore di lavoro'); ?></h3>
|
||||
<h3 class="panel-title"><?php echo tr('Ore lavoro'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
|
|
|
@ -60,9 +60,9 @@ echo '
|
|||
<th class="text-center col-md-4">'.($direzione == 'entrata' ? tr('Cliente') : tr('Fornitore')).'</th>
|
||||
<th class="text-center col-md-4">'.tr('Prezzo predefinito').'</th>';
|
||||
if ($direzione == 'uscita') {
|
||||
echo '<th class="text-center col-md-4">'.tr('Fornitore predefinito').'</th>';
|
||||
echo '<th class="text-center col-md-4">'.tr('E\' il fornitore predefinito?').'</th>';
|
||||
} else {
|
||||
echo '<th class="text-center col-md-4"></th>';
|
||||
echo '<th class="text-center col-md-4">'.tr('Fornitore predefinito').'</th>';
|
||||
}
|
||||
echo '
|
||||
</tr>
|
||||
|
@ -72,7 +72,7 @@ echo '
|
|||
if ($direzione == 'uscita') {
|
||||
echo '<td class="text-center"><i class="fa fa-'.$icon.' text-'.$color.'"></i> '.$text.'</td>';
|
||||
} else {
|
||||
echo '<td></td>';
|
||||
echo '<td class="text-center">'.(!empty($articolo->id_fornitore) ? Anagrafica::find($articolo->id_fornitore)->ragione_sociale : tr('Nessuno')).'</td>';
|
||||
}
|
||||
echo '
|
||||
</tr>
|
||||
|
@ -89,7 +89,7 @@ echo '
|
|||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Imposta prezzo per questa anagrafica').'", "name": "modifica_prezzi", "value": "'.intval(!empty($dettaglio_predefinito)).'" ]}
|
||||
{[ "type": "checkbox", "label": "'.tr('Imposta prezzo specifico per questa anagrafica').'", "name": "modifica_prezzi", "value": "'.intval(!empty($dettaglio_predefinito)).'" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -97,6 +97,7 @@ echo '
|
|||
<div class="info_prezzi">
|
||||
<div class="col-md-4">
|
||||
{[ "type": "number", "label": "'.tr('Prezzo specifico').'", "name": "prezzo_unitario_fisso", "value": "'.($prezzi_ivati ? $dettaglio_predefinito->prezzo_unitario_ivato : $dettaglio_predefinito->prezzo_unitario).'", "icon-after": "'.currency().'", "help": "'.($prezzi_ivati ? tr('Importo IVA inclusa') : '').'" ]}
|
||||
<button type="button" style="margin-top:-10px;" class="btn btn-xs btn-info pull-right '.($prezzo_predefinito>0 ? "" : "disabled").'" onclick="copiaPrezzoPredefinito()"><i class="fa fa-refresh"></i> '.tr('Importa').'</button>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
@ -107,7 +108,7 @@ echo '
|
|||
|
||||
<div class="row">
|
||||
<div id="imposta_prezzo_qta" class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Imposta un prezzo in base alla quantità').'", "name": "prezzo_qta", "value": "'.intval($dettagli->count() != 0).'" ]}
|
||||
{[ "type": "checkbox", "label": "'.tr('Imposta prezzo in base alla quantità').'", "name": "prezzo_qta", "value": "'.intval($dettagli->count() != 0).'" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -214,6 +215,11 @@ echo '
|
|||
<script>$(document).ready(init);</script>
|
||||
|
||||
<script>
|
||||
|
||||
function copiaPrezzoPredefinito() {
|
||||
$("#prezzo_unitario_fisso").val('.$prezzo_predefinito.').trigger("change");
|
||||
}
|
||||
|
||||
var key = '.$dettagli->count().';
|
||||
function aggiungiPrezzo(button) {
|
||||
cleanup_inputs();
|
||||
|
@ -266,5 +272,5 @@ input("prezzo_qta").change(function () {
|
|||
})
|
||||
|
||||
$(document).ready(cambioImpostazioni);
|
||||
content_was_modified = false;
|
||||
content_was_modified = false;
|
||||
</script>';
|
||||
|
|
|
@ -23,6 +23,7 @@ use Plugins\ListinoClienti\DettaglioPrezzo;
|
|||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
$id_articolo = $id_record;
|
||||
$module_anagrafiche = Modules::get('Anagrafiche');
|
||||
echo '
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
|
@ -32,7 +33,7 @@ echo '
|
|||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
{[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "required":"1", "ajax-source": "clienti" ]}
|
||||
{[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "required":"1", "ajax-source": "clienti", "icon-after": "add|'.$module_anagrafiche['id'].'|tipoanagrafica=Cliente&readonly_tipo=1" ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
|
|
@ -23,6 +23,7 @@ use Plugins\ListinoFornitori\DettaglioFornitore;
|
|||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
$id_articolo = $id_record;
|
||||
$module_anagrafiche = Modules::get('Anagrafiche');
|
||||
echo '
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
|
@ -32,7 +33,7 @@ echo '
|
|||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
{[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "required":"1", "ajax-source": "fornitori" ]}
|
||||
{[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "required":"1", "ajax-source": "fornitori","icon-after": "add|'.$module_anagrafiche['id'].'|tipoanagrafica=Fornitore&readonly_tipo=1" ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
|
Loading…
Reference in New Issue