This commit is contained in:
James Cole
2019-09-23 17:11:01 +02:00
parent a1ae85660d
commit 3c8935c0a8
5 changed files with 24 additions and 1 deletions

View File

@@ -686,4 +686,12 @@ class BillRepository implements BillRepositoryInterface
return $service->update($bill, $data);
}
/**
* @param Bill $bill
*/
public function unlinkAll(Bill $bill): void
{
$this->user->transactionJournals()->where('bill_id', $bill->id)->update(['bill_id' => null]);
}
}