Bug : can't list unpaid operatio,s in sold ledger
This commit is contained in:
parent
c8f30931bc
commit
2d111cb28d
2 changed files with 10 additions and 3 deletions
|
|
@ -45,7 +45,10 @@ $cn=DbConnect($gDossier);
|
|||
$User=new User($cn);
|
||||
$User->Check();
|
||||
$User->check_dossier(dossier::id());
|
||||
$User->can_request(GEOP,0);
|
||||
if ($User->check_action(GEOP,0) == 0 ) {
|
||||
alert("Cette action n'est pas autorisée");
|
||||
echo '<script>window.close();<script>';
|
||||
}
|
||||
|
||||
html_page_start($User->theme,"onLoad='window.focus();'");
|
||||
echo JS_VIEW_JRN_MODIFY;
|
||||
|
|
@ -55,7 +58,8 @@ if ( isset( $_REQUEST['p_jrn'] )) {
|
|||
|
||||
// Check privilege
|
||||
if ( $User->check_jrn($_GET['p_jrn']) != 'W') {
|
||||
NoAccess();
|
||||
alert("Vous ne pouvez pas accèder en écriture à ce journal");
|
||||
echo '<script>window.close();</script>';
|
||||
exit -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ if ( $def==1 || $def == 4 ) {
|
|||
if ( isset($_POST['record']) ){
|
||||
// Check privilege
|
||||
if ( $User->check_jrn($_REQUEST['p_jrn']) != 'W' ) {
|
||||
|
||||
NoAccess();
|
||||
exit -1;
|
||||
}
|
||||
|
|
@ -263,6 +264,7 @@ if ( $def == 2 ) {
|
|||
// Check privilege
|
||||
if ( isset($_REQUEST['p_jrn']) &&
|
||||
$User->check_jrn($_REQUEST['p_jrn']) == 'X') {
|
||||
|
||||
NoAccess();
|
||||
exit -1;
|
||||
}
|
||||
|
|
@ -301,6 +303,7 @@ if ( $def==3 ) {
|
|||
// Check privilege
|
||||
if ( isset($_REQUEST['p_jrn']) &&
|
||||
$User->check_jrn($_REQUEST['p_jrn']) == 'X') {
|
||||
|
||||
NoAccess();
|
||||
exit -1;
|
||||
}
|
||||
|
|
@ -319,7 +322,7 @@ if ( $def==3 ) {
|
|||
echo '<div class="content">';
|
||||
|
||||
echo '<FORM METHOD="GET" action="'.$href.'">';
|
||||
$wLedger=$Ledger->select_ledger('VEN',2);
|
||||
$wLedger=$Ledger->select_ledger('VEN',3);
|
||||
if ( $wLedger == null ) {
|
||||
alert('aucun journal de disponible');
|
||||
exit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue