[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/15: Tache 0001885: postes utilisables dan
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/15: Tache 0001885: postes utilisables dans Opération ODS |
Date: |
Mon, 25 Jan 2021 18:56:18 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 8005e0dbcef67389673194d4187fc9a5e9bc72f0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Jan 18 15:35:33 2021 +0100
Tache 0001885: postes utilisables dans Opération ODS
---
html/js/accounting_item.js | 4 ++++
include/class/acc_ledger.class.php | 1 -
include/class/fiche.class.php | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js
index f7445bb..c58b0e6 100644
--- a/html/js/accounting_item.js
+++ b/html/js/accounting_item.js
@@ -77,6 +77,10 @@ function search_poste(obj)
if ( obj.jrn)
{
queryString+="&j="+obj.jrn;
+ }else {
+ if ($("p_jrn")) {
+ queryString+="&j="+$("p_jrn").value;
+ }
}
if ( obj.account)
{
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index d7efb99..e9683ee 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -927,7 +927,6 @@ class Acc_Ledger extends jrn_def_sql
// Account
$poste=new IPoste();
$poste->name='poste'.$i;
- $poste->set_attribute('jrn', $this->id);
$poste->set_attribute('ipopup', 'ipop_account');
$poste->set_attribute('label', 'ld'.$i);
$poste->set_attribute('account', 'poste'.$i);
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index f2f8a01..e4942bb 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -477,6 +477,7 @@ class Fiche
{
$w=new IPoste("av_text".$attr->ad_id);
$w->set_attribute('ipopup','ipop_account');
+ $w->set_attribute('jrn','0');
$w->set_attribute('account',"av_text".$attr->ad_id);
$w->dbl_click_history();
// account created automatically
@@ -639,6 +640,7 @@ class Fiche
$w->id=$p_in."av_text".$r->ad_id;
$w->set_attribute('ipopup', 'ipop_account');
$w->set_attribute('account', $w->id);
+ $w->set_attribute('jrn','0');
$w->dbl_click_history();
// account created automatically
$w->table=0;
@@ -696,6 +698,7 @@ class Fiche
$w->table=0;
$bulle=Icon_Action::infobulle(14);
$w->value=$r->av_text;
+ $w->set_attribute('jrn','0');
break;
case 'card':
$uniq=rand(0, 1000);
- [Noalyss-commit] [noalyss] branch master updated (a7b8d81 -> ce0a8f8), Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 01/15: Tache 0001885: postes utilisables dans Opération ODS,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/15: New #0001887: ANCGL ajout champs numéro action, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 05/15: NEW #0001886: ANC/ANCIMP/ANCGL >> Export PDF, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 04/15: DEBUG : show file name, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 10/15: Improve : Select_Box , placement, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 02/15: Security : constructor can take info from request, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 03/15: Fix : PHP compatibility with count Fix : Dossier::set_current Code cleaning ,, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 07/15: NEW #0001886: ANC/ANCIMP/ANCGL >> Export PDF Place properly the select_box, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 06/15: Bug : javascript message were unavailable, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 09/15: Cosmetic & code cleaning, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 11/15: Improve : ANCGL , type of export mandatory, Dany De Bontridder, 2021/01/25