We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe691b4 commit 680d129Copy full SHA for 680d129
1 file changed
include/common/articolo.php
@@ -44,7 +44,9 @@
44
<script>
45
$(document).ready(function (){
46
// Preimpostazione del prezzo di acquisto per articolo già selezionato
47
- $("#costo_unitario").val("'.$articolo['prezzo_acquisto'].'");
+ var costo_riga = "'.($result['costo_unitario'] ?? '').'";
48
+ var costo_articolo = "'.$articolo['prezzo_acquisto'].'";
49
+ $("#costo_unitario").val(costo_riga || costo_articolo);
50
51
ottieniDettagliArticolo("'.$articolo['id'].'").then(function (){
52
verificaPrezzoArticolo();
0 commit comments