[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 27/44: Quant_Fin : set the j_id when an opera
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 27/44: Quant_Fin : set the j_id when an operation is recorded |
Date: |
Wed, 26 Dec 2018 04:29:54 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 4848d75130e714fe4c46e6826d980c4fee0c5679
Author: Dany De Bontridder <address@hidden>
Date: Wed Nov 28 21:18:39 2018 +0100
Quant_Fin : set the j_id when an operation is recorded
---
include/class/acc_ledger_fin.class.php | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/include/class/acc_ledger_fin.class.php
b/include/class/acc_ledger_fin.class.php
index 0a2364b..86f84e3 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -814,7 +814,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
}
$acc_operation->periode = $tperiode;
$acc_operation->qcode = ${"e_other" . $i};
- $j_id = $acc_operation->insert_jrnx();
+ $j_id_other = $acc_operation->insert_jrnx();
$acc_operation = new Acc_Operation($this->db);
$acc_operation->date = $e_date;
@@ -931,7 +931,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
/**
* save also into quant_fin
*/
- $this->insert_quant_fin($fBank->id, $jr_id,
$fPoste->id, ${"e_other$i" . "_amount"});
+ $this->insert_quant_fin($fBank->id, $jr_id,
$fPoste->id, ${"e_other$i" . "_amount"},$j_id_other);
if ($g_parameter->MY_ANALYTIC != "nu")
{
@@ -1147,17 +1147,18 @@ class Acc_Ledger_Fin extends Acc_Ledger
/**
* insert into the quant_fin table
- * @param $bank_id is the f_id of the bank
- * @param $jr_id is the jrn.jr_id of the operation
- * @param $other is the f_id of the benefit
- * @param $amount is the amount
+ * @param integer $bank_id is the f_id of the bank
+ * @param integer $jr_id is the jrn.jr_id of the operation
+ * @param integer $other is the f_id of the benefit
+ * @param integer $amount is the amount
+ * @param integer $p_j_id is the j_id of the operation
*/
- function insert_quant_fin($p_bankid, $p_jrid, $p_otherid, $p_amount)
+ function insert_quant_fin($p_bankid, $p_jrid, $p_otherid,
$p_amount,$p_j_id)
{
- $sql = "INSERT INTO quant_fin(qf_bank, jr_id, qf_other,
qf_amount)
- VALUES ($1, $2, $3, $4);";
+ $sql = "INSERT INTO quant_fin(qf_bank, jr_id, qf_other,
qf_amount,j_id)
+ VALUES ($1, $2, $3, $4,$5);";
- $this->db->exec_sql($sql, array($p_bankid, $p_jrid, $p_otherid,
round($p_amount, 2)));
+ $this->db->exec_sql($sql, array($p_bankid, $p_jrid, $p_otherid,
round($p_amount, 2),$p_j_id));
}
}
- [Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array, (continued)
- [Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 35/44: predefined operation , find a label for an accounting thx its value, the pk is now an numeric id, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 17/44: Document : replace properly value in the OOo file, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 40/44: PHP 7.2 : sizeof attribut, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 22/44: Exception rethrow, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 37/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 05/44: Bug : cannot set group, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 21/44: cosmetic, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 30/44: acc_ledger_fin . translation, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 29/44: Background color, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 27/44: Quant_Fin : set the j_id when an operation is recorded,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 25/44: Currency : SQL quant_fin is adapted, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 31/44: Indentation, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 32/44: change background, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 15/44: typo, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 34/44: predefined operation , invalid value for database::setp, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 28/44: reverse for quant_fin, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 36/44: Pre_Operation : add attribut, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 08/44: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 44/44: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 42/44: Doc + typo, Dany De Bontridder, 2018/12/26