Message compréhensible si opération a été effacée
This commit is contained in:
parent
93ec9c2e38
commit
5a283dc1cb
1 changed files with 20 additions and 0 deletions
|
|
@ -91,6 +91,26 @@ EOF;
|
|||
$op=new Acc_Operation($cn);
|
||||
$op->jr_id=$_REQUEST['jr_id'];
|
||||
$ledger=$op->get_ledger();
|
||||
if ($ledger=="")
|
||||
{
|
||||
|
||||
ob_start();
|
||||
require_once ('template/ledger_detail_forbidden.php');
|
||||
$html=ob_get_contents();
|
||||
ob_clean();
|
||||
|
||||
$html=escape_xml($html);
|
||||
header('Content-type: text/xml; charset=UTF-8');
|
||||
echo <<<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<data>
|
||||
<ctl>$div</ctl>
|
||||
<code>$html</code>
|
||||
</data>
|
||||
EOF;
|
||||
exit();
|
||||
|
||||
}
|
||||
$access=$g_user->get_ledger_access($ledger);
|
||||
if ( $access == 'X' )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue