mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 13:04:38 -04:00
INA-6 | add getInvitationByKey method to purchase order repository.
This commit is contained in:
parent
426e8967d1
commit
79f189d0e8
@ -13,6 +13,7 @@ namespace App\Repositories;
|
|||||||
|
|
||||||
|
|
||||||
use App\Models\PurchaseOrder;
|
use App\Models\PurchaseOrder;
|
||||||
|
use App\Models\PurchaseOrderInvitation;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
class PurchaseOrderRepository extends BaseRepository
|
class PurchaseOrderRepository extends BaseRepository
|
||||||
@ -30,5 +31,9 @@ class PurchaseOrderRepository extends BaseRepository
|
|||||||
|
|
||||||
return $purchase_order;
|
return $purchase_order;
|
||||||
}
|
}
|
||||||
|
public function getInvitationByKey($key) :?PurchaseOrderInvitation
|
||||||
|
{
|
||||||
|
return PurchaseOrderInvitation::where('key', $key)->first();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user