mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Gestion de la generation du recu de don.
Possibilit d'avoir des modules de generation HTML plutot que PDF.
This commit is contained in:
@@ -418,7 +418,30 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
|
||||
print "<a class=\"butActionDelete\" href=\"fiche.php?rowid=$don->id&action=delete\">".$langs->trans("Delete")."</a>";
|
||||
}
|
||||
|
||||
print "</div><br>";
|
||||
print "</div>";
|
||||
|
||||
|
||||
print '<table width="100%"><tr><td width="50%" valign="top">';
|
||||
|
||||
/*
|
||||
* Documents g<>n<EFBFBD>r<EFBFBD>s
|
||||
*/
|
||||
$filename=sanitize_string($don->id);
|
||||
$filedir=$conf->don->dir_output . '/' . get_exdir($filename);
|
||||
$urlsource=$_SERVER['PHP_SELF'].'?rowid='.$don->id;
|
||||
// $genallowed=($fac->statut == 1 && ($fac->paye == 0 || $user->admin) && $user->rights->facture->creer);
|
||||
// $delallowed=$user->rights->facture->supprimer;
|
||||
$genallowed=0;
|
||||
$delallowed=0;
|
||||
|
||||
$var=true;
|
||||
|
||||
print '<br>';
|
||||
$html->show_documents('don',$filename,$filedir,$urlsource,$genallowed,$delallowed);
|
||||
|
||||
print '</td><td> </td>';
|
||||
|
||||
print '</tr></table>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ if ($socid > 0)
|
||||
print "<td align=\"right\">".price($objp->total_ttc)."</td>\n";
|
||||
|
||||
$fac = new Facture($db);
|
||||
print "<td align=\"center\">".($fac->LibStatut($objp->paye,$objp->statut))."</td>\n";
|
||||
print "<td align=\"center\">".($fac->LibStatut($objp->paye,$objp->statut,1))."</td>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user