mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Fixes for payment migration
This commit is contained in:
parent
5121a02b4d
commit
a536b9d6b8
@ -1328,6 +1328,7 @@ trait GenerateMigrationResources
|
||||
'refunded' => $payment->refunded ?: 0,
|
||||
'date' => $payment->payment_date,
|
||||
'transaction_reference' => $payment->transaction_reference ?: '',
|
||||
'private_notes' => $payment->private_notes ?: '',
|
||||
'payer_id' => $payment->payer_id,
|
||||
'is_deleted' => (bool)$payment->is_deleted,
|
||||
'exchange_rate' => $payment->exchange_rate ? number_format((float) $payment->exchange_rate, 6) : null,
|
||||
@ -1367,10 +1368,26 @@ trait GenerateMigrationResources
|
||||
const SEPA = 29;
|
||||
const GOCARDLESS = 30;
|
||||
const CRYPTO = 31;
|
||||
|
||||
const MOLLIE_BANK_TRANSFER = 34;
|
||||
const KBC = 35;
|
||||
const BANCONTACT = 36;
|
||||
const IDEAL = 37;
|
||||
const HOSTED_PAGE = 38;
|
||||
const GIROPAY = 39;
|
||||
const PRZELEWY24 = 40;
|
||||
const EPS = 41;
|
||||
const DIRECT_DEBIT = 42;
|
||||
const BECS = 43;
|
||||
const ACSS = 44;
|
||||
const INSTANT_BANK_PAY = 45;
|
||||
const FPX = 46;
|
||||
*/
|
||||
private function transformPaymentType($payment_type_id)
|
||||
{
|
||||
switch ($payment_type_id) {
|
||||
case 4:
|
||||
return 42;
|
||||
case PAYMENT_TYPE_CREDIT:
|
||||
return 32;
|
||||
case PAYMENT_TYPE_ACH:
|
||||
|
@ -4157,7 +4157,7 @@ $LANG = array(
|
||||
'group_documents' => 'Group documents',
|
||||
'quote_approval_confirmation_label' => 'Are you sure you want to approve this quote?',
|
||||
'migration_select_company_label' => 'Select companies to migrate',
|
||||
'force_migration' => 'Force migration',
|
||||
'force_migration' => 'Force migration <b>**WARNING** This will overwrite any data you have on v5.</b>',
|
||||
'require_password_with_social_login' => 'Require Password with Social Login',
|
||||
'stay_logged_in' => 'Stay Logged In',
|
||||
'session_about_to_expire' => 'Warning: Your session is about to expire',
|
||||
|
Loading…
Reference in New Issue
Block a user