report_compte_comptable
🔧 TS_NOOA_lowcode_modal_compte_comptable_csv
Check de la validité de l'export comptable CSV avant l'export
function TS_NOOA_lowcode_modal_compte_comptable_csv()
{
global $navi_id_type;
global $navi_id_obje;
$id_vue_liste_export_comptable = fwp7_param_objet_setting_get('', $navi_id_type, 'liste', 'id_export_comptable');
$listFacture = fwc7_vuesearch_engine('', 169, $id_vue_liste_export_comptable, '');
$errors = [];
foreach ($listFacture as $object) {
$id_type_fac = $object['id_type'];
$id_fac = $object['id_obje'];
$row = [];
// ... (truncated)
↩️ Returns
(void)
🔧 TS_NOOA_report_spe_compte_comptable_csv
Export SPE compte comptable CSV
function TS_NOOA_report_spe_compte_comptable_csv()
{
global $navi_id_type;
$id_vue_liste_export_comptable = fwp7_param_objet_setting_get('', $navi_id_type, 'liste', 'id_export_comptable');
// Create the CSV
$filename = "Export_comptable_" . date('d-m-Y') . ".csv";
$filepath = fwk_set_full_datapath() . "csv/";
if (!is_dir($filepath)) {
mkdir($filepath, 0777, true);
}
$path_filename = $filepath . $filename;
fwk7_report_csv_create($path_filename);
// ... (truncated)
↩️ Returns
(void)
🔧 TS_NOOA_report_spe_compte_comptable_reglements_csv
Export SPE compte comptable Règlements CSV
function TS_NOOA_report_spe_compte_comptable_reglements_csv()
{
global $navi_id_type;
$id_vue_liste_export_comptable = fwp7_param_objet_setting_get('', $navi_id_type, 'reglement', 'liste', 'id_export_comptable');
// Create the CSV
$filename = "Export_comptable_reglements_" . date('d-m-Y') . ".csv";
$filepath = fwk_set_full_datapath() . "csv/";
if (!is_dir($filepath)) {
mkdir($filepath, 0777, true);
}
$path_filename = $filepath . $filename;
fwk7_report_csv_create($path_filename);
// ... (truncated)
↩️ Returns
(void)
🔧 NOOA_fwk7_report_csv_writeline
Fonction pour changer le séparateur CSV de ; vers | pour l'export FEC
function NOOA_fwk7_report_csv_writeline($datas) {
global $fp;
global $mode;
$corrected_datas=array();
foreach ($datas as $data) {
$corrected_datas[]=str_ireplace(';','_',$data);
}
if ($mode=="html") {
echo 'Ligne : '.implode(';',$corrected_datas).'<br>';
} else {
// ... (truncated)
↩️ Returns
(void)
🔧 TS_NOOA_report_spe_compte_comptable_FEC
Export SPE compte comptable FEC
function TS_NOOA_report_spe_compte_comptable_FEC()
{
global $navi_id_type;
global $user;
$startDate = "";
$endDate = "";
$environnement = fwp7_param_params_detail("",'franchiseur_nom');
if ($environnement == "Rainea") {
$filtre = 'filtre_auto_282';
}
if ($environnement == "Exteco") {
// ... (truncated)
↩️ Returns
(void)
🔧 TS_NOOA_report_spe_produit_matrice_compte_comptable_xlsx
Export SPE produit pour matrice compte comptable
function TS_NOOA_report_spe_produit_matrice_compte_comptable_xlsx()
{
global $mode;
global $user;
$mode="html3";
$user_interface = get_UserIdentification($user->id,'','','');
$id_group_franchise = $user_interface['user']['groups'][0];
$wcProduits = [
"att20 = " . $id_group_franchise . " ", // Filtre selon la franchise
];
$list_produits = fwc7_data_objet_atts('',161,1,$wcProduits);
$wcFranchise = [
// ... (truncated)
🔧 TS_NOOA_report_spe_produit_matrice_franchiseur_compte_comptable_xlsx
Export SPE produit pour matrice compte comptable
function TS_NOOA_report_spe_produit_matrice_franchiseur_compte_comptable_xlsx()
{
global $mode;
global $user;
$mode="html3";
$wcProduits = [
"attf100 = '1'", // Produit franchiseur = true
];
$list_produits = fwc7_data_objet_atts('',161,1,$wcProduits);
// Création de l'excel
fwk7_report_xlsx_create();
// On commence à la cellule 1/1
$j=1;$i=1;
fwk7_report_xlsx_setdata_colrow($i,$j,'produit_franchiseur');$i++;
// ... (truncated)