0000530: Ajouter la possibilité d'entrer une date par opération dans la saisie du journal de banque
Prep. code commenté, problème avec Acc_Ledger_Fin
This commit is contained in:
parent
f6f3cfbcf7
commit
28b8aa2ac1
3 changed files with 10 additions and 5 deletions
|
|
@ -252,6 +252,7 @@ function ledger_fin_add_row()
|
|||
new_tt=new_tt.replace(/e_other0_amount/g,"e_other"+nb.value+'_amount');
|
||||
new_tt=new_tt.replace(/e_concerned0/g,"e_concerned"+nb.value);
|
||||
new_tt=new_tt.replace(/e_other0_label/g,"e_other"+nb.value+'_label');
|
||||
// new_tt=new_tt.replace(/dateop0/g,"date"+nb.value);
|
||||
newCell.innerHTML=new_tt;
|
||||
new_tt.evalScripts();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ content[12]="Document généré uniquement si le mode de paiement est utilisé";
|
|||
content[13]="Vous pouvez utiliser le % pour indiquer le poste parent";
|
||||
content[14]="Attention, le poste comptable doit exister, il ne sera pas vérifié";
|
||||
content[15]="Laissez à 0 pour ne rien changer";
|
||||
content[16]="Si vous ne remplissez pas la date d'opération, ce sera la date de l'extrait qui sera utilisée";
|
||||
|
||||
function showBulle(p_ctl)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -311,12 +311,15 @@ class Acc_Ledger_Fin extends Acc_Ledger
|
|||
// Parse each " tiers"
|
||||
for ($i = 0; $i < $max; $i++)
|
||||
{
|
||||
$tiers = (isset(${"e_other" . $i})) ? ${"e_other" . $i} : ""
|
||||
;
|
||||
$tiers = (isset(${"e_other" . $i})) ? ${"e_other" . $i} : "";
|
||||
|
||||
$tiers_amount = (isset(${"e_other$i" . "_amount"})) ? round(${"e_other$i" . "_amount"}, 2) : 0;
|
||||
|
||||
$tiers_comment = (isset(${"e_other$i" . "_comment"})) ? ${"e_other$i" . "_comment"} : ""
|
||||
;
|
||||
$tiers_comment = (isset(${"e_other$i" . "_comment"})) ? ${"e_other$i" . "_comment"} : "";
|
||||
|
||||
$operation_date=new IDate("dateop".$i);
|
||||
$operation_date->value=(isset(${'dateop'.$i}))?${'dateop'.$i}:"";
|
||||
$array[$i]['dateop']=$operation_date->input();
|
||||
${"e_other$i" . "_amount"} = (isset(${"e_other$i" . "_amount"})) ? ${"e_other$i" . "_amount"} : 0;
|
||||
|
||||
$W1 = new ICard();
|
||||
|
|
@ -342,7 +345,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
|
|||
|
||||
// Card name
|
||||
//
|
||||
$card_name = "";
|
||||
$card_name = "";
|
||||
if ($tiers != "")
|
||||
{
|
||||
$fiche = new Fiche($this->db);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue