diff --git a/.env.example b/.env.example index b26bfbf8..47a20e74 100644 --- a/.env.example +++ b/.env.example @@ -48,4 +48,6 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" FILESYSTEM_DRIVER="documents" JWT_SECRET= -JWT_TTL=1440 \ No newline at end of file +JWT_TTL=1440 + +IS_PRODUCTION=false \ No newline at end of file diff --git a/app/Classes/General/Eloquent/Filters/PaymentApprovals.php b/app/Classes/General/Eloquent/Filters/PaymentApprovals.php index 617eb67b..981764a3 100644 --- a/app/Classes/General/Eloquent/Filters/PaymentApprovals.php +++ b/app/Classes/General/Eloquent/Filters/PaymentApprovals.php @@ -14,7 +14,7 @@ class PaymentApprovals implements Filter */ public static function apply(Builder $builder, $value) { - return $builder->payments()->inComplete(); + return $builder->payments()->inComplete()->has('documents'); } } \ No newline at end of file diff --git a/app/Http/Resources/TransactionResource.php b/app/Http/Resources/TransactionResource.php index a543f00d..ef652fd7 100644 --- a/app/Http/Resources/TransactionResource.php +++ b/app/Http/Resources/TransactionResource.php @@ -19,6 +19,7 @@ class TransactionResource extends JsonResource return [ 'id' => $this->id, 'booking' => new BookingResource($this->booking), + 'type' => (int) $this->type, 'bill_no' => $this->bill_no, 'amount' => (double) $this->amount, 'original_amount' => (double) $this->original_amount, diff --git a/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue b/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue index 9425b3f5..30bf75c4 100644 --- a/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue +++ b/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue @@ -82,7 +82,7 @@
-
Cancel
+
Cancel
Add Account
@@ -106,6 +106,10 @@ type: Number, default: 1 }, + closable: { + type: Boolean, + default: true + }, country_id: { type: Number, default: 1 diff --git a/resources/assets/vue/components/bookings/elements/BookingConfirmationComponent.vue b/resources/assets/vue/components/bookings/elements/BookingConfirmationComponent.vue index 92966dc5..9324faf4 100644 --- a/resources/assets/vue/components/bookings/elements/BookingConfirmationComponent.vue +++ b/resources/assets/vue/components/bookings/elements/BookingConfirmationComponent.vue @@ -145,7 +145,7 @@
- +
diff --git a/resources/assets/vue/components/bookings/elements/PaymentVerificationComponent.vue b/resources/assets/vue/components/bookings/elements/PaymentVerificationComponent.vue index b9a7d6f5..d8aaa0d1 100644 --- a/resources/assets/vue/components/bookings/elements/PaymentVerificationComponent.vue +++ b/resources/assets/vue/components/bookings/elements/PaymentVerificationComponent.vue @@ -14,26 +14,29 @@
-
Amount
-
- MYR {{(Math.round((item.amount + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}} -
+
Transfer No.
+ +
+ {{item.booking.marking}} +
+
-
-
Original
+
+
Marking
- {{item.original_currency.short_code}} {{(Math.round((item.original_amount + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}} + {{item.booking.company.reference}}
-
+
Date
{{item.updated_at}}
-
-
+
+
+
Payment Proof
@@ -48,6 +51,18 @@
+
+
Amount
+
+ MYR {{(Math.round((item.amount + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}} +
+
+
+
Original
+
+ {{item.original_currency.short_code}} {{(Math.round((item.original_amount + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}} +
+
diff --git a/resources/views/pages/banks/customers.blade.php b/resources/views/pages/banks/customers.blade.php index 9e791d9b..d755c801 100644 --- a/resources/views/pages/banks/customers.blade.php +++ b/resources/views/pages/banks/customers.blade.php @@ -1,15 +1,15 @@
-
+
- Customer's Bank Accounts + Recipients Bank Accounts