Manage one row of operation of Sale / Purchase for importing them. More...
Public Member Functions | |
transform ($ledger_id, $import_id) | |
Works by id_group_code : all the rows with the same id_code_group belong to the same operation The operation will be written in the right ledger Only operation with a id_status = 0 can be transferred , -1 is in error and 1 means that it has already been transferred. More... | |
check_nb_column () | |
record (Impacc_Csv $p_csv, Impacc_File $p_file) | |
insert file into the table import_detail More... | |
Static Public Member Functions | |
static | check (Impacc_Import_detail_SQL $row, $p_format_date, $p_thousand, $p_decimal) |
Check if Data are valid for one row. More... | |
Manage one row of operation of Sale / Purchase for importing them.
Definition at line 30 of file class_impacc_csv_sale_purchase.php.
|
static |
Check if Data are valid for one row.
$row | is an Impacc_Import_detail_SQL object |
$p_format_date | check for date_limit and date_payment |
$p_thousand | separator for thousands |
$p_decimal | separator for decimal |
Definition at line 50 of file class_impacc_csv_sale_purchase.php.
References $date, Impacc_Verify\check_date(), Impacc_Verify\check_tva(), and Impacc_Tool\convert_amount().
Referenced by Impacc_CSV\check().
Impacc_Csv_Sale_Purchase::check_nb_column | ( | ) |
Definition at line 113 of file class_impacc_csv_sale_purchase.php.
Impacc_Csv_Sale_Purchase::record | ( | Impacc_Csv | $p_csv, |
Impacc_File | $p_file | ||
) |
insert file into the table import_detail
Definition at line 121 of file class_impacc_csv_sale_purchase.php.
References $aseparator, $cn, $error, $nb_row, and $row.
Impacc_Csv_Sale_Purchase::transform | ( | $ledger_id, | |
$import_id | |||
) |
Works by id_group_code : all the rows with the same id_code_group belong to the same operation The operation will be written in the right ledger Only operation with a id_status = 0 can be transferred , -1 is in error and 1 means that it has already been transferred.
Definition at line 38 of file class_impacc_csv_sale_purchase.php.