Debug
This commit is contained in:
parent
b959579b11
commit
5a8a0fb79a
@ -132,9 +132,10 @@ print '<script type="text/javascript">
|
|||||||
* Action
|
* Action
|
||||||
*/
|
*/
|
||||||
if ($action == 'ventil' && ! empty($btn_ventil)) {
|
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)) {
|
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;
|
$mesCodesVentilChoisis = $codeventil;
|
||||||
$cpt = 0;
|
$cpt = 0;
|
||||||
|
|
||||||
@ -153,17 +154,17 @@ if ($action == 'ventil' && ! empty($btn_ventil)) {
|
|||||||
|
|
||||||
dol_syslog("/accountancy/customer/list.php sql=" . $sql, LOG_DEBUG);
|
dol_syslog("/accountancy/customer/list.php sql=" . $sql, LOG_DEBUG);
|
||||||
if ($db->query($sql)) {
|
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 {
|
} 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 ++;
|
$cpt ++;
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
$i = 0;
|
||||||
|
|
||||||
print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lines);
|
print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lines);
|
||||||
|
|
||||||
print '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>';
|
print '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>';
|
||||||
|
|
||||||
|
if ($msg) print $msg.'<br>';
|
||||||
|
|
||||||
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
|
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
|
||||||
print '<input type="hidden" name="action" value="ventil">';
|
print '<input type="hidden" name="action" value="ventil">';
|
||||||
|
|
||||||
|
|||||||
@ -641,7 +641,8 @@ else {
|
|||||||
|
|
||||||
$nom = $langs->trans("FinanceJournal") . ' - ' . $bank_code_journal->getNomUrl(1);
|
$nom = $langs->trans("FinanceJournal") . ' - ' . $bank_code_journal->getNomUrl(1);
|
||||||
$builddate = time();
|
$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);
|
$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;
|
$varlink = 'id_account=' . $id_bank_account;
|
||||||
|
|||||||
@ -440,7 +440,8 @@ if ($action == 'export_csv') {
|
|||||||
$periodlink = '';
|
$periodlink = '';
|
||||||
$exportlink = '';
|
$exportlink = '';
|
||||||
$builddate = time();
|
$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)) {
|
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) {
|
||||||
$description .= $langs->trans("DepositsAreNotIncluded");
|
$description .= $langs->trans("DepositsAreNotIncluded");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -459,7 +459,8 @@ if ($action == 'export_csv') {
|
|||||||
$periodlink = '';
|
$periodlink = '';
|
||||||
$exportlink = '';
|
$exportlink = '';
|
||||||
$builddate = time();
|
$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))
|
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS))
|
||||||
$description .= $langs->trans("DepositsAreNotIncluded");
|
$description .= $langs->trans("DepositsAreNotIncluded");
|
||||||
else
|
else
|
||||||
|
|||||||
@ -135,9 +135,10 @@ print '<script type="text/javascript">
|
|||||||
* Action
|
* Action
|
||||||
*/
|
*/
|
||||||
if ($action == 'ventil' && ! empty($btn_ventil)) {
|
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"]) {
|
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;
|
$mesCodesVentilChoisis = $codeventil;
|
||||||
$cpt = 0;
|
$cpt = 0;
|
||||||
|
|
||||||
@ -157,17 +158,17 @@ if ($action == 'ventil' && ! empty($btn_ventil)) {
|
|||||||
|
|
||||||
dol_syslog('accountancy/supplier/list.php:: sql=' . $sql, LOG_DEBUG);
|
dol_syslog('accountancy/supplier/list.php:: sql=' . $sql, LOG_DEBUG);
|
||||||
if ($db->query($sql)) {
|
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 {
|
} 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 ++;
|
$cpt ++;
|
||||||
}
|
}
|
||||||
} else {
|
} 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...
|
// 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);
|
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 '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>';
|
||||||
|
|
||||||
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
|
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
|
||||||
|
|||||||
@ -100,6 +100,7 @@ DescSellsJournal=Sales journal
|
|||||||
DescPurchasesJournal=Purchases journal
|
DescPurchasesJournal=Purchases journal
|
||||||
FinanceJournal=Finance journal
|
FinanceJournal=Finance journal
|
||||||
DescFinanceJournal=Finance journal including all the types of payments by bank account
|
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
|
CustomerInvoicePayment=Payment of invoice customer
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user