noalyss-commit
[Top][All Lists]
Advanced

[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');



reply via email to

[Prev in Thread] Current Thread [Next in Thread]