[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 23/38: Merge branch 'devel'
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 23/38: Merge branch 'devel' |
Date: |
Sun, 18 Feb 2024 07:30:44 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit b30138e6b06ecead8bbbe554cace84081b186a84
Merge: 7d9fb60cc e2b640420
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Feb 11 17:32:29 2024 +0100
Merge branch 'devel'
include/class/acc_ledger.class.php | 8 ++++----
include/class/acc_ledger_purchase.class.php | 10 +++++-----
include/class/acc_ledger_sale.class.php | 13 +++++++------
3 files changed, 16 insertions(+), 15 deletions(-)
diff --cc include/class/acc_ledger_purchase.class.php
index d94a36977,e0f1323c9..cc1f2cdd6
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@@ -920,11 -920,11 +920,11 @@@ class Acc_Ledger_Purchase extends Acc_
$this->db->exec_sql('update quant_purchase set qp_internal = $1
where j_id in (select j_id from jrnx where j_grpt=$2)',
array($internal,$seq));
- /**= e_pj then do not increment sequence */
- // if ( strcmp($e_pj,$this->pj) == 0 && noalyss_strlentrim($e_pj)
!= 0 )
- // {
- // $this->inc_seq_pj();
- // }
+ /**= e_pj then do not increment sequence , if the given receipt
number is equal to one computed then increment */
- if ($e_pj == $this->pj && noalyss_strlentrim($e_pj) != 0) {
++ if ($e_pj == $this->pj && noalyss_strlentrim($e_pj) != 0)
+ {
+ $this->inc_seq_pj();
+ }
/* Save the attachment */
if ( isset ($_FILES))
diff --cc include/class/acc_ledger_sale.class.php
index f793c8e5b,a50876206..7358c3ff9
--- a/include/class/acc_ledger_sale.class.php
+++ b/include/class/acc_ledger_sale.class.php
@@@ -619,12 -619,14 +619,13 @@@ class Acc_Ledger_Sale extends Acc_Ledge
$this->pj = $acc_operation->set_pj();
- /* * = e_pj then do not increment sequence */
- /* and e_pj is not null */
- // if (strcmp($e_pj, $this->pj ) == 0 && noalyss_strlentrim($e_pj)
!= 0) {
- // $this->inc_seq_pj();
- // }
-
+ /**
+ *
+ * if the given receipt number is equal to one computed then
increment
+ */
+ if ($e_pj == $this->pj && noalyss_strlentrim($e_pj) != 0) {
+ $this->inc_seq_pj();
+ }
-
$this->db->exec_sql("update jrn set jr_internal=$1 where
jr_grpt_id = $2" ,[$internal,$seq]);
- [Noalyss-commit] [noalyss] 03/38: version 9.2, (continued)
- [Noalyss-commit] [noalyss] 03/38: version 9.2, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 08/38: Task #2128 : Comptabilité française : report, montre le solde de l'année et depuis le début pour les fiches, postes en HTML et PDF, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 05/38: SUIVI : détail , montre nom et prénom, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 19/38: version 9.2, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 33/38: CARD : add button to epxort to PDF, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 26/38: Task #2321: erreur de numérotation, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 29/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 10/38: Filtre ne fonctionne pas tva_search_id est vide, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 11/38: Sécurité : bloquer le changement de date des opérations, Renforce mode strict : change de date impossible, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 17/38: FOLLOWUP : nom contact pas affiché, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 23/38: Merge branch 'devel',
dwm <=
- [Noalyss-commit] [noalyss] 13/38: FOLLOWUP : Cosmetic nombre pièces, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 22/38: Fix : auto numbering receipt, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 32/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 36/38: Fix : Bug cannot filter a list of element, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 27/38: Nouvelle fonction pour ajouter des attributs à un élément DOM, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 31/38: DB protect against JS Injection, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 24/38: Nouveau #00022980002298: detail fiche , historique du suivi, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 35/38: Merge devel, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 09/38: Task #2321: Sécurité : empêcher changement de numéro de pièce, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 16/38: Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement, dwm, 2024/02/18