mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 22:13:18 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			462 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			462 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
export const customers = (state) => state.customers
 | 
						|
export const selectAllField = (state) => state.selectAllField
 | 
						|
export const selectedCustomers = (state) => state.selectedCustomers
 | 
						|
export const totalCustomers = (state) => state.totalCustomers
 | 
						|
export const getCustomer = (state) => (id) => {
 | 
						|
  let CstId = parseInt(id)
 | 
						|
  return state.customers.find((customer) => customer.id === CstId)
 | 
						|
}
 | 
						|
export const selectedViewCustomer = (state) => state.selectedViewCustomer
 |