Quote approve button not shown for incorrect strtotime() conversion #1579

This commit is contained in:
Hillel Coren 2017-07-19 20:49:45 +03:00
parent 4b08c20d72
commit 016c58353f

View File

@ -130,7 +130,7 @@ class ClientPortalController extends BaseController
$showApprove = $invoice->quote_invoice_id ? false : true; $showApprove = $invoice->quote_invoice_id ? false : true;
if ($invoice->due_date) { if ($invoice->due_date) {
$showApprove = time() < strtotime($invoice->due_date); $showApprove = time() < strtotime($invoice->getOriginal('due_date'));
} }
if ($invoice->invoice_status_id >= INVOICE_STATUS_APPROVED) { if ($invoice->invoice_status_id >= INVOICE_STATUS_APPROVED) {
$showApprove = false; $showApprove = false;