Esempio n. 1
0
        /// <summary>
        /// 拆分订单发票
        /// </summary>
        /// <param name="soSysNo">订单系统编号</param>
        /// <param name="invoiceItems"></param>
        public virtual void SplitSOInvoice(int soSysNo, List <ECCentral.BizEntity.Invoice.SubInvoiceInfo> invoiceItems)
        {
            SOBaseInfo soInfo = GetSOBaseInfoBySOSysNo(soSysNo);

            switch (soInfo.Status.Value)
            {
            case SOStatus.Origin:
            case SOStatus.WaitingOutStock:
            {
                //拆分发票
                ExternalDomainBroker.SplitInvoice(invoiceItems);
                //更新订单信息
                SODA.UpdateSOForSplitInvoice(soSysNo, true);
            }
            break;

            default:
                BizExceptionHelper.Throw("SO_SplitInvoice_StatusIsError");
                break;
            }
        }