1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00

Fix suggerimento importi dare-avere

This commit is contained in:
loviuz 2019-10-25 17:16:19 +02:00
parent bb8971257d
commit 3ced78de7d

View File

@ -115,8 +115,8 @@ foreach ($id_documenti as $id_documento) {
$righe_documento[] = [
'id_scadenza' => $scadenze[0]['id'],
'id_conto' => $id_conto_aziendale,
'dare' => ($dir == 'entrata') ? 0 : $totale,
'avere' => ($dir == 'entrata') ? $totale : 0,
'dare' => ($dir == 'entrata') ? $totale : 0,
'avere' => ($dir == 'entrata') ? 0 : $totale,
];
}
@ -125,8 +125,8 @@ foreach ($id_documenti as $id_documento) {
$righe_documento[] = [
'id_scadenza' => $scadenza['id'],
'id_conto' => $id_conto_controparte,
'dare' => ($dir == 'entrata') ? $scadenza['rata'] : 0,
'avere' => ($dir == 'entrata') ? 0 : $scadenza['rata'],
'dare' => ($dir == 'entrata') ? 0 : $scadenza['rata'],
'avere' => ($dir == 'entrata') ? $scadenza['rata'] : 0,
];
}