Go to the source code of this file.
Functions | |
| GetTvaRate ($p_cn, $p_tva_id) | |
| Return the rate of the p_tva_id. | |
| ComputeTotalVat ($p_cn, $a_fiche, $a_quant, $a_price, $ap_vat, $all=false) | |
| Compute the vat, the fiche.f_id are in a_fiche the quantity in a_quant. | |
| ComputeVat ($p_cn, $p_fiche, $p_quant, $p_price, $p_vat) | |
| Compute the vat for only one elt, the fiche.f_id are in p_fiche the quantity in p_quant. | |
| GetTvaPoste ($p_cn, $p_tva_id, $p_cred) | |
| Get the account of tva_rate.tva_poste return the credit or the debit account. | |
| InsertJrnx ($p_cn, $p_type, $p_user, $p_jrn, $p_poste, $p_date, $p_amount, $p_grpt, $p_periode, $p_qcode="") | |
| Insert into the table Jrn. | |
| InsertJrn ($p_cn, $p_date, $p_echeance, $p_jrn, $p_comment, $p_amount, $p_grpt, $p_periode) | |
| Insert into the table Jrnx. | |
| ListJrn ($p_cn, $p_jrn, $p_where="", $p_array=null, $p_value=0, $p_paid=0) | |
| show all the lines of the asked jrn | |
| InsertStockGoods ($p_cn, $p_j_id, $p_good, $p_quant, $p_type) | |
| Insert data into stock_goods,. | |
| withStock ($p_cn, $p_f_id) | |
| return true if we manage stock for it value is stored in attr_value | |
| VerifyOperationDate ($p_cn, $p_periode, $p_date) | |
| Verify if the date is a valid date the date is in the default period the period is not closed. | |
| InsertRapt ($p_cn, $jr_id, $jr_id2) | |
| Insert into jrn_rapt the concerned operations. | |
| DeleteRapt ($p_cn, $jr_id, $jr_id2) | |
| Insert into jrn_rapt the concerned operations. | |
| GetConcerned ($p_cn, $jr_id) | |
| Return an array of the concerned operation. | |
| GetGrpt ($p_cn, $p_jr_id) | |
| Return the jr_grpt_id from jrn where jr_id = $p_jr_id. | |
| UpdateComment ($p_cn, $p_jr_id, $p_comment) | |
| Update comment in jrn. | |
| isValid ($p_cn, $p_grpt_id) | |
| test if a jrn op is valid | |
| jrn_navigation_bar ($p_offset, $p_line, $p_size=0, $p_page=1) | |
| Create a navigation_bar (pagesize). | |
Definition in file user_common.php.
|
||||||||||||||||||||||||||||
|
Compute the vat, the fiche.f_id are in a_fiche the quantity in a_quant.
Definition at line 68 of file user_common.php. References $a, $a_vat, $flag, $idx, $r, $tva_id, echo_debug(), GetTvaRate(), and isNumber(). Referenced by RecordInvoice(), and RecordSell(). |
|
||||||||||||||||||||||||
|
Compute the vat for only one elt, the fiche.f_id are in p_fiche the quantity in p_quant.
Definition at line 171 of file user_common.php. References $a, $a_vat, $tva_id, echo_debug(), GetTvaRate(), and isNumber(). Referenced by RecordInvoice(), and RecordSell(). |
|
||||||||||||||||
|
Insert into jrn_rapt the concerned operations. DeleteRapt($p_cn,$jr_id,$jr_id2) parm :
jr_id (jrn.jr_id) => jrn_rapt.jr_id
Definition at line 730 of file user_common.php. References $Res, CountSql(), echo_debug(), echo_error(), ExecSql(), and isNumber(). |
|
||||||||||||
|
Return an array of the concerned operation. GetConcerned (p_cn ,jr_id) parm :
jrn.jr_id gen :
array if something is found Definition at line 761 of file user_common.php. References $i, $l, $n, $r, $Res, $sql, and ExecSql(). Referenced by ListJrn(), and UpdateJrn(). |
|
||||||||||||
|
Return the jr_grpt_id from jrn where jr_id = $p_jr_id. GetGrpt($p_cn,$p_jr_id) parm :
$p_cn database connection gen :
return the jrn.jr_grpt_id or null Definition at line 792 of file user_common.php. References $r, $Res, and ExecSql(). Referenced by UpdateJrn(). |
|
||||||||||||||||
|
Get the account of tva_rate.tva_poste return the credit or the debit account.
Definition at line 210 of file user_common.php. References $a, $Res, echo_error(), and ExecSql(). Referenced by RecordInvoice(), and RecordSell(). |
|
||||||||||||
|
Return the rate of the p_tva_id.
Definition at line 39 of file user_common.php. References $r, $Res, and ExecSql(). Referenced by ComputeTotalVat(), ComputeVat(), FormAchView(), FormVenteView(), and Document::Replace(). |
|
||||||||||||||||||||||||||||||||||||
|
Insert into the table Jrnx. InsertJrn($p_cn,$p_date,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode parm :
$p_date date
nothing Definition at line 287 of file user_common.php. References $Res, $sql, echo_debug(), ExecSql(), FormatString(), GetSequence(), and p_comment. Referenced by RecordFin(), RecordInvoice(), RecordSell(), and TransferCSV(). |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Insert into the table Jrn. InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode parm :
$p_type debit or credit
nothing Definition at line 243 of file user_common.php. References $Res, $sql, echo_debug(), ExecSql(), and GetSequence(). Referenced by RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), and TransferCSV(). |
|
||||||||||||||||
|
Insert into jrn_rapt the concerned operations. InsertRapt($p_cn,$jr_id,$jr_id2) parm :
jr_id (jrn.jr_id) => jrn_rapt.jr_id
Definition at line 699 of file user_common.php. References $Res, CountSql(), echo_debug(), echo_error(), ExecSql(), and isNumber(). Referenced by RecordFin(). |
|
||||||||||||||||||||||||
|
Insert data into stock_goods,. InsertStockGoods($p_cn,$j_id,$a_good[$i],$a_quant[$i],'c'); parm :
$p_j_id the j_id
Definition at line 595 of file user_common.php. References $r, $Res, $sql, echo_debug(), ExecSql(), and f_id. Referenced by RecordInvoice(), and RecordSell(). |
|
||||||||||||
|
test if a jrn op is valid isValid ($p_cn, $p_grpt_id parm :
p_grpt_id gen :
Definition at line 834 of file user_common.php. References $a, $Res, echo_error(), and ExecSql(). Referenced by cl_user::cl_user(). |
|
||||||||||||||||||||
|
Create a navigation_bar (pagesize). jrn_navigation_bar
Definition at line 861 of file user_common.php. References $_SESSION, $e, $offset, $r, $step, $url, name, size, and value. Referenced by action::myList(), Customer::Summary(), contact::Summary(), and ViewFiche(). |
|
||||||||||||||||||||||||||||
|
show all the lines of the asked jrn ListJrn($p_cn,$p_jrn,$p_wherel) parm :
$p_jrn jrn_id jrn.jrn_def_id
Definition at line 321 of file user_common.php. References $_SESSION, $a, $count, $h, $limit, $Max, $offset, $p_jrn, $r, $Res, $row, $sql, $tr, $User, $w, CountSql(), DbConnect(), ExecSql(), FormatString(), GetConcerned(), GetInternal(), GetJrnProp(), isDate(), and table. |
|
||||||||||||||||
|
Update comment in jrn. UpdateComment ($p_cn,$p_jr_id,$p_comment) parm :
Definition at line 814 of file user_common.php. References $Res, ExecSql(), FormatString(), and p_comment. |
|
||||||||||||||||
|
Verify if the date is a valid date the date is in the default period the period is not closed. VerifyOperationDate ($p_cn,$p_user,$p_date) parm :
user
null if error or date if ok Definition at line 653 of file user_common.php. References cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), and PeriodeClosed(). |
|
||||||||||||
|
return true if we manage stock for it value is stored in attr_value withStock($p_cn,$p_f_id) parm :
$p_f_id fiche.f_id gen :
Definition at line 630 of file user_common.php. References $a, and getFicheAttribut(). |
1.4.4