mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for payment migration
This commit is contained in:
parent
5121a02b4d
commit
a536b9d6b8
@ -1328,6 +1328,7 @@ trait GenerateMigrationResources
|
|||||||
'refunded' => $payment->refunded ?: 0,
|
'refunded' => $payment->refunded ?: 0,
|
||||||
'date' => $payment->payment_date,
|
'date' => $payment->payment_date,
|
||||||
'transaction_reference' => $payment->transaction_reference ?: '',
|
'transaction_reference' => $payment->transaction_reference ?: '',
|
||||||
|
'private_notes' => $payment->private_notes ?: '',
|
||||||
'payer_id' => $payment->payer_id,
|
'payer_id' => $payment->payer_id,
|
||||||
'is_deleted' => (bool)$payment->is_deleted,
|
'is_deleted' => (bool)$payment->is_deleted,
|
||||||
'exchange_rate' => $payment->exchange_rate ? number_format((float) $payment->exchange_rate, 6) : null,
|
'exchange_rate' => $payment->exchange_rate ? number_format((float) $payment->exchange_rate, 6) : null,
|
||||||
@ -1367,10 +1368,26 @@ trait GenerateMigrationResources
|
|||||||
const SEPA = 29;
|
const SEPA = 29;
|
||||||
const GOCARDLESS = 30;
|
const GOCARDLESS = 30;
|
||||||
const CRYPTO = 31;
|
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)
|
private function transformPaymentType($payment_type_id)
|
||||||
{
|
{
|
||||||
switch ($payment_type_id) {
|
switch ($payment_type_id) {
|
||||||
|
case 4:
|
||||||
|
return 42;
|
||||||
case PAYMENT_TYPE_CREDIT:
|
case PAYMENT_TYPE_CREDIT:
|
||||||
return 32;
|
return 32;
|
||||||
case PAYMENT_TYPE_ACH:
|
case PAYMENT_TYPE_ACH:
|
||||||
|
@ -4157,7 +4157,7 @@ $LANG = array(
|
|||||||
'group_documents' => 'Group documents',
|
'group_documents' => 'Group documents',
|
||||||
'quote_approval_confirmation_label' => 'Are you sure you want to approve this quote?',
|
'quote_approval_confirmation_label' => 'Are you sure you want to approve this quote?',
|
||||||
'migration_select_company_label' => 'Select companies to migrate',
|
'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',
|
'require_password_with_social_login' => 'Require Password with Social Login',
|
||||||
'stay_logged_in' => 'Stay Logged In',
|
'stay_logged_in' => 'Stay Logged In',
|
||||||
'session_about_to_expire' => 'Warning: Your session is about to expire',
|
'session_about_to_expire' => 'Warning: Your session is about to expire',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user