fix: fix pagination info schema and expense router responses
This commit is contained in:
		@@ -149,7 +149,10 @@ class PayrollService(BaseService):
 | 
			
		||||
        if not total_records:
 | 
			
		||||
            return GetPaymentRecordsResponse(
 | 
			
		||||
                payment_records=[],
 | 
			
		||||
                pagination_info=PaginationInfoSchema()
 | 
			
		||||
                pagination_info=PaginationInfoSchema(
 | 
			
		||||
                    total_pages=0,
 | 
			
		||||
                    total_items=0
 | 
			
		||||
                )
 | 
			
		||||
            )
 | 
			
		||||
        total_items = total_records
 | 
			
		||||
        total_pages = math.ceil(total_records / pagination.items_per_page)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user