mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-14 20:44:37 -04:00
commit
0a39fbb141
@ -451,6 +451,12 @@ trait GenerateMigrationResources
|
|||||||
$agts = AccountGatewayToken::where('client_id', $ninja_client->id)->get();
|
$agts = AccountGatewayToken::where('client_id', $ninja_client->id)->get();
|
||||||
$is_default = true;
|
$is_default = true;
|
||||||
|
|
||||||
|
if(count($agts) == 0) {
|
||||||
|
$transformed[] = [
|
||||||
|
'client' => $ninja_client
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
foreach($agts as $agt) {
|
foreach($agts as $agt) {
|
||||||
|
|
||||||
$payment_method = $agt->default_payment_method;
|
$payment_method = $agt->default_payment_method;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user