replace update_pj by update_receipt

This commit is contained in:
Dany wm 2024-10-12 18:06:06 +02:00 committed by sparkyx
parent 5f33bc1bd3
commit a5b99aff91
5 changed files with 5 additions and 5 deletions

View file

@ -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 = g("p_jrn").value;
var dossier = g("gDossier").value;
var querystring = 'gDossier=' + dossier + '&l=' + jrn + "&op=upd_receipt";

View file

@ -898,7 +898,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')
{

View file

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

View file

@ -1414,7 +1414,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();';

View file

@ -313,7 +313,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","");