[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 32/35: Fix problem with orphan_lob_clean inst
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 32/35: Fix problem with orphan_lob_clean instead of clean_orphan_lob and fix problem when checking analytic when amount == 0 |
Date: |
Tue, 24 May 2016 21:25:40 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 3d90c5e0490e85d109c736d0c5241c81733a72f6
Author: Dany De Bontridder <address@hidden>
Date: Wed May 18 09:47:38 2016 +0200
Fix problem with orphan_lob_clean instead of clean_orphan_lob
and fix problem when checking analytic when amount == 0
---
html/js/anc_script.js | 6 +++++-
include/modele.inc.php | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index 83ca95d..7d4491f 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -158,7 +158,11 @@ function verify_ca(div)
total_amount += parseFloat(array_value[i].value);
}
var amount = Math.abs(parseFloat(g('amount_t' + idx).value));
- amount = Math.round(amount*100)/100;
+ if (isNaN(amount)) {
+ amount=0;
+ } else {
+ amount = Math.round(amount*100)/100;
+ }
var diff = amount - total_amount;
if (Math.round(diff, 2) != 0.0)
diff --git a/include/modele.inc.php b/include/modele.inc.php
index b472cad..7c5f6da 100644
--- a/include/modele.inc.php
+++ b/include/modele.inc.php
@@ -234,7 +234,7 @@ if (isset($_POST["FMOD_NAME"]))
}
}
// Clean orphan log
- $cn_mod->orphan_lob_clean();
+ $cn_mod->clean_orphan_lob();
}
// Show all available templates
- [Noalyss-commit] [noalyss] 02/35: Extension : fix path, (continued)
- [Noalyss-commit] [noalyss] 02/35: Extension : fix path, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 26/35: Import IText, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 23/35: Fix several small bugs, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 35/35: Impress JRN Fix bug with qcode, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 13/35: translation, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 19/35: CFGPLUGIN : Add filter to plugin table, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 20/35: Fiche : détail fiche , change taille id fiche, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 25/35: Fix several small bugs, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 24/35: Cosmetic change CSS for mobile, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 11/35: Anc_Operation :fix undefined offset in Anc_Operation::save_form_plan, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 32/35: Fix problem with orphan_lob_clean instead of clean_orphan_lob and fix problem when checking analytic when amount == 0,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/35: Improve : Admin/user for admin , no database details since he can connect all of them, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 31/35: Export CSV print ledger , add the qcode for ODS and FIN, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 30/35: Update IDate with HTML5, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 06/35: Fix : check if a LOB exists before unlinking Doc, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 16/35: Limit email by folder, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 34/35: Adapt CSS for mobile, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 28/35: Improve Doc : doxygen, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 29/35: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 04/35: Fix bug with pg_largeobject, Dany De Bontridder, 2016/05/24
- [Noalyss-commit] [noalyss] 03/35: Fix small bug : PHP Notice: Undefined property: Acc_Tva::$tva_both_side, Dany De Bontridder, 2016/05/24