Minor fixes for deleted_at column on invoice
This commit is contained in:
parent
835f9b49ce
commit
3733853cd3
1 changed files with 3 additions and 1 deletions
|
|
@ -168,7 +168,9 @@ class InvoiceMigrationRepository extends BaseRepository
|
|||
$model->save();
|
||||
}
|
||||
|
||||
if($data['deleted_at'])
|
||||
if($data['deleted_at'] == '0000-00-00 00:00:00.000000')
|
||||
$model->deleted_at = null;
|
||||
else if($data['deleted_at'])
|
||||
$model->delete();
|
||||
|
||||
$model->save();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue