Ajout d'un bouton pour revenir à l'encodage
This commit is contained in:
parent
b995ec5978
commit
baf8958cd2
5 changed files with 16 additions and 1 deletions
|
|
@ -3887,6 +3887,16 @@ class Acc_Ledger extends jrn_def_sql
|
|||
return $r;
|
||||
|
||||
}
|
||||
/**
|
||||
* Create a button to encode a new operation into the same ledger
|
||||
* @return string
|
||||
*/
|
||||
function button_new_operation()
|
||||
{
|
||||
$url=http_build_query(array('ac'=>$_REQUEST['ac'],'gDossier'=>$_REQUEST['gDossier'],'p_jrn'=>$_REQUEST['p_jrn']));
|
||||
$button = HtmlInput::button_anchor(_("Nouvelle opération"), 'do.php?'.$url);
|
||||
return $button;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -157,7 +157,7 @@ if (isset($_POST['record']))
|
|||
echo '<h2>Document</h2>';
|
||||
echo $Ledger->doc;
|
||||
}
|
||||
|
||||
echo $Ledger->button_new_operation();
|
||||
echo '</div>';
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,9 @@ if ( isset($_POST['confirm']))
|
|||
echo '<div class="content">';
|
||||
echo $a;
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
echo $Ledger->button_new_operation();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ elseif (isset($_POST['save']))
|
|||
// show feedback
|
||||
echo '<div id="jrn_name_div">'; echo '<h2 id="jrn_name" style="display:inline">' . $ledger->get_name() . '</h2>'; echo '</div>';
|
||||
echo $ledger->confirm($_POST, true);
|
||||
echo $ledger->button_new_operation();
|
||||
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ $p_msg="";
|
|||
$obj=new Acc_Ledger_Info($cn);
|
||||
$obj->save_extra($Ledger->jr_id,$_POST);
|
||||
|
||||
echo $Ledger->button_new_operation();
|
||||
|
||||
echo '</div>';
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue