fix invoice payment

This commit is contained in:
ludo
2023-11-25 19:33:41 +01:00
parent 34f0b2796f
commit 82b864768e
10 changed files with 127 additions and 149 deletions

View File

@@ -6,6 +6,12 @@ use App\Models\Shop\InvoicePayment;
class InvoicePayments
{
public static function init()
{
return [
'payment_types' => self::paymentTypes(),
];
}
public static function get($id, $relations = false)
{
return $relations ? InvoicePayment::with($relations)->findOrFail($id) : InvoicePayment::findOrFail($id);