Fix exception in AccountingInvoiceAdd
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user