Fix: La navigation des borderaux de remise de chaque échouait si borderau non validé.
This commit is contained in:
parent
a3caec7bc5
commit
a5ae2a6a7c
@ -163,35 +163,35 @@ else
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/fiche.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/fiche.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = $langs->trans("CheckReceipt");
|
$head[$h][1] = $langs->trans("CheckReceipt");
|
||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
// $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/info.php?id='.$_GET["id"];
|
// $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/info.php?id='.$_GET["id"];
|
||||||
// $head[$h][1] = $langs->trans("Info");
|
// $head[$h][1] = $langs->trans("Info");
|
||||||
// $h++;
|
// $h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Cheques"));
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Cheques"));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Confirmation de la suppression du bordereau
|
* Confirmation de la suppression du bordereau
|
||||||
*/
|
*/
|
||||||
if ($_GET['action'] == 'delete')
|
if ($_GET['action'] == 'delete')
|
||||||
{
|
{
|
||||||
$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("DeleteCheckReceipt"), 'Etes-vous sûr de vouloir supprimer ce bordereau ?', 'confirm_delete');
|
$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("DeleteCheckReceipt"), 'Etes-vous sûr de vouloir supprimer ce bordereau ?', 'confirm_delete');
|
||||||
print '<br>';
|
print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Confirmation de la validation du bordereau
|
* Confirmation de la validation du bordereau
|
||||||
*/
|
*/
|
||||||
if ($_GET['action'] == 'valide')
|
if ($_GET['action'] == 'valide')
|
||||||
{
|
{
|
||||||
$facid = $_GET['facid'];
|
$facid = $_GET['facid'];
|
||||||
$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("ValidateCheckReceipt"), 'Etes-vous sûr de vouloir valider ce bordereau, auncune modification n\'est possible une fois le bordereau validé ?', 'confirm_valide');
|
$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("ValidateCheckReceipt"), 'Etes-vous sûr de vouloir valider ce bordereau, auncune modification n\'est possible une fois le bordereau validé ?', 'confirm_valide');
|
||||||
print '<br>';
|
print '<br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mesg) print $mesg.'<br>';
|
if ($mesg) print $mesg.'<br>';
|
||||||
@ -219,7 +219,6 @@ if ($_GET['action'] == 'new')
|
|||||||
$sql.= " ORDER BY b.emetteur ASC, b.rowid ASC;";
|
$sql.= " ORDER BY b.emetteur ASC, b.rowid ASC;";
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -310,7 +309,7 @@ else
|
|||||||
|
|
||||||
// Liste des cheques
|
// Liste des cheques
|
||||||
$sql = "SELECT b.rowid,b.amount,";
|
$sql = "SELECT b.rowid,b.amount,";
|
||||||
$sql.= " b.num_chq,b.emetteur,".$db->pdate("b.dateo")." as date,b.banque,";
|
$sql.= " b.num_chq,b.emetteur,".$db->pdate("b.dateo")." as date,".$db->pdate("b.datec")." as datec,b.banque,";
|
||||||
$sql.= " p.rowid as pid";
|
$sql.= " p.rowid as pid";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."bank as b";
|
$sql.= " FROM ".MAIN_DB_PREFIX."bank as b";
|
||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."paiement as p ON p.fk_bank = b.rowid";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."paiement as p ON p.fk_bank = b.rowid";
|
||||||
@ -319,7 +318,6 @@ else
|
|||||||
$sql.= " ORDER BY $sortfield $sortorder";
|
$sql.= " ORDER BY $sortfield $sortorder";
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
@ -329,13 +327,13 @@ else
|
|||||||
$param="&id=".$remisecheque->id;
|
$param="&id=".$remisecheque->id;
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
'<td>'.$langs->trans("Num").'</td>';
|
'<td>'.$langs->trans("Num").'</td>';
|
||||||
print '<td>'.$langs->trans("Position").'</td>';
|
print '<td>'.$langs->trans("Cheque").'</td>';
|
||||||
print_liste_field_titre($langs->trans("Num"),$_SERVER["PHP_SELF"],"b.num_chq", "",$param,'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Numero"),$_SERVER["PHP_SELF"],"b.num_chq", "",$param,'align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("CheckTransmitter"),$_SERVER["PHP_SELF"],"b.emetteur", "",$param,"",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("CheckTransmitter"),$_SERVER["PHP_SELF"],"b.emetteur", "",$param,"",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Bank"),$_SERVER["PHP_SELF"],"b.banque", "",$param,"",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Bank"),$_SERVER["PHP_SELF"],"b.banque", "",$param,"",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Amount"),$_SERVER["PHP_SELF"],"b.amount", "",$param,'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Amount"),$_SERVER["PHP_SELF"],"b.amount", "",$param,'align="right"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("LineRecord"),$_SERVER["PHP_SELF"],"b.rowid", "",$param,'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("LineRecord"),$_SERVER["PHP_SELF"],"b.rowid", "",$param,'align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("DateOperation"),$_SERVER["PHP_SELF"],"b.dateo", "",$param,'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateChequeReceived"),$_SERVER["PHP_SELF"],"b.datec", "",$param,'align="center"',$sortfield,$sortorder);
|
||||||
print "<td> </td></tr>\n";
|
print "<td> </td></tr>\n";
|
||||||
$i=1;
|
$i=1;
|
||||||
$var=false;
|
$var=false;
|
||||||
@ -361,7 +359,7 @@ else
|
|||||||
print ' ';
|
print ' ';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="center">'.dolibarr_print_date($objp->date).'</td>';
|
print '<td align="center">'.dolibarr_print_date($objp->datec,'day').'</td>';
|
||||||
if($remisecheque->statut == 0)
|
if($remisecheque->statut == 0)
|
||||||
{
|
{
|
||||||
print '<td align="right"><a href="fiche.php?id='.$remisecheque->id.'&action=remove&lineid='.$objp->rowid.'">'.img_delete().'</a></td>';
|
print '<td align="right"><a href="fiche.php?id='.$remisecheque->id.'&action=remove&lineid='.$objp->rowid.'">'.img_delete().'</a></td>';
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -110,7 +109,7 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Numero").'</td>';
|
print '<td>'.$langs->trans("CheckReceiptShort").'</td>';
|
||||||
print '<td>'.$langs->trans("Date")."</td>";
|
print '<td>'.$langs->trans("Date")."</td>";
|
||||||
print '<td>'.$langs->trans("Account").'</td>';
|
print '<td>'.$langs->trans("Account").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||||
|
|||||||
@ -44,10 +44,6 @@ ListPayment=List of payments
|
|||||||
ListOfPayments=List of payments
|
ListOfPayments=List of payments
|
||||||
ListOfCustomerPayments=List of customer payments
|
ListOfCustomerPayments=List of customer payments
|
||||||
ListOfSupplierPayments=List of supplier payments
|
ListOfSupplierPayments=List of supplier payments
|
||||||
RulesResultDue=- It includes outstanding invoices, expenses and VAT whether they are paid or not. <br>- It is based on the validation date of invoices and VAT and on the due date for expenses.
|
|
||||||
RulesResultInOut=- It includes the real payments made on invoices, expenses and VAT. <br>- It is based on the payment dates of the invoices, expenses anf VAT.<br>
|
|
||||||
RulesCADue=- It includes the clients' due invoices whether they are paid or not. <br>- It is based on the validation date of these invoices. <br>
|
|
||||||
RulesCAIn=- It includes all the effective payments of invoices received from clients.<br>- It is based on the payment date of these invoices<br>
|
|
||||||
DatePayment=Payment date
|
DatePayment=Payment date
|
||||||
NewVATPayment=New VAT payment
|
NewVATPayment=New VAT payment
|
||||||
VATPayment=VAT Payment
|
VATPayment=VAT Payment
|
||||||
@ -65,13 +61,25 @@ ByUserAuthorOfInvoice=By invoice author
|
|||||||
AccountancyExport=Accountancy export
|
AccountancyExport=Accountancy export
|
||||||
ErrorWrongAccountancyCodeForCompany=Bad customer accountancy code for %s
|
ErrorWrongAccountancyCodeForCompany=Bad customer accountancy code for %s
|
||||||
SuppliersProductsSellSalesTurnover=The generated turnover by the sales of suppliers' products.
|
SuppliersProductsSellSalesTurnover=The generated turnover by the sales of suppliers' products.
|
||||||
CheckReceipt=Check receipt
|
CheckReceipt=Check deposit
|
||||||
|
CheckReceiptShort=Check deposit
|
||||||
NewCheckReceipt=New discount
|
NewCheckReceipt=New discount
|
||||||
NewCheckDeposit=New check deposit
|
NewCheckDeposit=New check deposit
|
||||||
NewCheckDepositOn=New check deposit on account: %s
|
NewCheckDepositOn=New check deposit on account: %s
|
||||||
NoWaitingChecks=No checks waiting for deposit.
|
NoWaitingChecks=No checks waiting for deposit.
|
||||||
|
DateChequeReceived=Cheque reception input date
|
||||||
PaySocialContribution=Pay a social contribution
|
PaySocialContribution=Pay a social contribution
|
||||||
ConfirmPaySocialContribution=Are you sure you want to classify this social contribution as payed?
|
ConfirmPaySocialContribution=Are you sure you want to classify this social contribution as payed?
|
||||||
DeleteSocialContribution=Delete a social contribution
|
DeleteSocialContribution=Delete a social contribution
|
||||||
ConfirmDeleteSocialContribution=Are you sure you want to delete this social contribution?
|
ConfirmDeleteSocialContribution=Are you sure you want to delete this social contribution?
|
||||||
ExportDataset_tax_1=Social contributions and payments
|
ExportDataset_tax_1=Social contributions and payments
|
||||||
|
AnnualSummaryDueDebtMode=Bilan des recettes et dépenses, résumé annuel, en mode <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b>.
|
||||||
|
AnnualSummaryInputOutputMode=Bilan des recettes et dépenses, résumé annuel, en mode <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b>.
|
||||||
|
AnnualByCompaniesDueDebtMode=Bilan des recettes et dépenses, détail par tiers, en mode <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b>.
|
||||||
|
AnnualByCompaniesInputOutputMode=Bilan des recettes et dépenses, détail par tiers, en mode <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b>.
|
||||||
|
SeeReportInInputOutputMode=Voir le rapport <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b> pour un calcul sur les factures effectivement payées
|
||||||
|
SeeReportInDueDebtMode=Voir le rapport <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b> pour un calcul sur les factures non encore payées
|
||||||
|
RulesResultDue=- Amounts shown are with all taxes included<br>- It includes outstanding invoices, expenses and VAT whether they are paid or not. <br>- It is based on the validation date of invoices and VAT and on the due date for expenses.
|
||||||
|
RulesResultInOut=- Amounts shown are with all taxes included<br>- It includes the real payments made on invoices, expenses and VAT. <br>- It is based on the payment dates of the invoices, expenses anf VAT.<br>
|
||||||
|
RulesCADue=- It includes the clients' due invoices whether they are paid or not. <br>- It is based on the validation date of these invoices. <br>
|
||||||
|
RulesCAIn=- It includes all the effective payments of invoices received from clients.<br>- It is based on the payment date of these invoices<br>
|
||||||
|
|||||||
@ -62,10 +62,12 @@ AccountancyExport=Export comptable
|
|||||||
ErrorWrongAccountancyCodeForCompany=Code compta client incorrect pour %s
|
ErrorWrongAccountancyCodeForCompany=Code compta client incorrect pour %s
|
||||||
SuppliersProductsSellSalesTurnover=Chiffres d'affaire générés par la vente des produits des fournisseurs
|
SuppliersProductsSellSalesTurnover=Chiffres d'affaire générés par la vente des produits des fournisseurs
|
||||||
CheckReceipt=Bordereau de remise de chèques
|
CheckReceipt=Bordereau de remise de chèques
|
||||||
|
CheckReceiptShort=Bordereau
|
||||||
NewCheckReceipt=Nouvelle remise
|
NewCheckReceipt=Nouvelle remise
|
||||||
NewCheckDeposit=Nouveau dépôt
|
NewCheckDeposit=Nouveau dépôt
|
||||||
NewCheckDepositOn=Nouveau dépôt sur compte: %s
|
NewCheckDepositOn=Nouveau dépôt sur compte: %s
|
||||||
NoWaitingChecks=Pas de chèque en attente de dépots.
|
NoWaitingChecks=Pas de chèque en attente de dépots.
|
||||||
|
DateChequeReceived=Date saisie réception chèque
|
||||||
PaySocialContribution=Payer une charge sociale
|
PaySocialContribution=Payer une charge sociale
|
||||||
ConfirmPaySocialContribution=Etes-vous sûr de vouloir classer cette charge sociale à payé ?
|
ConfirmPaySocialContribution=Etes-vous sûr de vouloir classer cette charge sociale à payé ?
|
||||||
DeleteSocialContribution=Effacer charge sociale
|
DeleteSocialContribution=Effacer charge sociale
|
||||||
|
|||||||
@ -875,7 +875,10 @@ create table llx_fichinterdet
|
|||||||
|
|
||||||
ALTER TABLE llx_fichinter ADD COLUMN model_pdf varchar(50) after note_public;
|
ALTER TABLE llx_fichinter ADD COLUMN model_pdf varchar(50) after note_public;
|
||||||
|
|
||||||
ALTER TABLE llx_bordereau_cheque MODIFY number integer;
|
ALTER TABLE llx_bordereau_cheque MODIFY number varchar(16) NOT NULL;
|
||||||
|
ALTER TABLE llx_bordereau_cheque MODIFY amount double(24,8) NOT NULL;
|
||||||
|
ALTER TABLE llx_bordereau_cheque MODIFY nbcheque smallint NOT NULL;
|
||||||
|
ALTER TABLE llx_bordereau_cheque MODIFY statut smallint(1) NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE llx_facturedet ADD COLUMN special_code tinyint(4) unsigned default 0;
|
ALTER TABLE llx_facturedet ADD COLUMN special_code tinyint(4) unsigned default 0;
|
||||||
ALTER TABLE llx_facturedet MODIFY special_code tinyint(4) unsigned default 0;
|
ALTER TABLE llx_facturedet MODIFY special_code tinyint(4) unsigned default 0;
|
||||||
|
|||||||
@ -25,13 +25,13 @@
|
|||||||
create table llx_bordereau_cheque
|
create table llx_bordereau_cheque
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
datec datetime,
|
datec datetime NOT NULL,
|
||||||
date_bordereau date,
|
date_bordereau date, -- A quoi sert cette date ?
|
||||||
number integer,
|
number varchar(16) NOT NULL,
|
||||||
amount float(12,2),
|
amount double(24,8) NOT NULL,
|
||||||
nbcheque smallint UNSIGNED DEFAULT 0,
|
nbcheque smallint NOT NULL,
|
||||||
fk_bank_account integer,
|
fk_bank_account integer,
|
||||||
fk_user_author integer,
|
fk_user_author integer,
|
||||||
note text,
|
note text,
|
||||||
statut tinyint(1) UNSIGNED DEFAULT 0
|
statut smallint(1) NOT NULL DEFAULT 0
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user