[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 28/323: Task #1466 : add a receipt number if
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 28/323: Task #1466 : add a receipt number if paid by an ODS ledger |
Date: |
Wed, 14 Mar 2018 17:38:12 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 0cd7ca06d6d6044d00503b3020bf929fa13a56a5
Author: Dany De Bontridder <address@hidden>
Date: Mon Jan 8 18:35:28 2018 +0100
Task #1466 : add a receipt number if paid by an ODS ledger
---
include/class/acc_ledger_purchase.class.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/class/acc_ledger_purchase.class.php
b/include/class/acc_ledger_purchase.class.php
index 3d9c11d..1f3696a 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -875,10 +875,15 @@ class Acc_Ledger_Purchase extends Acc_Ledger
/* insert into jrn */
$acc_pay->mt=$mt;
$acc_pay->desc=(!isset($e_comm_paiement) ||
strlen(trim($e_comm_paiement)) == 0) ?$e_comm:$e_comm_paiement;
+
$mp_jr_id=$acc_pay->insert_jrn();
$acjrn->grpt_id=$acseq;
$acjrn->update_internal_code($acinternal);
-
+ // add an automatic PJ if ODS
+ if ($acjrn->get_type()=="ODS") {
+ $acc_pay->pj=$acjrn->guess_pj();
+ $acc_pay->set_pj();
+ }
$r1=$this->get_id($internal);
$r2=$this->get_id($acinternal);
- [Noalyss-commit] [noalyss] 10/323: Acc_Plan_SQL : add doxygen doc, (continued)
- [Noalyss-commit] [noalyss] 10/323: Acc_Plan_SQL : add doxygen doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 14/323: Update Doxyfile : version nb, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 15/323: Fix problem with font OpenSans, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 19/323: Task #1516 : Module période : add icon for closing / opening, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 12/323: Rewriting periode : add format date + exception, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 24/323: use calcy instead of computing the scroll, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 20/323: Add documentation , code rewriting : use of title_box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 25/323: Task#1461 : nombre de fiches dans catégorie, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 27/323: set_jrn in deprecated and replaced by set_ledger, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 22/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 28/323: Task #1466 : add a receipt number if paid by an ODS ledger,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 21/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 26/323: Task#1461 : nombre de fiches dans catégorie, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 29/323: Task #1466 : add a receipt number if paid by an ODS ledger (Sale & Sold), Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 32/323: documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 30/323: Task #1326 & #1512 = ajout détail extourne, libellé, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 39/323: Bug : profile_id was missing, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 35/323: Bug in Manage_Table_SQL when an exception is thrown from ajax_input, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 44/323: Misplacing of box due to a change in the id name, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 31/323: documentation, Dany De Bontridder, 2018/03/14