using System; namespace EasyBL { public class ProfitInfo { #region BasicInfo /// /// Guid /// public string Guid { get; set; } /// /// 帳單號碼 /// public string BillNO { get; set; } /// /// 展覽簡稱 /// public string ExhibitionName { get; set; } /// /// 客戶簡稱 /// public string CustomerName { get; set; } /// /// 業務員 /// public string MemberID { get; set; } #endregion #region 帳款部分 /// /// 收入(A)[帳單:未稅金額欄位] /// public decimal BillUntaxAmt { get; set; } /// /// (權重)實際成本(B):一筆帳單實際成本=(整票貨總成本/整票貨CBM)*單家廠商CBM /// public decimal SharedActualCost { get; set; } /// /// 毛利(C) = A-B /// public decimal GrossProfit { get { return BillUntaxAmt - Math.Abs(SharedActualCost); } } /// /// 毛利率(C)/(A) /// public decimal GrossProfitPercent { get { if (BillUntaxAmt == 0) return 0; return GrossProfit / BillUntaxAmt; } } /// /// 帳單代墊款D:bill項目(TE188,TG188) /// public decimal BillReimburseAmount { get; set; } /// /// 實際代墊款E:成本裡面的99-12、99-16等 /// public decimal ActualBillReimburseAmount { get; set; } /// /// 淨收入(F) =(A)-(D) /// public decimal NetIncome { get { return (BillUntaxAmt - Math.Abs(BillReimburseAmount)); } } /// /// 淨成本(G) =(B)-(E) /// public decimal NetCost { get { return (SharedActualCost - Math.Abs(ActualBillReimburseAmount)); } } /// /// 淨毛利(F)= F-G or [(A-D)]-[(B)-(E)] /// public decimal NetProfit { get { return NetIncome - Math.Abs(NetCost); } } /// /// 淨毛利率 (H)/(F) /// public decimal NetProfitPercent { get { if (NetIncome == 0) return 0; return NetProfit / NetIncome; } } /// /// 公斤 /// public decimal Weight { set; get; } /// /// 單位CBM /// public decimal Volume { set; get; } public long OrderValue { set; get; } /// /// 各種值 /// public object ExField { set; get; } #endregion } }