Compare commits

...

10 Commits

Author SHA1 Message Date
edmondlang 1a3466a8b8 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into show_extra_parcel_information
# Conflicts:
#	app/Http/Resources/TransactionResource.php
#	resources/assets/vue/components/paymentsBilling/elements/CustomerPaymentsBillingComponent.vue
2023-12-11 18:47:22 +08:00
Dillon Ngo 782a5c33ad Merge branch 'dillon/48-feedback-form-improvement' into 'master'
Update title for public feedback form page requested by Omair

See merge request CIEFWorldwideSdnBhd/shipping-portal!179
2023-12-09 04:54:15 +00:00
Dillon Ngo 730b3d439a Merge branch 'dillon/48-feedback-form-improvement' into 'master'
Feedback form improvement

See merge request CIEFWorldwideSdnBhd/shipping-portal!178
2023-12-08 12:23:51 +00:00
Omair Saleh 4c532deb4d debug yd address update 2023-11-28 22:44:36 +08:00
edmondlang 12f05b7aa6 add paymentUnknownOrderLog 2023-11-28 22:15:36 +08:00
edmondlang 5cdbc09c5b update packinglist measurement - add order number 2023-11-26 23:45:32 +08:00
edmondlang c9877bb53e update packinglist measurement - change from order number to packinglist number 2023-11-26 22:21:02 +08:00
edmondlang 0bf84fa7b1 update combined invoice and packinglist measurement 2023-11-26 22:01:02 +08:00
Dillon Ngo 058ba592bf Merge branch 'dillon/48-feedback-form-improvement' into 'master'
Quick fix for feedback form entries cannot be downloaded

