1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-18 23:42:25 +02:00

Fixes for ninja users

This commit is contained in:
David Bomba 2022-05-19 17:40:50 +10:00
parent 8b855003a1
commit 9bcd4e028b

View File

@ -451,6 +451,12 @@ trait GenerateMigrationResources
$agts = AccountGatewayToken::where('client_id', $ninja_client->id)->get();
$is_default = true;
if(count($agts) == 0) {
$transformed[] = [
'client' => $ninja_client
];
}
foreach($agts as $agt) {
$payment_method = $agt->default_payment_method;