More fixes for invoice_to, fix PushNew on belongs to relations

This commit is contained in:
Deon George
2020-07-06 16:02:59 +10:00
parent 878277907a
commit b0f9d07af9
5 changed files with 20 additions and 11 deletions

View File

@@ -24,6 +24,9 @@ class Invoice extends Model
protected $dates = ['date_orig','due_date'];
public $dateFormat = 'U';
// Array of items that can be updated with PushNew
protected $pushable = ['items'];
protected $appends = [
'date_due',
'due',