fix payment due date days filter

This commit is contained in:
Omair Saleh
2022-10-30 20:41:20 +08:00
parent 7423588324
commit 37c710def6
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@ class PackingListOrderedByInvoiceDate implements Filter
$join->on('transactions.owner_id', '=', 'packing_lists.id'); $join->on('transactions.owner_id', '=', 'packing_lists.id');
$join->where('transactions.owner_type', '=', PackingList::class); $join->where('transactions.owner_type', '=', PackingList::class);
$join->where('transactions.status', '=', ApprovalStatus::APPROVED); $join->where('transactions.status', '=', ApprovalStatus::APPROVED);
})->orderBy('transactions.updated_at'); })->orderBy('transactions.updated_at', 'DESC');
} }
} }
@@ -135,7 +135,7 @@
<download-billing-with-dates-component section="paymentsReportSection" ></download-billing-with-dates-component> <download-billing-with-dates-component section="paymentsReportSection" ></download-billing-with-dates-component>
</div> </div>
</div> </div>
<list-component section="paidInvoiceSection" :endpoint="route('api.packing_list.list')" :options="{has_invoice_status_in: [3]}"> <list-component section="paidInvoiceSection" :endpoint="route('api.packing_list.list')" :options="{has_invoice_status_in: [3], packing_list_ordered_by_invoice_date: true}">
<template slot="list" slot-scope="{data}"> <template slot="list" slot-scope="{data}">
<admin-payments-billing-component :data="data" invoice_status="Paid Invoice" section="paidInvoiceSection" ></admin-payments-billing-component> <admin-payments-billing-component :data="data" invoice_status="Paid Invoice" section="paidInvoiceSection" ></admin-payments-billing-component>
</template> </template>