diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php index 7d2326b05e5936475456f643c79671891a0957fe..358c2268e6009295ab4766baaa2e4effad776456 100644 --- a/htdocs/accountancy/customer/list.php +++ b/htdocs/accountancy/customer/list.php @@ -132,9 +132,10 @@ print '<script type="text/javascript"> * Action */ if ($action == 'ventil' && ! empty($btn_ventil)) { - print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>'; + $msg=''; + //print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>'; if (! empty($codeventil) && ! empty($mesCasesCochees)) { - print '<div><font color="red">' . count($mesCasesCochees) . ' ' . $langs->trans("SelectedLines") . '</font></div>'; + $msg = '<div><font color="red">' . count($mesCasesCochees) . ' ' . $langs->trans("SelectedLines") . '</font></div>'; $mesCodesVentilChoisis = $codeventil; $cpt = 0; @@ -153,17 +154,17 @@ if ($action == 'ventil' && ! empty($btn_ventil)) { dol_syslog("/accountancy/customer/list.php sql=" . $sql, LOG_DEBUG); if ($db->query($sql)) { - print '<div><font color="green">' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("VentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '</font></div>'; + $msg.= '<div><font color="green">' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("VentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '</font></div>'; } else { - print '<div><font color="red">' . $langs->trans("ErrorDB") . ' : ' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NotVentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '<br/> <pre>' . $sql . '</pre></font></div>'; + $msg.= '<div><font color="red">' . $langs->trans("ErrorDB") . ' : ' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NotVentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '<br/> <pre>' . $sql . '</pre></font></div>'; } $cpt ++; } } else { - print '<div><font color="red">' . $langs->trans("AnyLineVentilate") . '</font></div>'; + $msg. '<div><font color="red">' . $langs->trans("AnyLineVentilate") . '</font></div>'; } - print '<div><font color="red">' . $langs->trans("EndProcessing") . '</font></div>'; + $msg.= '<div><font color="red">' . $langs->trans("EndProcessing") . '</font></div>'; } /* @@ -230,8 +231,11 @@ if ($result) { $i = 0; print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lines); + print '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>'; + if ($msg) print $msg.'<br>'; + print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n"; print '<input type="hidden" name="action" value="ventil">'; diff --git a/htdocs/accountancy/journal/bankjournal.php b/htdocs/accountancy/journal/bankjournal.php index a0c06c1e0ceb4a376471a8161e25d7946c554baa..dbc3dc325a9d6037e041a1e1a148a49122a231f4 100644 --- a/htdocs/accountancy/journal/bankjournal.php +++ b/htdocs/accountancy/journal/bankjournal.php @@ -641,7 +641,8 @@ else { $nom = $langs->trans("FinanceJournal") . ' - ' . $bank_code_journal->getNomUrl(1); $builddate = time(); - $description = $langs->trans("DescFinanceJournal") . '<br>'; + //$description = $langs->trans("DescFinanceJournal") . '<br>'; + $description.= $langs->trans("DescJournalOnlyBindedVisible").'<br>'; $period = $form->select_date($date_start, 'date_start', 0, 0, 0, '', 1, 0, 1) . ' - ' . $form->select_date($date_end, 'date_end', 0, 0, 0, '', 1, 0, 1); $varlink = 'id_account=' . $id_bank_account; diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index 6f73dce7e6fb3f5ca2bca2ebe23f37572a111953..ac4055822eb117442fa6c185be5d6689ddf3cb46 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -440,7 +440,8 @@ if ($action == 'export_csv') { $periodlink = ''; $exportlink = ''; $builddate = time(); - $description = $langs->trans("DescPurchasesJournal") . '<br>'; + //$description = $langs->trans("DescPurchasesJournal") . '<br>'; + $description.= $langs->trans("DescJournalOnlyBindedVisible").'<br>'; if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) { $description .= $langs->trans("DepositsAreNotIncluded"); } else { diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php index 29ec8d50db173f5d99ead060605c39bc6cddc541..1d6cbb8749492bb71c4cfbab2f92ad2047dd973a 100644 --- a/htdocs/accountancy/journal/sellsjournal.php +++ b/htdocs/accountancy/journal/sellsjournal.php @@ -459,7 +459,8 @@ if ($action == 'export_csv') { $periodlink = ''; $exportlink = ''; $builddate = time(); - $description = $langs->trans("DescSellsJournal") . '<br>'; + //$description = $langs->trans("DescSellsJournal") . '<br>'; + $description.= $langs->trans("DescJournalOnlyBindedVisible").'<br>'; if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) $description .= $langs->trans("DepositsAreNotIncluded"); else diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php index c98ba0502228b118abaeeb0554688b1ee8bcd0de..e48f01413184b08d62b360ab7f9656a14df83207 100644 --- a/htdocs/accountancy/supplier/list.php +++ b/htdocs/accountancy/supplier/list.php @@ -135,9 +135,10 @@ print '<script type="text/javascript"> * Action */ if ($action == 'ventil' && ! empty($btn_ventil)) { - print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>'; + $msg=''; + //print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>'; if ($_POST['codeventil'] && $_POST["mesCasesCochees"]) { - print '<div><font color="red">' . count($_POST["mesCasesCochees"]) . ' ' . $langs->trans("SelectedLines") . '</font></div>'; + $msg = '<div><font color="red">' . count($_POST["mesCasesCochees"]) . ' ' . $langs->trans("SelectedLines") . '</font></div>'; $mesCodesVentilChoisis = $codeventil; $cpt = 0; @@ -157,17 +158,17 @@ if ($action == 'ventil' && ! empty($btn_ventil)) { dol_syslog('accountancy/supplier/list.php:: sql=' . $sql, LOG_DEBUG); if ($db->query($sql)) { - print '<div><font color="green">' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("VentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '</font></div>'; + $msg.= '<div><font color="green">' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("VentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '</font></div>'; } else { - print '<div><font color="red">' . $langs->trans("ErrorDB") . ' : ' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NotVentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '<br/> <pre>' . $sql . '</pre></font></div>'; + $msg.= '<div><font color="red">' . $langs->trans("ErrorDB") . ' : ' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NotVentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '<br/> <pre>' . $sql . '</pre></font></div>'; } $cpt ++; } } else { - print '<div><font color="red">' . $langs->trans("AnyLineVentilate") . '</font></div>'; + $msg.= '<div><font color="red">' . $langs->trans("AnyLineVentilate") . '</font></div>'; } - print '<div><font color="red">' . $langs->trans("EndProcessing") . '</font></div>'; + $msg.= '<div><font color="red">' . $langs->trans("EndProcessing") . '</font></div>'; } /* @@ -233,6 +234,8 @@ if ($result) { // TODO : print_barre_liste always use $conf->liste_limit and do not care about custom limit in list... print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lines); + if ($msg) print $msg.'<br>'; + print '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>'; print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n"; diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang index fa6cac31601df458bef2de437b7522f4b3a4e8b5..16c49c352d16f0431a7c78a767bc18387cc0a83e 100644 --- a/htdocs/langs/en_US/accountancy.lang +++ b/htdocs/langs/en_US/accountancy.lang @@ -100,6 +100,7 @@ DescSellsJournal=Sales journal DescPurchasesJournal=Purchases journal FinanceJournal=Finance journal DescFinanceJournal=Finance journal including all the types of payments by bank account +DescJournalOnlyBindedVisible=This is a view of records that are binded to accountancy account and can be breakdowned into the General Ledger. CustomerInvoicePayment=Payment of invoice customer