mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - Remove comments
This commit is contained in:
@@ -41,7 +41,7 @@ class UpdatePerfexCRMPrelude implements ShouldQueue
|
||||
{
|
||||
$serviceTypeName = $this->transaction->owner->company->services()->where('id', $this->transaction->owner->service_id)->first()->name;
|
||||
$booking = $this->transaction->booking;
|
||||
$bank = $booking->bank; //cief todo: 66
|
||||
$bank = $booking->bank;
|
||||
if($this->transaction->bank){
|
||||
$bank = $this->transaction->bank;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class ExportsAnalyticBillingTransactions implements FromCollection, WithHeadings
|
||||
$bill = $transaction;
|
||||
$payment = $transaction->owner;
|
||||
$booking = $payment->owner;
|
||||
$bank = $booking->bank; //cief todo: 66
|
||||
$bank = $booking->bank;
|
||||
if($payment->bank){
|
||||
$bank = $payment->bank;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class PaymentTransactionResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = null; //cief todo: 66
|
||||
$booking = null;
|
||||
$bank = null;
|
||||
//Check if Transaction of type PAYMENT has an override for recipient bank - starts
|
||||
if(in_array((int)$this->type, [TransactionType::BILL, TransactionType::REFUND])){
|
||||
|
||||
@@ -19,7 +19,7 @@ class TransactionResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = null; //cief todo: 66
|
||||
$booking = null;
|
||||
$bank = null;
|
||||
|
||||
//Check if Transaction of type PAYMENT has an override for recipient bank - starts
|
||||
|
||||
@@ -19,7 +19,7 @@ class TransactionUrgentResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = null; //cief todo: 66
|
||||
$booking = null;
|
||||
$bank = null;
|
||||
//Check if Transaction of type PAYMENT has an override for recipient bank - starts
|
||||
if(in_array((int)$this->type, [TransactionType::BILL, TransactionType::REFUND, TransactionType::SUPPLIER_REFUND])){
|
||||
|
||||
@@ -18,7 +18,7 @@ class ListTransactionJobResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = null; //cief todo: 66
|
||||
$booking = null;
|
||||
$bank = null;
|
||||
//Check if Transaction of type PAYMENT has an override for recipient bank - starts
|
||||
if(in_array((int)$this->type, [TransactionType::BILL, TransactionType::REFUND])){
|
||||
|
||||
@@ -684,9 +684,6 @@
|
||||
this.calculation = null;
|
||||
this.expandPayment = false;
|
||||
},
|
||||
// updatedBankDetails(bank){ //cief todo: 66 - this need to move to vuex, too many levels of passings between parent and child
|
||||
// this.item.bank = bank;
|
||||
// },
|
||||
removeVoucher(){
|
||||
this.voucherCodeFailedReason = '';
|
||||
this.voucherCode = '';
|
||||
|
||||
+5
-3
@@ -37,6 +37,8 @@ use App\Classes\Modules\Transactions\Services\DeletesTransaction;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Classes\General\AWSS3Helper;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -427,7 +429,7 @@ Route::get('/pending_orders', function(){
|
||||
$i = 0;
|
||||
foreach ($payments as $payment){
|
||||
$booking = $payment->owner;
|
||||
$bank = $payment->bank ?? $booking->bank; //cief todo: 66
|
||||
$bank = $payment->bank ?? $booking->bank;
|
||||
|
||||
$original_refunds = floatval((App()->make(CalculatesBookingRefundAmount::class))->calculateRefundAmount($payment, $booking->fix_currency_id));
|
||||
$refunds = $original_refunds / $payment->currency_rate;
|
||||
@@ -532,7 +534,7 @@ Route::get('/approve_refunds', function(Request $request){
|
||||
foreach ($approve_refunds->orderBy('created_at', 'DESC')->get() as $index => $refund){
|
||||
$payment = $refund->owner;
|
||||
$booking = $refund->owner->owner;
|
||||
$bank = $payment->bank ?? $booking->bank; //cief todo: 66
|
||||
$bank = $payment->bank ?? $booking->bank;
|
||||
|
||||
if(!$booking instanceof Booking){
|
||||
dd($refund);
|
||||
@@ -588,7 +590,7 @@ Route::get('/group/text/{id}', function($id){
|
||||
foreach ($group->transactions as $transaction){
|
||||
$i++;
|
||||
$booking = $transaction->owner->owner;
|
||||
$bank = $transaction->owner->bank ?? $booking->bank; //cief todo: 66
|
||||
$bank = $transaction->owner->bank ?? $booking->bank;
|
||||
|
||||
echo 'No.'.$i.'<br>';
|
||||
echo 'Bank Details:'.$bank->holder_name.'<br>';
|
||||
|
||||
Reference in New Issue
Block a user