mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 20:21:10 -04:00
build version 400
This commit is contained in:
@ -4,7 +4,9 @@ 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 selectedNote = (state) => state.selectedNote
|
||||
export const selectedItem = (state) => state.selectedItem
|
||||
export const getInvoice = (state) => (id) => {
|
||||
let invId = parseInt(id)
|
||||
return state.invoices.find(invoice => invoice.id === invId)
|
||||
return state.invoices.find((invoice) => invoice.id === invId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user