/*
 * @Author: cclu
 * @Date: 2022-03-10 10:02:38
 * @LastEditors: zzy 411037547@qq.com
 * @LastEditTime: 2023-06-14 00:17:33
 * @FilePath: \cloud-platform\src\pages\merchantManagement\reports\RevenueSummary\data.d.ts
 * @Description:
 *
 * Copyright (c) 2022 by cclu/杭州驿商科技, All Rights Reserved.
 */

export type RevenueStatisticsParams = {
    GroupByDaily: boolean,
    StartDate: Date,
    EndDate: Date,
    ServerpartIds?: string, // 服务区内码集合
    ServerpartShopIds: string,
    // SearchKeyName: string|null,
    // SearchKeyValue: string,
    CalculateStartDate: boolean,
}

export type RevenueStatisticsModel = {
    Serverpart_ID: number;// 服务区内码 ,
    Serverpart_Name: string;// 服务区名称 ,
    SPRegionType_Name: string;// 管理中心 ,
    ServerpartShop_Name: string;// 门店名称 ,
    Shop_Count: number;// 门店数量 ,
    Business_Type: number;// 经营模式 ,
    Business_Type_Text: string;// 经营模式(中文) ,
    Transfer_Type: number;// 传输方式(0：收银系统；1：扫码传输；2：接口传输) ,
    TotalRevenue: RevenueDetailModel;// 合计项营收数据 ,
    RegionARevenue: RevenueDetailModel;// 东(南)区、上线、A区营收数据 ,
    RegionBRevenue: RevenueDetailModel;// 西(北)区、下线、B区营收数据
}

export type RevenueDetailModel = {
    Ticket_Count: number; // 客单数量 ,
    Total_Count: number; // 总数量 ,
    Total_OffAmount: number; // 优惠金额 ,
    Revenue_Amount: number; // 实收金额 ,
    Different_Price_Less: number; // 短款金额 ,
    Different_Price_More: number; // 长款金额 ,
    CashPay_Amount: number; // 现金支付金额 ,
    MobilePay_Amount: number; // 移动支付金额 ,
    CostBill_Amount: number; // 大巴优惠券金额 ,
    InternalPay_Amount: number; // 企业会员金额 ,
    YFHD_Amount: number; // 油非互动金额
    Mobile_Correct: number; // 移动支付冲正 ,
    Cash_Correct: number; // 现金支付冲正
}
