|
82 | 82 | <input type="hidden" name="backto" value="record-edit"> |
83 | 83 | <input type="hidden" name="op" value="update_prezzi"> |
84 | 84 | <input type="hidden" name="id_plugin" value="'.$id_plugin.'"> |
85 | | -
|
86 | 85 | <input type="hidden" name="dir" value="'.$direzione.'"> |
87 | 86 | <input type="hidden" name="id_anagrafica" value="'.$id_anagrafica.'"> |
88 | 87 | <input type="hidden" name="id_articolo" value="'.$id_articolo.'"> |
|
97 | 96 | <div class="row"> |
98 | 97 | <div class="col-md-6"> |
99 | 98 | {[ "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> |
101 | 100 | </div> |
102 | 101 |
|
103 | 102 | <div class="col-md-6"> |
|
158 | 157 | {[ "type": "number", "name": "prezzo_unitario['.$key.']", "icon-after": "'.currency().'", "value": "'.($prezzi_ivati ? $dettaglio->prezzo_unitario_ivato : $dettaglio->prezzo_unitario).'" ]} |
159 | 158 | </td> |
160 | 159 | <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":"%" ]} |
162 | 161 | <td> |
163 | 162 | <button type="button" class="btn btn-xs btn-danger" onclick="rimuoviPrezzo(this)"> |
164 | 163 | <i class="fa fa-trash"></i> |
@@ -227,7 +226,7 @@ function aggiungiPrezzo(button) { |
227 | 226 | let text = replaceAll($("#prezzi-template").html(), "-id-", "" + key); |
228 | 227 | key++; |
229 | 228 |
|
230 | | - let body = $(button).closest(".box").find("table > tbody"); |
| 229 | + let body = $(button).closest(".card").find("table > tbody"); |
231 | 230 | let lastRow = body.find("tr").last(); |
232 | 231 | if (lastRow.length) { |
233 | 232 | lastRow.after(text); |
|
0 commit comments