#!/usr/bin/php true]) as $address) { $icust = new IvtCustomer($address->customer_number); if(!$icust->id) continue; if(!$icust->IBAN && !$icust->BIC) continue; $bank_iban = strtoupper(trim($address->bank_account_iban)); $bank_bic = strtoupper(trim($address->bank_account_bic)); $ivt_iban = strtoupper(trim($icust->IBAN)); $ivt_bic = strtoupper(trim($icust->BIC)); if($ivt_iban != $bank_iban || $ivt_bic != $bank_bic) { echo $address->customer_number.";".$address->getCompanyOrName().";".$icust->id.";".($icust->company ? $icust->company : $icust->firstname." ".$icust->surname).";$bank_iban;$bank_bic;$ivt_iban;$ivt_bic\n"; $address->bank_account_iban = $ivt_iban; $address->bank_account_bic = $ivt_bic; //$address->save(); } }