[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/33: Sale & Purchase Quantity with 2 dec.
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/33: Sale & Purchase Quantity with 2 dec. |
Date: |
Thu, 11 Nov 2021 06:02:42 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit c3a68e2fcb1fe5648616cfb2d3ae7634583018c0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Sep 30 20:45:46 2021 +0200
Sale & Purchase Quantity with 2 dec.
---
include/class/acc_ledger_purchase.class.php | 6 +++---
include/class/acc_ledger_sale.class.php | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/class/acc_ledger_purchase.class.php
b/include/class/acc_ledger_purchase.class.php
index 06a9592..394654f 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1180,7 +1180,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$wLedger=$this->select_ledger('ACH',2,FALSE);
if ($wLedger == null) throw new Exception(_('Pas de journal
disponible'));
-
$wLedger->javascript="onChange='update_predef(\"ach\",\"f\",\"".$_REQUEST['ac']."\");$add_js'";
+
$wLedger->javascript="onChange='update_predef(\"ach\",\"f\",\"".$http->request("ac")."\");$add_js'";
$wLedger->table=0;
$f_jrn=$wLedger->input();
@@ -1406,7 +1406,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$Quantity=new INum();
$Quantity->setReadOnly(false);
$Quantity->size=9;
-
$Quantity->javascript="onchange=\"format_number(this,4);clean_tva($i);compute_ledger($i)\"";
+
$Quantity->javascript="onchange=\"format_number(this,2);clean_tva($i);compute_ledger($i)\"";
$array[$i]['quantity']=$Quantity->input("e_quant".$i,$quant);
}
@@ -1434,7 +1434,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$op->set_p_jrn($this->id);
$op->set_jrn_type("ACH");
$op->set_od_direct('f');
-
$url=http_build_query(array('p_jrn_predef'=>$this->id,'ac'=>$_REQUEST['ac'],'gDossier'=>dossier::id()));
+
$url=http_build_query(array('p_jrn_predef'=>$this->id,'ac'=>$http->request('ac'),'gDossier'=>dossier::id()));
echo $op->form_get('do.php?'.$url);
echo '</div>';
$str_op_template=ob_get_contents();
diff --git a/include/class/acc_ledger_sale.class.php
b/include/class/acc_ledger_sale.class.php
index 9a5e7cf..2e4568c 100644
--- a/include/class/acc_ledger_sale.class.php
+++ b/include/class/acc_ledger_sale.class.php
@@ -1477,7 +1477,7 @@ EOF;
$Quantity->setReadOnly(false);
$Quantity->size = 8;
- $Quantity->javascript =
"onchange=\"format_number(this,4);clean_tva($i);compute_ledger($i);\"";
+ $Quantity->javascript =
"onchange=\"format_number(this,2);clean_tva($i);compute_ledger($i);\"";
$array[$i]['quantity'] = $Quantity->input("e_quant" . $i, $quant);
}// foreach article
$f_type = _('Client');
- [Noalyss-commit] [noalyss] branch master updated (8b28b18 -> 2b1bcd5), Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 04/33: Sale & Purchase Quantity with 2 dec.,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 01/33: Cosmetic : move dialog horizontally and vertically, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter, dialog box search operation, TVA, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 09/33: Rounded for currency, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 08/33: Operation details : calcul correctement la différence avec les opérations extournées, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 12/33: Button close for new card, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 06/33: Bug rounded : show amount in currency with 4 dec., Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 10/33: For Misc Operation in currency , show the currency amount / row, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 11/33: Bug for reversed operation when currency are used, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 03/33: Improve HttpInput::extract , the array is set and not passed anymore, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 05/33: Bug : pour non-assujetti , pas de calcul en devise, Dany De Bontridder, 2021/11/11