// ─── Sales Settings ─────────────────────────────────────────────

export interface SalesSettings {
  default_price_type: string;
  stock_deduction_point: string;
  allow_negative_stock: boolean;
  approval_workflow: boolean;
  auto_approve_limit: string;
  vat_rate: string;
  default_payment_terms_days: number;
  vat_inclusive: boolean;
  auto_generate_delivery: boolean;
  commission_enabled: boolean;
  default_commission_rate: string;
  default_tax_id: number | null;
  default_cost_center_id: number | null;
  default_warehouse_id: number | null;
  price_includes_tax: boolean;
  allow_below_min_price: boolean;
  enable_delivery_notes: boolean;
  quotation_validity_days: number;
  revenue_account_id: number | null;
  cogs_account_id: number | null;
  receivable_account_id: number | null;
  tax_payable_account_id: number | null;
  discount_account_id: number | null;
}

export interface UpdateSalesSettings {
  default_price_type?: string;
  stock_deduction_point?: string;
  allow_negative_stock?: boolean;
  approval_workflow?: boolean;
  auto_approve_limit?: number;
  vat_rate?: number;
  default_payment_terms_days?: number;
  vat_inclusive?: boolean;
  auto_generate_delivery?: boolean;
  commission_enabled?: boolean;
  default_commission_rate?: number;
  default_tax_id?: number | null;
  default_cost_center_id?: number | null;
  default_warehouse_id?: number | null;
  price_includes_tax?: boolean;
  allow_below_min_price?: boolean;
  enable_delivery_notes?: boolean;
  quotation_validity_days?: number;
  revenue_account_id?: number | null;
  cogs_account_id?: number | null;
  receivable_account_id?: number | null;
  tax_payable_account_id?: number | null;
  discount_account_id?: number | null;
}
