diff --git a/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php b/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php new file mode 100644 index 00000000..8a034934 --- /dev/null +++ b/app/Classes/General/Eloquent/Filters/PackingListOrderedByInvoiceDate.php @@ -0,0 +1,29 @@ +join('transactions', function($join){ + $join->on('transactions.owner_id', '=', 'packing_lists.id'); + $join->on('transactions.owner_type', '=', PackingList::class); + $join->on('transactions.status', '=', ApprovalStatus::APPROVED); + })->orderBy('transactions.updated_at'); + } + +} diff --git a/resources/assets/vue/components/paymentsBilling/sections/AdminPaymentsBillingSectionComponent.vue b/resources/assets/vue/components/paymentsBilling/sections/AdminPaymentsBillingSectionComponent.vue index b4d5fd4c..3a0175f7 100644 --- a/resources/assets/vue/components/paymentsBilling/sections/AdminPaymentsBillingSectionComponent.vue +++ b/resources/assets/vue/components/paymentsBilling/sections/AdminPaymentsBillingSectionComponent.vue @@ -121,7 +121,7 @@
- +