Update PaymentTermTransformer.php

This commit is contained in:
David Bomba 2018-01-23 15:53:47 +11:00 committed by GitHub
parent 66b61db4fd
commit ccb9d5a9f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class PaymentTermTransformer extends EntityTransformer
'name' => trans('texts.payment_terms_net') . ' ' . $paymentTerm->getNumDays(),
'updated_at' => $this->getTimestamp($paymentTerm->updated_at),
'archived_at' => $this->getTimestamp($paymentTerm->deleted_at),
'is_default' => (bool) $paymentTerm->account_id == 0 ? 1 : 0,
'is_default' => (bool) $paymentTerm->account_id == 0 ? true : false,
]);
}
}