mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Fix su promemoria contratti
This commit is contained in:
parent
a48b892e3d
commit
175f6dd642
@ -7,10 +7,14 @@ $operazione = filter('op');
|
||||
// Pianificazione intervento
|
||||
switch ($operazione) {
|
||||
case 'add-promemoria':
|
||||
// Lettura sede contratto
|
||||
$idsede = $dbo->fetchOne('SELECT idsede FROM co_contratti WHERE id='.prepare($id_parent))['idsede'];
|
||||
|
||||
$dbo->insert('co_promemoria', [
|
||||
'idcontratto' => $id_parent,
|
||||
'data_richiesta' => filter('data_richiesta'),
|
||||
'idtipointervento' => filter('idtipointervento'),
|
||||
'idsede' => $idsede,
|
||||
]);
|
||||
$id_record = $dbo->lastInsertedID();
|
||||
|
||||
|
@ -16,6 +16,7 @@ if (empty($idriga)) {
|
||||
$um = '';
|
||||
$prezzo_vendita = '0';
|
||||
$prezzo_acquisto = '0';
|
||||
$idiva = setting('Iva predefinita');
|
||||
|
||||
if (!empty($rs[0]['prc_guadagno'])) {
|
||||
$sconto_unitario = $rs[0]['prc_guadagno'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user