From 5ccbc0e1f0355c8d0cd59b7d8e2aedeb22a18fb8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 4 Nov 2021 16:00:49 +1100 Subject: [PATCH] Minor fixes for logging --- app/Console/Commands/CheckData.php | 2 +- app/PaymentDrivers/PayFastPaymentDriver.php | 4 ++-- app/PaymentDrivers/WePay/ACH.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index cd813340b079..ac6c388684fb 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -693,7 +693,7 @@ ORDER BY clients.id; if ($ledger && (string) $invoice_balance != (string) $client['client_balance']) { $this->wrong_paid_to_dates++; - $client_object = Client::find($client['client_id']); + $client_object = Client::withTrashed()->find($client['client_id']); $this->logMessage($client_object->present()->name.' - '.$client_object->id." - calculated client balances do not match Invoice Balances = {$invoice_balance} - Client Balance = ".rtrim($client['client_balance'], '0'). " Ledger balance = {$ledger->balance}"); diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index 30a550e58dbe..b67026eaf518 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -203,8 +203,8 @@ class PayFastPaymentDriver extends BaseDriver { $data = $request->all(); - nlog("payfast"); - nlog($data); + // nlog("payfast"); + // nlog($data); if(array_key_exists('m_payment_id', $data)) { diff --git a/app/PaymentDrivers/WePay/ACH.php b/app/PaymentDrivers/WePay/ACH.php index ae49f350418d..7e9d2055d577 100644 --- a/app/PaymentDrivers/WePay/ACH.php +++ b/app/PaymentDrivers/WePay/ACH.php @@ -50,7 +50,7 @@ class ACH $data = $request->all(); // authorize the credit card - nlog($data); + //nlog($data); /* '_token' => '1Fk5CRj34up5ntKPvrFyMIAJhDdUNF3boqT3iIN3', 'company_gateway_id' => '39',