Fix link direction for late supplier invoices

Before : $response->url_late always == $response->url
After : if $response->nbtodolate >= 1 : $response->url_late redirects to list with only late unpaid supplier invoices.
This commit is contained in:
Pierre Ardoin 2020-01-27 09:39:38 +01:00 committed by GitHub
parent ecaacc9543
commit e0c8fce229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2231,6 +2231,7 @@ class FactureFournisseur extends CommonInvoice
if ($facturestatic->hasDelay()) {
$response->nbtodolate++;
$response->url_late=DOL_URL_ROOT.'/fourn/facture/list.php?option=late&mainmenu=billing&leftmenu=suppliers_bills';
}
}
$this->db->free($resql);