From 8f283f83f213b53c614d1d90e1c61f86c1d6eafd Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 14 May 2023 21:39:54 +1000 Subject: [PATCH] Fix exception in AccountingInvoiceAdd --- app/Console/Commands/AccountingInvoiceAdd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/AccountingInvoiceAdd.php b/app/Console/Commands/AccountingInvoiceAdd.php index 417fe56..b7b64df 100644 --- a/app/Console/Commands/AccountingInvoiceAdd.php +++ b/app/Console/Commands/AccountingInvoiceAdd.php @@ -49,7 +49,7 @@ class AccountingInvoiceAdd extends Command // Check the customer exists if ($o->account->providers->where('pivot.provider_oauth_id',$so->id)->count() !== 1) - throw new \Exception('Account [%d] for Invoice [%d] not defined',$o->account_id,$o->id); + throw new \Exception(sprintf('Account [%d] for Invoice [%d] not defined',$o->account_id,$o->id)); $ao = $o->account->providers->where('pivot.provider_oauth_id',$so->id)->pop();