Skip to content

Commit 4745212

Browse files
committed
fix: selezione aliquota in cambio iva da bulk righe preventivi
1 parent 2aa8495 commit 4745212

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/preventivi/modals/modifica_iva.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<h4 class="panel-title"><?php echo tr('Aliquota da applicare'); ?></h4>
121121
</div>
122122
<div class="panel-body">
123-
{[ "type": "select", "label": "", "name": "iva_id", "required": 1, "ajax-source": "iva" ]}
123+
{[ "type": "select", "label": "", "name": "iva_id", "required": 1, "values": "query=SELECT `co_iva`.`id`, IF(`deleted_at` IS NOT NULL, CONCAT(`codice`, ' - ', `title`, ' (<?php echo tr('eliminata'); ?>)'), CONCAT(`codice`, ' - ', `title`)) AS `descrizione` FROM `co_iva` LEFT JOIN `co_iva_lang` ON (`co_iva`.`id` = `co_iva_lang`.`id_record` AND `co_iva_lang`.`id_lang` = <?php echo prepare(Models\Locale::getDefault()->id); ?>) ORDER BY `title` ASC" ]}
124124
<input type="hidden" name="riga_id" value="<?php echo get('riga_id'); ?>">
125125
<input type="hidden" name="righe" value="<?php echo $_GET['righe']; ?>">
126126
</div>
@@ -162,7 +162,7 @@
162162
<h4 class="panel-title"><?php echo tr('Aliquota da applicare'); ?></h4>
163163
</div>
164164
<div class="panel-body">
165-
{[ "type": "select", "label": "", "name": "iva_id", "required": 1, "ajax-source": "iva" ]}
165+
{[ "type": "select", "label": "", "name": "iva_id", "required": 1, "values": "query=SELECT `co_iva`.`id`, IF(`deleted_at` IS NOT NULL, CONCAT(`codice`, ' - ', `title`, ' (<?php echo tr('eliminata'); ?>)'), CONCAT(`codice`, ' - ', `title`)) AS `descrizione` FROM `co_iva` LEFT JOIN `co_iva_lang` ON (`co_iva`.`id` = `co_iva_lang`.`id_record` AND `co_iva_lang`.`id_lang` = <?php echo prepare(Models\Locale::getDefault()->id); ?>) ORDER BY `title` ASC" ]}
166166
<input type="hidden" name="riga_id" value="<?php echo get('riga_id'); ?>">
167167
<input type="hidden" name="righe" value="<?php echo get('righe'); ?>">
168168
</div>

0 commit comments

Comments
 (0)