import { CustomerInvoiceSummary, CustomerInvoicesPage } from "./invoices.api.schema";

export type InvoiceSummaryFormData = CustomerInvoiceSummary & {
  subtotal_amount_fmt: string;
  subtotal_amount: number;

  discount_percentage_fmt: string;
  discount_percentage: number;

  discount_amount_fmt: string;
  discount_amount: number;

  taxable_amount_fmt: string;
  taxable_amount: number;

  taxes_amoun_fmt: string;
  taxes_amount: number;

  total_amount_fmt: string;
  total_amount: number;
};

export type InvoicesPageFormData = CustomerInvoicesPage & {
  items: InvoiceSummaryFormData[];
};
