import { INVOICE_STATUSES } from '@tamanu/constants';
import { Colors } from './styles';

export const INVOICE_STATUS_COLORS = {
  [INVOICE_STATUSES.CANCELLED]: Colors.darkestText,
  [INVOICE_STATUSES.IN_PROGRESS]: Colors.darkOrange,
  [INVOICE_STATUSES.FINALISED]: Colors.green,
};

export const INVOICE_ITEM_ACTION_MODAL_TYPES = {
  ADD_DISCOUNT: 'addDiscount',
  ADD_MARKUP: 'addMarkupLine',
  REMOVE_DISCOUNT_MARKUP: 'removeDiscountMarkup',
  DELETE: 'delete',
  ADD_NOTE: 'addNote',
};

export const INVOICE_MODAL_TYPES = {
  CANCEL_INVOICE: 'cancelInvoice',
  FINALISE_INVOICE: 'finaliseInvoice',
  DELETE_INVOICE: 'deleteInvoice',
  INSURANCE: 'insurance',
  PRINT: 'print',
  EDIT_ITEMS: 'editItems',
  ADD_ITEMS: 'addItems',
};

export const INVOICE_DISCOUNT_TYPES = {
  MANUAL: 'manual',
  ASSESSMENT: 'assessment',
};

