replace update_pj by update_receipt
This commit is contained in:
parent
305d8d4f1f
commit
9c774701ba
6 changed files with 7 additions and 7 deletions
|
|
@ -143,7 +143,7 @@ function error_get_predef(request, json) {
|
|||
/**
|
||||
* update the list of available predefined operation when we change the ledger.
|
||||
*/
|
||||
function update_pj() {
|
||||
function update_receipt() {
|
||||
var jrn = id$("p_jrn").value;
|
||||
var dossier = id$("gDossier").value;
|
||||
var querystring = 'gDossier=' + dossier + '&l=' + jrn + "&op=upd_receipt";
|
||||
|
|
|
|||
|
|
@ -896,7 +896,7 @@ class Acc_Ledger extends jrn_def_sql
|
|||
$add_js="";
|
||||
if ($g_parameter->MY_PJ_SUGGEST !='N')
|
||||
{
|
||||
$add_js="update_pj();";
|
||||
$add_js="update_receipt();";
|
||||
}
|
||||
if ($g_parameter->MY_DATE_SUGGEST=='Y')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
|
|||
if ($g_parameter->MY_DATE_SUGGEST=='Y')
|
||||
$onchange.='get_last_date();';
|
||||
if ($g_parameter->MY_PJ_SUGGEST=='Y')
|
||||
$onchange.='update_pj();';
|
||||
$onchange.='update_receipt();';
|
||||
|
||||
$add_js='onchange="'.$onchange.'"';
|
||||
$wLedger=$this->select_ledger('FIN', 2, FALSE);
|
||||
|
|
|
|||
|
|
@ -1225,7 +1225,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
|
|||
$add_js="";
|
||||
if ( $g_parameter->MY_PJ_SUGGEST !='N')
|
||||
{
|
||||
$add_js="update_pj();";
|
||||
$add_js="update_receipt();";
|
||||
}
|
||||
if ($g_parameter->MY_DATE_SUGGEST == 'Y')
|
||||
{
|
||||
|
|
@ -1518,7 +1518,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
|
|||
/* if we suggest the pj n# the run the script */
|
||||
if ( $g_parameter->MY_PJ_SUGGEST !='N')
|
||||
{
|
||||
$r.='<script> update_pj();</script>';
|
||||
$r.='<script> update_receipt();</script>';
|
||||
}
|
||||
// set focus on date
|
||||
$r.= create_script("$('".$Date->id."').focus()");
|
||||
|
|
|
|||
|
|
@ -1366,7 +1366,7 @@ EOF;
|
|||
/* if we suggest the next pj, then we need a javascript */
|
||||
$add_js = "";
|
||||
if ($g_parameter->MY_PJ_SUGGEST != 'N') {
|
||||
$add_js = "update_pj();";
|
||||
$add_js = "update_receipt();";
|
||||
}
|
||||
if ($g_parameter->MY_DATE_SUGGEST == 'Y') {
|
||||
$add_js.='get_last_date();';
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ echo '<div class="content">';
|
|||
/* if we suggest the pj n# the run the script */
|
||||
if ( $g_parameter->MY_PJ_SUGGEST=='Y')
|
||||
{
|
||||
echo '<script> update_pj()</script>';
|
||||
echo '<script> update_receipt()</script>';
|
||||
}
|
||||
$e_date=$http->request("e_date","string","");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue