1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01: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;