mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
11 lines
506 B
JavaScript
11 lines
506 B
JavaScript
export const invoices = (state) => state.invoices
|
|
export const selectAllField = (state) => state.selectAllField
|
|
export const getTemplateId = (state) => state.invoiceTemplateId
|
|
export const selectedInvoices = (state) => state.selectedInvoices
|
|
export const totalInvoices = (state) => state.totalInvoices
|
|
export const selectedCustomer = (state) => state.selectedCustomer
|
|
export const getInvoice = (state) => (id) => {
|
|
let invId = parseInt(id)
|
|
return state.invoices.find(invoice => invoice.id === invId)
|
|
}
|