diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php index ded2837787fd..160790415bac 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php @@ -120,6 +120,7 @@ class AuthorizeCreditCard $payment->client_id = $this->authorize->client->id; $payment->company_gateway_id = $this->authorize->company_gateway->id; $payment->status_id = Payment::STATUS_COMPLETED; + $payment->gateway_type_id = $this->authorize->payment_method; $payment->type_id = PaymentType::CREDIT_CARD_OTHER; $payment->currency_id = $this->authorize->client->getSetting('currency_id'); $payment->date = Carbon::now(); @@ -129,7 +130,6 @@ class AuthorizeCreditCard $payment->client->getNextPaymentNumber($this->authorize->client); $payment->save(); - $this->authorize->attachInvoices($payment, $request->hashed_ids); $payment->service()->updateInvoicePayment(); diff --git a/app/Services/Payment/RefundPayment.php b/app/Services/Payment/RefundPayment.php index 32c0dc472999..4cd5b940c53c 100644 --- a/app/Services/Payment/RefundPayment.php +++ b/app/Services/Payment/RefundPayment.php @@ -243,9 +243,9 @@ class RefundPayment //todo adjust ledger balance here? or after and reference the credit and its total } - $ledger_string = "Refund for Invoice {$invoice->number} for amount " . $refunded_invoice['amount']; //todo + // $ledger_string = "Refund for Invoice {$invoice->number} for amount " . $refunded_invoice['amount']; //todo - $this->credit_note->ledger()->updateCreditBalance($adjustment_amount, $ledger_string); + // $this->credit_note->ledger()->updateCreditBalance($adjustment_amount, $ledger_string); $client = $this->payment->client->fresh(); $client->paid_to_date -= $this->total_refund; diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index 5d173a2d30ff..5c9057fb7a4a 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -65,7 +65,7 @@ class UserTest extends TestCase $data = [ 'first_name' => 'hey', 'last_name' => 'you', - 'email' => 'bob@good.ole.boys.com', + 'email' => 'bob1@good.ole.boys.com', 'company_user' => [ 'is_admin' => false, 'is_owner' => false,