1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-03 17:27:29 +01:00

Fix link a prima nota solo se presente

This commit is contained in:
loviuz 2019-12-11 16:05:15 +01:00
parent f9352fbcb8
commit ee21e287d2

View File

@ -35,7 +35,7 @@ if (!empty($movimenti)) {
<tr> <tr>
<td>'; <td>';
if (!empty($movimento['iddocumento'])) { if (!empty($movimento['primanota'])) {
$modulo_fattura = ($movimento['dir'] == 'entrata') ? Modules::get('Fatture di vendita')['id'] : Modules::get('Fatture di acquisto')['id']; $modulo_fattura = ($movimento['dir'] == 'entrata') ? Modules::get('Fatture di vendita')['id'] : Modules::get('Fatture di acquisto')['id'];
echo Modules::link($prima_nota->id, $movimento['idmastrino'], $movimento['descrizione']); echo Modules::link($prima_nota->id, $movimento['idmastrino'], $movimento['descrizione']);