fix - excel search fields
This commit is contained in:
@@ -199,6 +199,14 @@ class WareHouseExcelViewSet(viewsets.ModelViewSet, ExcelDynamicSearchMixin):
|
|||||||
name='inventory_sale_transaction_excel'
|
name='inventory_sale_transaction_excel'
|
||||||
)
|
)
|
||||||
def inventory_sale_transaction_excel(self, request):
|
def inventory_sale_transaction_excel(self, request):
|
||||||
|
self.search_fields = [
|
||||||
|
'rancher_fullname', 'rancher_mobile', 'pos_device__device_identity',
|
||||||
|
'pos_device__acceptor', 'pos_device__terminal', 'pos_device__serial',
|
||||||
|
'transaction_id', 'seller_organization__name',
|
||||||
|
'quota_distribution__distribution_id', 'weight', 'delivery_address', 'transaction_price',
|
||||||
|
'price_paid', 'price_type', 'product_type', 'transactions_number', 'transaction_status',
|
||||||
|
'transaction_status_code', 'ref_num', 'terminal', 'payer_cart', 'transaction_date',
|
||||||
|
]
|
||||||
output = BytesIO()
|
output = BytesIO()
|
||||||
workbook = Workbook()
|
workbook = Workbook()
|
||||||
worksheet = workbook.active
|
worksheet = workbook.active
|
||||||
|
|||||||
Reference in New Issue
Block a user