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();