Ajout d'un bouton pour revenir à l'encodage

This commit is contained in:
Dany De Bontridder 2014-12-07 04:16:51 +01:00
parent b995ec5978
commit baf8958cd2
5 changed files with 16 additions and 1 deletions

View file

@ -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;
}
}
?>

View file

@ -157,7 +157,7 @@ if (isset($_POST['record']))
echo '<h2>Document</h2>';
echo $Ledger->doc;
}
echo $Ledger->button_new_operation();
echo '</div>';
return;
}

View file

@ -117,7 +117,9 @@ if ( isset($_POST['confirm']))
echo '<div class="content">';
echo $a;
echo '</div>';
echo '</div>';
echo $Ledger->button_new_operation();
return;
}
}

View file

@ -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)
{

View file

@ -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;