[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 79/238: Bug : in Purchase and Sale , the last
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 79/238: Bug : in Purchase and Sale , the last rows disappear when we change the ledger |
Date: |
Sat, 26 Oct 2019 04:40:38 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel7110
in repository noalyss.
commit 5b558f0d0ff1fd1c2420463ac64a93dd1eb08b9a
Author: Dany De Bontridder <address@hidden>
Date: Sat Sep 29 12:25:04 2018 +0200
Bug : in Purchase and Sale , the last rows disappear when we change the
ledger
---
html/js/acc_ledger.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js
index 52aa5b7..e488708 100644
--- a/html/js/acc_ledger.js
+++ b/html/js/acc_ledger.js
@@ -175,19 +175,21 @@ function update_row(ctl)
var answer = request.responseText.evalJSON(true);
var row = parseFloat(answer.row);
var current_row = parseFloat($('nb_item').value);
+ var table_to_update=$(ctl);
if (current_row > row) {
- // Too many row
- var delta = $('nb_item').value - row;
+ // Too many row, we always must keep 2 rows
for the sum
+ var delta = $('nb_item').value - row ;
var idx = $('nb_item').value;
for (var i = 0; i < delta; i++) {
- $(ctl).deleteRow(-1);
+ var pos_row=table_to_update.rows.length;
+ table_to_update.deleteRow(pos_row-3);
idx--;
}
$('nb_item').value = row;
}
if (current_row < row) {
// We need to add rows
- var delta = row - current_row;
+ var delta = row - current_row ;
for (var i = 0; i < delta; i++) {
if (ctl == 'fin_item') {
ledger_fin_add_row();
- [Noalyss-commit] [noalyss] 88/238: FIN : cosmetic : bug due the currency feature in the input there are 2 supplementary rows for total in EUR and CURRENCY. Those rows don't exist for FIN, (continued)
- [Noalyss-commit] [noalyss] 88/238: FIN : cosmetic : bug due the currency feature in the input there are 2 supplementary rows for total in EUR and CURRENCY. Those rows don't exist for FIN, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 85/238: Currency : financial ledger can be set to a specific currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 105/238: Background color, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 107/238: Currency : export PDF and CSV with currency for printing financial ledger listing(oneline), Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 55/238: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 60/238: Security fix : f_id is a number, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 57/238: Security : direct injection, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 67/238: Documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 73/238: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 71/238: Check for date and number : isdate and isnumeric, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 79/238: Bug : in Purchase and Sale , the last rows disappear when we change the ledger,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 49/238: Update documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 54/238: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 61/238: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 69/238: Create lib for Tabs, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 72/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 70/238: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type select, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 83/238: adapt to 7.2 ,init, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 78/238: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2019/10/26