Compare commits

...

3 Commits

Author SHA1 Message Date
valentina 1b77e73c22 Rimozione aggiornamento stato degli ordini deprecato 2024-08-02 10:21:05 +02:00
valentina aad832d08e Fix grafico importazione righe 2024-08-02 10:20:11 +02:00
valentina 16d87ce0ad Fix grafico ordini 2024-08-02 10:19:58 +02:00
3 changed files with 11 additions and 21 deletions

View File

@ -82,7 +82,7 @@ echo '
// Creazione fattura dal documento
if (!empty($options['create_document'])) {
echo '
<div class="card card-warning">
<div class="card card-primary">
<div class="card-header with-border">
<h3 class="card-title">'.tr('Nuovo documento').'</h3>
</div>
@ -213,7 +213,7 @@ if (in_array($final_module->getTranslation('title'), ['Fatture di vendita', 'Fat
}
echo '
<div class="card card-info">
<div class="card card-primary">
<div class="card-header with-border">
<h3 class="card-title">'.tr('Opzioni generali delle righe').'</h3>
</div>
@ -281,7 +281,7 @@ if (!empty($options['serials'])) {
// Righe del documento
echo '
<div class="card card-success">
<div class="card card-primary">
<div class="card-header with-border">
<h3 class="card-title">'.tr('Righe da importare').'</h3>
</div>
@ -415,7 +415,7 @@ echo '
</tbody>
<tr>
<td colspan="3" class="text-right">
<td colspan="4" class="text-right">
<b>'.tr('Totale').':</b>
</td>
<td class="text-right">
@ -428,7 +428,7 @@ echo '
// Elenco righe evase completametne
if (!$righe_evase->isEmpty()) {
echo '
<div class="card card-info collapsable collapsed-card">
<div class="card card-primary collapsable collapsed-card">
<div class="card-header with-border">
<h3 class="card-title">'.tr('Righe evase completamente').'</h3>
<div class="card-tools pull-right">
@ -461,7 +461,7 @@ if (!$righe_evase->isEmpty()) {
// Gestione articolo sottoscorta
echo '
<div class="alert alert-warning hidden" id="articoli_sottoscorta">
<div class="card alert hidden" id="articoli_sottoscorta">
<table class="table table-condensed">
<thead>
<tr>
@ -472,7 +472,7 @@ echo '
</tr>
</thead>
<tbody></tbody>
<tbody class="alert-warning"></tbody>
</table>
</div>';

View File

@ -730,13 +730,3 @@ switch (filter('op')) {
break;
}
// Aggiornamento stato degli ordini presenti in questa fattura in base alle quantità totali evase
if (!empty($id_record) && setting('Cambia automaticamente stato ordini fatturati')) {
$rs = $dbo->fetchArray('SELECT `idordine` FROM `dt_righe_ddt` WHERE `idddt`='.prepare($id_record).' AND `idordine`!=0');
for ($i = 0; $i < sizeof($rs); ++$i) {
$stato = StatoOrdine::find(get_stato_ordine($rs[$i]['idordine']))->id;
$dbo->query('UPDATE `or_ordini` SET `idstatoordine`='.prepare($stato).' WHERE `id` = '.prepare($rs[$i]['idordine']));
}
}

View File

@ -44,14 +44,14 @@ echo '
<th width="35" class="text-center" >'.tr('#').'</th>
<th>'.tr('Descrizione').'</th>
<th width="105">'.tr('Prev. evasione').'</th>
<th class="text-center tip" width="130">'.tr('Q.').'</th>';
<th class="text-center tip" width="160">'.tr('Q.').'</th>';
if ($dir == 'entrata') {
echo '<th class="text-center" width="130">'.tr('Costo unitario').'</th>';
echo '<th class="text-center" width="160">'.tr('Costo unitario').'</th>';
}
echo '
<th class="text-center" width="130">'.tr('Prezzo unitario').'</th>
<th class="text-center" width="160">'.tr('Prezzo unitario').'</th>
<th class="text-center" width="130">'.tr('Sconto unitario').'</th>
<th class="text-center" width="100">'.tr('Importo').'</th>
<th class="text-center" width="120">'.tr('Importo').'</th>
<th width="80"></th>
</tr>
</thead>