noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
compute.php File Reference

respond ajax request, the get contains the value : More...

Go to the source code of this file.

Variables

 $c =$http->get("c")
 
 $cn =Dossier::connect()
 
 $http =new HttpInput()
 
 $n =$http->get("n")
 
 $other_tax_amount =0
 
 $p =$http->get("p")
 
 $q =$http->get("q")
 
 $result =["ctl"=>$n,"htva"=>$amount,"tva"=>"NA","tvac"=>$amount, "other_tax"=>$other_tax_amount]
 
 $t =$http->get("t")
 
 $tax_ac_id =$http->request("other_tax_id","number",-1)
 
if( $t !=-1) $total =new Acc_Compute()
 
 $User =new Noalyss_user($cn)
 
if(isNUmber($p) &&isNumber($q)) else
 

Detailed Description

respond ajax request, the get contains the value :

  • c for qcode
  • t for tva_id -1 if there is no TVA to compute
  • p for price
  • q for quantity
  • n for number of the ctrl
  • gDossier Must return at least tva, htva and tvac

Definition in file compute.php.

Variable Documentation

◆ $c

◆ $cn

$cn =Dossier::connect()

Definition at line 61 of file compute.php.

◆ $http

$http =new HttpInput()

Definition at line 44 of file compute.php.

◆ $n

◆ $other_tax_amount

◆ $p

$p =$http->get("p")

Definition at line 50 of file compute.php.

◆ $q

$q =$http->get("q")

Definition at line 52 of file compute.php.

◆ $result

$result =["ctl"=>$n,"htva"=>$amount,"tva"=>"NA","tvac"=>$amount, "other_tax"=>$other_tax_amount]

Definition at line 109 of file compute.php.

◆ $t

◆ $tax_ac_id

$tax_ac_id =$http->request("other_tax_id","number",-1)

Definition at line 56 of file compute.php.

◆ $total

if ($t !=-1) $total =new Acc_Compute()

Definition at line 80 of file compute.php.

Referenced by Operation_Exercice\display_total(), and PDF_Operation\print_other_tax().

◆ $User

$User =new Noalyss_user($cn)

Definition at line 62 of file compute.php.

◆ else

if( $tax_ac_id !=-1) if ($t !=-1) else
Initial value:

Definition at line 84 of file compute.php.