1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix comma formating

This commit is contained in:
Hillel Coren 2017-12-05 17:25:47 +02:00
parent 3a6b27ff9e
commit 92e924faf7

View File

@ -68,7 +68,10 @@ class InvoiceDatatable extends EntityDatatable
function ($model) {
$str = '';
if ($model->partial_due_date) {
$str = Utils::fromSqlDate($model->partial_due_date) . ', ';
$str = Utils::fromSqlDate($model->partial_due_date);
if ($model->due_date_sql && $model->due_date_sql != '0000-00-00') {
$str .= ', ';
}
}
return $str . Utils::fromSqlDate($model->due_date_sql);
},