Exemplo n.º 1
0
        /// <summary>
        /// 查询得到运费信息
        /// </summary>
        /// <param name="refundSysNo">退款单号</param>
        /// <param name="soInfo">销售单</param>
        /// <returns>运费总额</returns>
        public decimal GetShipFee(int soSysNo, string stockID)
        {
            decimal totalAmount = 0M;
            int     stockSysNo  = Convert.ToInt32(stockID);
            var     invoice     = ExternalDomainBroker.GetSOInvoiceMaster(soSysNo);

            invoice = invoice.Where(p => p.StockSysNo == stockSysNo).ToList();
            if (invoice != null)
            {
                invoice.ForEach(p =>
                {
                    totalAmount += (p.PremiumAmt.Value + p.ShippingCharge.Value + p.ExtraAmt.Value);
                });
            }

            return(totalAmount);
        }