mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
3d11713457
commit
5810b7c9a6
@ -124,8 +124,12 @@ class AuthorizeCustomer
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
nlog("creating client");
|
nlog("creating client");
|
||||||
|
|
||||||
$first_payment_profile = $profile['payment_profiles'][0];
|
$first_payment_profile = $profile['payment_profiles'][0];
|
||||||
|
|
||||||
|
if(!$first_payment_profile)
|
||||||
|
continue;
|
||||||
|
|
||||||
$client = ClientFactory::create($company->id, $user->id);
|
$client = ClientFactory::create($company->id, $user->id);
|
||||||
$billTo = $first_payment_profile->getBillTo();
|
$billTo = $first_payment_profile->getBillTo();
|
||||||
$client->address1 = $billTo->getAddress();
|
$client->address1 = $billTo->getAddress();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user