Fix minore confronta prezzi

This commit is contained in:
Pek5892 2023-04-27 17:31:55 +02:00
parent 9cf812be89
commit 26fc1dc0f7
6 changed files with 7 additions and 6 deletions

View File

@ -671,7 +671,7 @@ switch (post('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE co_righe_contratti
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}

View File

@ -696,7 +696,7 @@ switch (filter('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE dt_righe_ddt
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}

View File

@ -1070,7 +1070,7 @@ switch (post('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE co_righe_documenti
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}

View File

@ -1164,7 +1164,8 @@ switch (post('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE in_righe_interventi
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}

View File

@ -723,7 +723,7 @@ switch (post('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE or_righe_ordini
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}

View File

@ -546,7 +546,7 @@ switch (post('op')) {
foreach ($righe as $riga) {
$dbo->query(
'UPDATE co_righe_preventivi
SET prezzo_unitario = '.$riga['price'].'
SET subtotale = '.$riga['price'].' AND prezzo_unitario = '.$riga['price'].'
WHERE id = '.$riga['id']
);
}