Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import FileActions from '../common/models/FileActionsModel'
import FileListComponent from '../common/components/FileListComponent'
import { FileEndabledComponent } from '../common/components/FileEnabledComponent'
import ItemListComponent from '../common/components/ItemListComponent'
import { amountType } from '../common/components/PreTaxNetAmountComponent'
import { billExists } from '../common/services/billsService'
import { listBillTypes, getBillTypeById, createBillType } from '../common/services/billTypesService'
import { listCustomers, createCustomer, getCustomerById, deleteCustomerById } from '../common/services/customersService'
import t from '../common/helpers/i18n'
import { numberFormatterDb, numberFormatterView, dateFormatterView, dateFormatterDb, formatTaxrate } from '../common/ui/formatters'
import { getPreTaxAmount } from '../common/ui/preNetVat'
import { enableTypeaheadFeatures, getInputs, resetFormValidationErrors, addFormValidation, revalidateInput } from '../common/ui/forms'
import Textarea from 'react-textarea-autosize'
const Datetime = require('react-datetime')
const Typeahead = require('react-bootstrap-typeahead').default
interface State {
id?: number
invoice_id: string
date_created?: string
date_paid?: string
amount?: string
amountType?: amountType
taxrate?: string
billItemId: number
comment: string
selectedCustomer?: Customer[]
selectedBillType?: BillTypeModel[]
customerList: Customer[]
billTypeList: BillTypeModel[]
isNew: boolean
import FileActions from '../common/models/FileActionsModel'
import FileListComponent from '../common/components/FileListComponent'
import ItemListComponent from '../common/components/ItemListComponent'
import { amountType } from '../common/components/PreTaxNetAmountComponent'
import { FileEndabledComponent } from '../common/components/FileEnabledComponent'
import { listExpenseTypes, getExpenseTypeById, createExpenseType } from '../common/services/expenseTypesService'
import t from '../common/helpers/i18n'
import { numberFormatterDb, numberFormatterView, dateFormatterView, dateFormatterDb, formatTaxrate} from '../common/ui/formatters'
import { stringIsEmpty } from '../common/helpers/text'
import { hasDecimals } from '../common/helpers/math'
import { enableTypeaheadFeatures, getInputs, resetFormValidationErrors, addFormValidation, revalidateInput } from '../common/ui/forms'
import { getCalculatedAmount, getPreTaxAmount, getVatAmount } from '../common/ui/preNetVat'
import Textarea from 'react-textarea-autosize'
const Datetime = require('react-datetime')
const Typeahead = require('react-bootstrap-typeahead').default
interface State {
id?: number
selectedExpenseType?: ExpenseType[]
amount?: string
amountType?: amountType
taxrate?: string
date?: string
expenseItemId: number
comment?: string
expenseTypeList: ExpenseType[]
isNew: boolean
isDirty: boolean
fileActions: FileActions
}