1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 08:12:47 +01:00

Fix solleciti

This commit is contained in:
Thomas Zilio 2019-02-21 12:37:06 +01:00
parent f77e9cc876
commit 35de40188f
2 changed files with 10 additions and 1 deletions

View File

@ -108,6 +108,15 @@ for ($i = 0; $i < count($rs); ++$i) {
$totale_da_pagare = sum(array_column($rs, 'da_pagare'));
$totale_pagato = sum(array_column($rs, 'pagato'));
if ($totale_da_pagare == $totale_pagato) {
echo '
<script>
$(document).ready(function(){
$("#pulsanti").children().find("a:nth-child(2)").attr("disabled", true).addClass("disabled");
})
</script>';
}
echo '
<tr>
<td align="right"><b>'.tr('Totale').'</b></td>

View File

@ -9,7 +9,7 @@ $r = $dbo->fetchOne('SELECT co_scadenziario.*, co_documenti.*,
FROM co_scadenziario
INNER JOIN co_documenti ON co_documenti.id = co_scadenziario.iddocumento
INNER JOIN an_anagrafiche ON co_documenti.idanagrafica=an_anagrafiche.idanagrafica
WHERE co_scadenziario.id='.prepare($id_record));
WHERE co_scadenziario.pagato != co_scadenziario.da_pagare AND co_scadenziario.iddocumento = (SELECT iddocumento FROM co_scadenziario s WHERE id='.prepare($id_record).')');
$logo_azienda = str_replace(DOCROOT, ROOTDIR, App::filepath('templates/base|custom|/logo_azienda.jpg'));