/** 调整项类型 */
export type ReconciliationAdjustment = {
	id: string;
	type: string;
	quantity: number;
	unitPrice: number;
	amount: number;
	remark: string;
};

/** 对账车次卡片Props */
export interface ReconciliationShipCardProps {
	/** 发货单数据 */
	shipOrder: BusinessAPI.OrderShipVO;
	/** 调整项列表 */
	adjustments: ReconciliationAdjustment[];
	/** 新增调整项 */
	onAddAdjustment: (shipOrderId: string) => void;
	/** 删除调整项 */
	onRemoveAdjustment: (shipOrderId: string, adjustmentId: string) => void;
	/** 展开/收起状态（受控） */
	expanded?: boolean;
	/** 展开/收起变化回调 */
	onExpandChange?: (expanded: boolean) => void;
}

/** 对账汇总Props */
export interface ReconciliationSummaryProps {
	/** 发货单列表 */
	shipOrders: BusinessAPI.OrderShipVO[];
	/** 调整项数据 Map<发货单ID, 调整项数组> */
	adjustmentsMap: Record<string, ReconciliationAdjustment[]>;
	/** 抹零金额 */
	roundOffAmount: number;
}
