update old and new customer list to order by total spending

This commit is contained in:
omair saleh
2021-12-23 12:36:02 +08:00
parent cac9935c2f
commit 1ddfb5e074
@@ -158,14 +158,14 @@
</list-component>
</div>
<div class="row tabsContainer tabContent m-l-0 m-r-0 hide" tab-name="old-customer-list">
<list-component key="2" section="oldCustomerListSection" :endpoint="route('api.company.list')" :options="{'with_total_payments': true, 'business_type': 2, with_bookings:true, order_by:{ column:'total_payments', DESC:false, segments_in: [5]}}">
<list-component key="2" section="oldCustomerListSection" :endpoint="route('api.company.list')" :options="{'with_total_payments': true, 'business_type': 2, with_bookings:true, order_by:{ column:'total_payments', DESC:true, segments_in: [5]}}">
<template slot="list" slot-scope="{data}">
<company-component :data="data"></company-component>
</template>
</list-component>
</div>
<div class="row tabsContainer tabContent m-l-0 m-r-0 hide" tab-name="new-customer-list">
<list-component key="2" section="newCustomerListSection" :endpoint="route('api.company.list')" :options="{'with_total_payments': true, 'business_type': 2, with_bookings:true, order_by:{ column:'total_payments', DESC:false, does_not_have_segments: [5]}}">
<list-component key="2" section="newCustomerListSection" :endpoint="route('api.company.list')" :options="{'with_total_payments': true, 'business_type': 2, with_bookings:true, order_by:{ column:'total_payments', DESC:true, does_not_have_segments: [5]}}">
<template slot="list" slot-scope="{data}">
<company-component :data="data"></company-component>
</template>