|
noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
|
FacturX French / German Standard for invoicing. More...
Inheritance diagram for Noalyss\XMLDocument\FacturX:
Collaboration diagram for Noalyss\XMLDocument\FacturX:Public Member Functions | |
| build_data ($jr_id) | |
| transform an operation ($jr_id) into an array, which contains needed information for making an e-invoice | |
| check_company_data () | |
| check that mandatory info are saved in the DB | |
| check_customer_data () | |
| check that mandatory info are saved in the DB for customer | |
| check_VAT () | |
| check that the VAT is using a PEPPOL Code | |
| create_invoice ($operation_id) | |
| create the invoice in the right format | |
| make_xml ($jr_id) | |
| create an XML invoice(Factur-X) based on JRN.JR_ID operation @parameter $jr_id (int) operation JRN.JR_ID operation | |
Public Member Functions inherited from Noalyss\XMLDocument\XMLInvoice | |
| __construct (\Database $conx) | |
| $jr_id (int) is JRN.JR_ID | |
| display_error () | |
| display_error display a warning with all error | |
| fill_customer ($card_id) | |
| retrieve data from customer and return it into an array | |
| fill_document ($jr_id) | |
| retrieve additionnal documents but only PDF , not other files | |
| fill_operation_from_array ($a_array) | |
| build operation from array key : | |
| fill_supplier () | |
| complete $this->data from $g_parameter (global variable) for Noalyss_Folder_Parameter | |
| get_data () | |
| return data | |
| get_db_conx () | |
| get Database Connexion | |
| load_noalyss_parameter () | |
| make an array of parameter_extra where pe_code as key and pe_value as value | |
| set_data ($data) | |
| returns data | |
| set_db_conx (\Database $cn) | |
| set Database Connexion | |
| set_pdf_filename ($pdf_filename) | |
| set the PDF | |
Data Fields | |
| const | EXTRA_PARAMETER |
Protected Attributes | |
| $pdf_filename | |
Protected Attributes inherited from Noalyss\XMLDocument\XMLInvoice | |
| $cn | |
| Database conx , current folder. | |
| $data | |
| $jr_id | |
| $data (Array) data retrieve from DB | |
Additional Inherited Members | |
Static Public Member Functions inherited from Noalyss\XMLDocument\XMLInvoice | |
| static | build_xmlinvoice (\Database $conx) |
| thanks MY_INVOICE_FORMAT , create the corresponding object | |
FacturX French / German Standard for invoicing.
Definition at line 42 of file facturx.class.php.
| Noalyss\XMLDocument\FacturX::build_data | ( | $jr_id | ) |
transform an operation ($jr_id) into an array, which contains needed information for making an e-invoice
| $jr_id | (int) operation JRN.JR_ID |
Compute totals VAT and AMOUNT
block cac:LegalMonetaryTotal
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 62 of file facturx.class.php.
References Noalyss\XMLDocument\XMLInvoice\$jr_id, and build_data().
Referenced by build_data(), and make_xml().
Here is the call graph for this function:| Noalyss\XMLDocument\FacturX::check_company_data | ( | ) |
check that mandatory info are saved in the DB
| $a_error | (array) array of errors, empty if nothing found |
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 70 of file facturx.class.php.
References EXTRA_PARAMETER, and Noalyss\XMLDocument\XMLInvoice\load_noalyss_parameter().
Here is the call graph for this function:| Noalyss\XMLDocument\FacturX::check_customer_data | ( | ) |
check that mandatory info are saved in the DB for customer
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 84 of file facturx.class.php.
References $value, ATTR_DEF_ADRESS, ATTR_DEF_CITY, ATTR_DEF_COUNTRY_CODE, ATTR_DEF_NAME, ATTR_DEF_NUMTVA, and ATTR_DEF_POSTCODE.
| Noalyss\XMLDocument\FacturX::check_VAT | ( | ) |
check that the VAT is using a PEPPOL Code
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 263 of file facturx.class.php.
| Noalyss\XMLDocument\FacturX::create_invoice | ( | $operation_id | ) |
create the invoice in the right format
| $operation_id | (int) JRN.JR_ID |
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 235 of file facturx.class.php.
References $operation_id, and make_xml().
Here is the call graph for this function:| Noalyss\XMLDocument\FacturX::make_xml | ( | $jr_id | ) |
create an XML invoice(Factur-X) based on JRN.JR_ID operation @parameter $jr_id (int) operation JRN.JR_ID operation
Reimplemented from Noalyss\XMLDocument\XMLInvoice.
Definition at line 109 of file facturx.class.php.
References $base, $i, Noalyss\XMLDocument\XMLInvoice\$jr_id, $nb, build_data(), and Noalyss\XMLDocument\XMLInvoice\load_noalyss_parameter().
Referenced by create_invoice().
Here is the call graph for this function:
|
protected |
Definition at line 60 of file facturx.class.php.
| const Noalyss\XMLDocument\FacturX::EXTRA_PARAMETER |
Definition at line 44 of file facturx.class.php.
Referenced by check_company_data().