Skip to content

Commit 084e839

Browse files
committed
fix: aggiunta range in plugin listino fornitori
1 parent 3d60cb7 commit 084e839

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

plugins/listino_clienti/dettaglio_prezzi.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
<input type="hidden" name="backto" value="record-edit">
8383
<input type="hidden" name="op" value="update_prezzi">
8484
<input type="hidden" name="id_plugin" value="'.$id_plugin.'">
85-
8685
<input type="hidden" name="dir" value="'.$direzione.'">
8786
<input type="hidden" name="id_anagrafica" value="'.$id_anagrafica.'">
8887
<input type="hidden" name="id_articolo" value="'.$id_articolo.'">
@@ -97,7 +96,7 @@
9796
<div class="row">
9897
<div class="col-md-6">
9998
{[ "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') : '').'" ]}
100-
<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>
99+
<button type="button" style="margin-top:-10px;" class="btn btn-info pull-right '.($prezzo_predefinito > 0 ? '' : 'disabled').'" onclick="copiaPrezzoPredefinito()"><i class="fa fa-refresh"></i> '.tr('Importa').'</button>
101100
</div>
102101
103102
<div class="col-md-6">
@@ -158,7 +157,7 @@
158157
{[ "type": "number", "name": "prezzo_unitario['.$key.']", "icon-after": "'.currency().'", "value": "'.($prezzi_ivati ? $dettaglio->prezzo_unitario_ivato : $dettaglio->prezzo_unitario).'" ]}
159158
</td>
160159
<td>
161-
{[ "type": "number", "name": "sconto['.$key.']", "min-value": 0, "value": "'.$dettaglio->sconto_percentuale.'", "icon-after":"%" ]}
160+
{[ "type": "number", "name": "sconto['.$key.']", "min-value": 0, "value": "'.$dettaglio->sconto.'", "icon-after":"%" ]}
162161
<td>
163162
<button type="button" class="btn btn-xs btn-danger" onclick="rimuoviPrezzo(this)">
164163
<i class="fa fa-trash"></i>
@@ -227,7 +226,7 @@ function aggiungiPrezzo(button) {
227226
let text = replaceAll($("#prezzi-template").html(), "-id-", "" + key);
228227
key++;
229228
230-
let body = $(button).closest(".box").find("table > tbody");
229+
let body = $(button).closest(".card").find("table > tbody");
231230
let lastRow = body.find("tr").last();
232231
if (lastRow.length) {
233232
lastRow.after(text);

0 commit comments

Comments
 (0)