noalyss Version-9
Public Member Functions | Private Attributes
Acc_Tax_Purchase_Sale Class Reference
+ Collaboration diagram for Acc_Tax_Purchase_Sale:

Public Member Functions

 __construct ($p_cn, $p_id=-1)
 
 display ()
 display in detail More...
 
 get_by_operation_id ($p_jrid)
 retrieve Jrn_Tax_SQL thx its jr_id More...
 
 getJrnTaxSql ()
 
 save ()
 
 setJrnTaxSql (Jrn_Tax_SQL $jrn_tax_sql)
 

Private Attributes

 $jrn_tax_sql
 

Detailed Description

Definition at line 27 of file acc_tax_purchase_sale.class.php.

Constructor & Destructor Documentation

◆ __construct()

Acc_Tax_Purchase_Sale::__construct (   $p_cn,
  $p_id = -1 
)

Definition at line 31 of file acc_tax_purchase_sale.class.php.

32 {
33 $this->jrn_tax_sql = new Jrn_Tax_SQL($p_cn, $p_id);
34 }
ORM of the table public.jrn_tax.

References $p_id.

Member Function Documentation

◆ display()

Acc_Tax_Purchase_Sale::display ( )

display in detail

Definition at line 71 of file acc_tax_purchase_sale.class.php.

72 {
73 echo_warning(__FILE__.":".__LINE__.__CLASS__."::".__FUNCTION__."not implemented");
74 }
echo_warning($p_string)
warns
Definition: ac_common.php:589

References echo_warning().

+ Here is the call graph for this function:

◆ get_by_operation_id()

Acc_Tax_Purchase_Sale::get_by_operation_id (   $p_jrid)

retrieve Jrn_Tax_SQL thx its jr_id

Parameters
$p_jrid

Definition at line 57 of file acc_tax_purchase_sale.class.php.

58 {
59 $jt_id= $this->jrn_tax_sql->get_cn()->get_value(
60 "select jt_id from jrn_tax where jr_id=$1",
61 [$p_jrid]);
62 $jt_id=(empty($jt_id))?-1:$jt_id;
63 $this->jrn_tax_sql->set("jt_id",$jt_id);
64 if ($jt_id == -1 ) return;
65 $this->jrn_tax_sql->load();
66 }

◆ getJrnTaxSql()

Acc_Tax_Purchase_Sale::getJrnTaxSql ( )
Returns
Jrn_Tax_SQL

Definition at line 39 of file acc_tax_purchase_sale.class.php.

References $jrn_tax_sql.

◆ save()

Acc_Tax_Purchase_Sale::save ( )

Definition at line 75 of file acc_tax_purchase_sale.class.php.

76 {
77 if ($this->jrn_tax_sql->get("jt_id") == -1 ) {
78 $this->jrn_tax_sql->insert();
79 return;
80 }
81 $this->jrn_tax_sql->update();
82 }

◆ setJrnTaxSql()

Acc_Tax_Purchase_Sale::setJrnTaxSql ( Jrn_Tax_SQL  $jrn_tax_sql)
Parameters
Jrn_Tax_SQL$jrn_tax_sql

Definition at line 47 of file acc_tax_purchase_sale.class.php.

48 {
49 $this->jrn_tax_sql = $jrn_tax_sql;
50 return $this;
51 }

References $jrn_tax_sql.

Field Documentation

◆ $jrn_tax_sql

Acc_Tax_Purchase_Sale::$jrn_tax_sql
private

Definition at line 29 of file acc_tax_purchase_sale.class.php.

Referenced by getJrnTaxSql(), and setJrnTaxSql().


The documentation for this class was generated from the following file: