Skip to content

Commit

Permalink
FIX #7000 Dashboard link for late pending payment supplier invoices d…
Browse files Browse the repository at this point in the history
…o not work

Close #7000
  • Loading branch information
marcosgdf committed Sep 3, 2017
1 parent 9fe1d84 commit eb9e8c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/fourn/class/fournisseur.facture.class.php
Expand Up @@ -1507,7 +1507,7 @@ function load_board($user)
$response = new WorkboardResponse();
$response->warning_delay=$conf->facture->fournisseur->warning_delay/60/60/24;
$response->label=$langs->trans("SupplierBillsToPay");
$response->url=DOL_URL_ROOT.'/fourn/facture/list.php?filtre=fac.fk_statut:1,paye:0&mainmenu=accountancy&leftmenu=suppliers_bills';
$response->url=DOL_URL_ROOT.'/fourn/facture/list.php?filtre=f.fk_statut:1,paye:0&mainmenu=accountancy&leftmenu=suppliers_bills';
$response->img=img_object($langs->trans("Bills"),"bill");

$facturestatic = new FactureFournisseur($this->db);
Expand Down
5 changes: 4 additions & 1 deletion htdocs/fourn/facture/list.php
Expand Up @@ -84,9 +84,12 @@
$month_lim = GETPOST('month_lim','int');
$year_lim = GETPOST('year_lim','int');
$toselect = GETPOST('toselect', 'array');
$filter = GETPOST('filtre');

$option = GETPOST('option');
if ($option == 'late') $filter = 'paye:0';
if ($option == 'late') {
$filter = 'paye:0';
}

$search_all = GETPOST('sall');
$search_label = GETPOST("search_label","alpha");
Expand Down

0 comments on commit eb9e8c9

Please sign in to comment.