See merge request CIEFWorldwideSdnBhd/shipping-portal!177
2023-11-21 08:41:54 +00:00
JiaSheng 9fce0efaeb unhide some parcel, packing list and package information 2023-10-22 11:00:44 +08:00
10 changed files with 71 additions and 30 deletions
@@ -72,6 +72,7 @@ class UpdateDoFromYDPortalProcessor
} catch (\Exception $exception){
log::debug($exception);
throw new InternalServerErrorException('failed to approve address due to an error related to YD portal');
}
}
@@ -24,6 +24,7 @@ class TransactionResource extends JsonResource
{
$order = null;
$groupTransactions = null;
$packingListReference = null;
if ($this->owner instanceof Transaction) {
if ($this->owner) {
@@ -47,6 +48,7 @@ class TransactionResource extends JsonResource
'id' => $this->id,
'owner_type' => $this->owner_type,
'order' => $order,
'packing_list_reference' => $packingListReference,
'group_transactions' => $groupTransactions,
'group_reference' => $groupTransactions ? $group->reference : null,
'documents' => $groupTransactions ? DocumentResource::collection($this->documents->where('status', ApprovalStatus::PENDING_VERIFICATION)) : DocumentResource::collection($this->documents),
@@ -33,12 +33,14 @@ class WalletTransactionResource extends JsonResource
case TransactionType::PAYMENT:
$invoice = Transaction::where('payment_reference', $this->bill_no)->first();
if(!$invoice) {
Log::channel('paymentUnknownOrderLog')->info('ID: ' . $this->id);
$description = 'Payment for unknown invoice, please contact tech support.';
break;
}
$order = $invoice->owner->owner->owner;
if(!$order) {
Log::channel('paymentUnknownOrderLog')->info('ID: ' . $this->id);
$description = 'Payment for unknown order, please contact tech support.';
break;
}
+6
View File
@@ -100,6 +100,12 @@ return [
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
'paymentUnknownOrderLog' => [
'driver' => 'single',
'path' => storage_path('logs/paymentUnknownOrderLog.log'),
'level' => 'info',
],
],
];
@@ -19,7 +19,7 @@
<p class="bold m-b-5 fs-12">{{item.description}}</p>
</div>
</div>
<div class="row m-b-10 align-items-center" v-if="$store.getters.isAdmin">
<div class="row m-b-10 align-items-center">
<div class="col-auto">
<p class="no-margin all-caps fs-10 lh-10 light">Reference</p>
<p class="no-margin fs-12">{{item.reference}}</p>
@@ -58,7 +58,7 @@
<small class="fs-10 all-caps muted">Status</small>
<p class="no-margin bold">{{item.container ? item.container.transport.schedule_complete && status === 'Shipping' ? 'Custom Clearance' : status : status}}</p>
</div>
<div class="col-auto" v-if="$store.getters.isAdmin">
<div class="col-auto">
<small class="fs-10 all-caps muted">Container</small>
<p class="no-margin bold">{{item.container ? item.container.container_reference : '-'}}</p>
</div>
@@ -66,7 +66,7 @@
<div class="row">
<div class="col-auto">
<small class="fs-10 all-caps muted">Warehouse</small>
<h6 class="no-margin small">{{item.order.warehouse.name}} {{$store.getters.isAdmin ? item.order.warehouse.reference : ''}}</h6>
<h6 class="no-margin small">{{item.order.warehouse.name}} {{ item.order.warehouse.reference }}</h6>
</div>
<div class="col-auto">
<small class="fs-10 all-caps muted">Delivery Address</small>
@@ -30,7 +30,7 @@
<p class="no-margin all-caps fs-10 light">Est. CBM</p>
<p class="no-margin">{{((parseFloat(item.cbm) * 1000) / 1000).toFixed(3)}}</p>
</div>
<div class="col" v-if="$store.getters.isAdmin">
<div class="col">
<p class="no-margin all-caps fs-10 light">Warehouse</p>
<p class="no-margin" v-if="item.order">{{item.order.warehouse.reference}}</p>
<span class='text-danger' v-if="!item.order">Unclaimed</span>
@@ -75,7 +75,7 @@
<p class="no-margin bold text-info fs-12"><a :href="route('customer.profile', item.order.company_module.marking)">{{item.order.company_module.marking}}</a></p>
</div>
</div>
<div class="row m-b-5" v-if="$store.getters.isAdmin">
<div class="row m-b-5">
<div class="col-auto p-r-5">
<p class="no-margin all-caps fs-10 light">Reference</p>
</div>
@@ -4,11 +4,19 @@
<div class="row" :class="[{'b-danger': item.status == 5 ||item.status == 6, 'b-a': item.status == 5||item.status == 6}]">
<div class="col padding-20">
<div class="row align-items-center">
<div class="col-2">
<p class="no-margin fs-10 all-caps">Invoice No</p>
<div> {{ item.bill_no }}</div>
</div>
<div class="col-2">
<p class="no-margin fs-10 all-caps">Reference</p>
<div> {{ item.packing_list_reference }}</div>
</div>
<div class="col-2">
<p class="no-margin fs-10 all-caps">Invoice Date</p>
<div> {{ item.updated_at }}</div>
</div>
<div class="col">
<div class="col-2">
<p class="no-margin fs-10 all-caps">Status</p>
<div class="all-caps" v-if="item.status == 3">Payment Completed</div>
<div class="all-caps text-danger" v-else-if="item.status == 5">Dispute in progress</div>
@@ -19,7 +27,7 @@
<p class="no-margin fs-10 all-caps">Amount</p>
<div>MYR {{ item.amount.toFixed(2) }}</div>
</div>
<div class="col-3" v-if="item.remarks.length">
<div class="col-2" v-if="item.remarks.length">
<p class="no-margin fs-10 all-caps">Billing Question</p>
<div>
{{ latestComment.content }}
@@ -31,35 +39,51 @@
<remark-component :section="section" :data="item" module_type="Transaction"></remark-component>
</modal-component>
</div>
<div class="col-3" v-else>
<!-- <div class="col-2" >
<p class="no-margin fs-10 all-caps invisible">Billing Question</p>
<div>
<span class="btn requestModal no-border invisible">
<i class="fa fa-edit"></i>
</span>
</div>
</div>
<div class="col-auto p-l-0 p-r-0 d-flex justify-content-center align-items-center">
<div :class="[{'invisible': [5, 6, 3].includes(item.status)}]">
<span class="d-inline-block m-r-15 text-primary bold text-underline pointer requestModal" data-type="billingRemark">Billing Question?</span>
</div>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="billingRemark">
<customer-invoice-remark-form-component module_type="Transaction" :data="item" :section="section"></customer-invoice-remark-form-component>
</modal-component>
<div v-if="item.documents.length">
<div v-for="file in item.documents[0].files" v-bind:key="file.id" class="col-auto no-padding">
<document-file-viewer-component :file="file">
<template slot="button">
<div class="btn bg-grey no-border muted">
<i class="fa fa-file-pdf-o"></i>
</div>
</template>
</document-file-viewer-component>
</div> -->
<div class="col-2">
<div class="row p-l-15">
<div class="col-auto p-l-0 p-r-0 d-flex justify-content-center align-items-center">
<div :class="[{'invisible': [5, 6, 3].includes(item.status)}]">
<span class="d-inline-block text-primary bold text-underline pointer requestModal" data-type="billingRemark">Billing Question?</span>
</div>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="billingRemark">
<customer-invoice-remark-form-component module_type="Transaction" :data="item" :section="section"></customer-invoice-remark-form-component>
</modal-component>
<div v-if="item.documents.length">
<div v-for="file in item.documents[0].files" v-bind:key="file.id" class="col-auto no-padding">
<document-file-viewer-component :file="file">
<template slot="button">
<div class="btn bg-grey no-border muted">
<i class="fa fa-file-pdf-o"></i>
</div>
</template>
</document-file-viewer-component>
</div>
</div>
<div v-else>
<div class="btn bg-grey no-border muted invisible">
<i class="fa fa-file-pdf-o"></i>
</div>
</div>
</div>
</div>
<div v-else>
<div class="btn bg-grey no-border muted invisible">
<i class="fa fa-file-pdf-o"></i>
<div class="col-auto p-l-0 p-r-0 d-flex justify-content-center align-items-center" v-if="$store.getters.isSuperAdmin">
<span class="d-inline-block text-primary bold text-underline pointer requestModal" data-type="deleteInvoice">
<i class="fa fa-close"></i>
</span>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="deleteInvoice">
<delete-invoice-form-component :data="item" :section="section"></delete-invoice-form-component>
</modal-component>
</div>
<div class="col-auto hide">
<div class="btn btn-sm all-caps b-rad-none btn-block" :class="{'btn-success': !expanded, 'btn-default': expanded}" @click="expanded = !expanded">
{{ expanded ? 'Cancel' : 'Make Payment' }}</div>
</div>
</div>
</div>
@@ -10,6 +10,8 @@
<div class="col">
<p class="no-margin fs-10 all-caps">Invoice No</p>
<div>{{ item.bill_no }}</div>
<p class="no-margin fs-10 all-caps">Reference</p>
<div>{{ item.packing_list_reference }}</div>
</div>
<div class="col">
<p class="no-margin fs-10 all-caps">Order</p>
@@ -48,6 +48,7 @@
$packages = $billable_packing_list->packages;
$totalCBM = 0;
$totalQty = 0;
$order_reference = $invoice_transaction->owner->owner ? $invoice_transaction->owner->owner->reference : null;
@endphp
@foreach ($packages as $key => $package)
@php
@@ -59,7 +60,8 @@
@endphp
<tr>
<td width="5%" class="center top">{{ $key + 1 }}</td>
<td class="description">{!! $package->description !!}</td>
<!-- <td class="description">{!! $package->description !!}</td> -->
<td class="description">{!! $order_reference . '<br>' . $billable_packing_list->owner->reference !!}</td>
<td width="15%" class="center top" style="text-align: center">
{!! $measurement !!}
</td>
@@ -129,6 +129,8 @@ $grandSubTotal = 0;
@foreach ($invoice_transactions as $transaction)
<pagebreak />
@include('pages.pdfs.shipping_invoice_inner', ['invoice_transaction' => $transaction])
<pagebreak />
@include('pages.pdfs.packing_list_measurement', ['invoice_transaction' => $transaction])
@endforeach