mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 12:00:46 +01:00
Compare commits
3 Commits
573b8fc516
...
1b77e73c22
Author | SHA1 | Date | |
---|---|---|---|
|
1b77e73c22 | ||
|
aad832d08e | ||
|
16d87ce0ad |
@ -82,7 +82,7 @@ echo '
|
|||||||
// Creazione fattura dal documento
|
// Creazione fattura dal documento
|
||||||
if (!empty($options['create_document'])) {
|
if (!empty($options['create_document'])) {
|
||||||
echo '
|
echo '
|
||||||
<div class="card card-warning">
|
<div class="card card-primary">
|
||||||
<div class="card-header with-border">
|
<div class="card-header with-border">
|
||||||
<h3 class="card-title">'.tr('Nuovo documento').'</h3>
|
<h3 class="card-title">'.tr('Nuovo documento').'</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -213,7 +213,7 @@ if (in_array($final_module->getTranslation('title'), ['Fatture di vendita', 'Fat
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<div class="card card-info">
|
<div class="card card-primary">
|
||||||
<div class="card-header with-border">
|
<div class="card-header with-border">
|
||||||
<h3 class="card-title">'.tr('Opzioni generali delle righe').'</h3>
|
<h3 class="card-title">'.tr('Opzioni generali delle righe').'</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -281,7 +281,7 @@ if (!empty($options['serials'])) {
|
|||||||
|
|
||||||
// Righe del documento
|
// Righe del documento
|
||||||
echo '
|
echo '
|
||||||
<div class="card card-success">
|
<div class="card card-primary">
|
||||||
<div class="card-header with-border">
|
<div class="card-header with-border">
|
||||||
<h3 class="card-title">'.tr('Righe da importare').'</h3>
|
<h3 class="card-title">'.tr('Righe da importare').'</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -415,7 +415,7 @@ echo '
|
|||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" class="text-right">
|
<td colspan="4" class="text-right">
|
||||||
<b>'.tr('Totale').':</b>
|
<b>'.tr('Totale').':</b>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
@ -428,7 +428,7 @@ echo '
|
|||||||
// Elenco righe evase completametne
|
// Elenco righe evase completametne
|
||||||
if (!$righe_evase->isEmpty()) {
|
if (!$righe_evase->isEmpty()) {
|
||||||
echo '
|
echo '
|
||||||
<div class="card card-info collapsable collapsed-card">
|
<div class="card card-primary collapsable collapsed-card">
|
||||||
<div class="card-header with-border">
|
<div class="card-header with-border">
|
||||||
<h3 class="card-title">'.tr('Righe evase completamente').'</h3>
|
<h3 class="card-title">'.tr('Righe evase completamente').'</h3>
|
||||||
<div class="card-tools pull-right">
|
<div class="card-tools pull-right">
|
||||||
@ -461,7 +461,7 @@ if (!$righe_evase->isEmpty()) {
|
|||||||
|
|
||||||
// Gestione articolo sottoscorta
|
// Gestione articolo sottoscorta
|
||||||
echo '
|
echo '
|
||||||
<div class="alert alert-warning hidden" id="articoli_sottoscorta">
|
<div class="card alert hidden" id="articoli_sottoscorta">
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -472,7 +472,7 @@ echo '
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody></tbody>
|
<tbody class="alert-warning"></tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
|
@ -730,13 +730,3 @@ switch (filter('op')) {
|
|||||||
|
|
||||||
break;
|
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']));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -44,14 +44,14 @@ echo '
|
|||||||
<th width="35" class="text-center" >'.tr('#').'</th>
|
<th width="35" class="text-center" >'.tr('#').'</th>
|
||||||
<th>'.tr('Descrizione').'</th>
|
<th>'.tr('Descrizione').'</th>
|
||||||
<th width="105">'.tr('Prev. evasione').'</th>
|
<th width="105">'.tr('Prev. evasione').'</th>
|
||||||
<th class="text-center tip" width="130">'.tr('Q.tà').'</th>';
|
<th class="text-center tip" width="160">'.tr('Q.tà').'</th>';
|
||||||
if ($dir == 'entrata') {
|
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 '
|
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="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>
|
<th width="80"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user