Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

user_form_ach.php File Reference

Functions for the ledger of expenses. More...

Go to the source code of this file.

Functions

 FormAchInput ($p_cn, $p_jrn, $p_periode, $p_array=null, $p_submit="", $pview_only=true, $p_article=1)
 Display the form for a sell Used to show detail, encode a new invoice or update one.
 form_verify_input ($p_cn, $p_jrn, $p_periode, $p_array, $p_number)
 verify if the data to insert are valid
 FormAchView ($p_cn, $p_jrn, $p_periode, $p_array, $p_submit, $p_number, $p_piece=true)
 Show the invoice before inserting it the database.
 RecordSell ($p_cn, $p_array, $p_user, $p_jrn)
 Record an invoice in the table jrn & jrnx.


Detailed Description

Functions for the ledger of expenses.

Definition in file user_form_ach.php.


Function Documentation

form_verify_input p_cn,
p_jrn,
p_periode,
p_array,
p_number
 

verify if the data to insert are valid

Parameters:
$p_cn database connection
$p_jrn concerned ledger
$p_periode User periode
$p_array array with the post data
$p_number number of items
Returns:
null if error

Definition at line 251 of file user_form_ach.php.

References CountSql(), echo_debug(), echo_error(), isDate(), isNumber(), and name.

FormAchInput p_cn,
p_jrn,
p_periode,
p_array = null,
p_submit = "",
pview_only = true,
p_article = 1
 

Display the form for a sell Used to show detail, encode a new invoice or update one.

Parameters:
$p_array which can be empty (normally = $_POST)
$p_jrn the ledger
$p_periode = periode
$pview_only if we cannot change it (no right or centralized op)
$p_article number of article
Returns:
: string with the form

Definition at line 44 of file user_form_ach.php.

References $fiche, $h, $list, $p_jrn, $r, $sql, echo_debug(), echo_error(), GetArray(), GetPeriode(), isNumber(), and make_array().

FormAchView p_cn,
p_jrn,
p_periode,
p_array,
p_submit,
p_number,
p_piece = true
 

Show the invoice before inserting it the database.

Parameters:
$p_cn database connection
p_jrn journal
$p_periode 
$p_array array of value
$p_number nb of item
$piece == true we can upload a doc.

Definition at line 453 of file user_form_ach.php.

References $a_vat, $data, $file, $h, $r, getFicheAttribut(), getFicheName(), GetTvaRate(), isNumber(), METHOD, and name.

RecordSell p_cn,
p_array,
p_user,
p_jrn
 

Record an invoice in the table jrn & jrnx.

parm :

  • $p_cn Database connection

$p_array contains all the invoice data e_date => e : 01.01.2003 e_client => e : 3 nb_item => e : 3 e_march0 => e : 6 e_quant0 => e : 0 e_march0_sell=>e:1 e_march1 => e : 6 e_quant1 => e : 2 e_march1_sell=>e:1 e_march2 => e : 7 e_quant2 => e : 3 e_march2_sell=>e:1 V : view_invoice => e : Voir cette facture V : record_invoice => e : Sauver

  • $p_periode periode
  • $p_jrn current folder (journal) gen :
    • none return: true on success

Definition at line 627 of file user_form_ach.php.

References $a_vat, $amount, $comment, $e, $i, $poste, $r, $Res, $seq, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql().


Generated on Fri Jun 23 00:12:47 2006 for phpcompta by  doxygen 1.4.4