/// <summary> /// 创建财务收款单 /// </summary> /// <param name="refundBalanceInfo"></param> private void CreateSOIncome(RefundBalanceInfo refundBalanceInfo) { SOIncomeInfo soIncomeInfo = new SOIncomeInfo() { OrderSysNo = refundBalanceInfo.SysNo.Value, OrderType = SOIncomeOrderType.RO_Balance, OrderAmt = refundBalanceInfo.CashAmt.Value * -1, IncomeAmt = (refundBalanceInfo.RefundPayType == RefundPayType.TransferPointRefund) ? 0 : refundBalanceInfo.CashAmt.Value * -1, GiftCardPayAmt = -refundBalanceInfo.GiftCardAmt.Value, PointPay = -refundBalanceInfo.PointAmt.Value, IncomeStyle = SOIncomeOrderStyle.RO_Balance, ReferenceID = "", Status = SOIncomeStatus.Origin, Note = "", CompanyCode = refundBalanceInfo.CompanyCode }; ExternalDomainBroker.CreateSOIncome(soIncomeInfo); if (refundBalanceInfo.RefundPayType == RefundPayType.TransferPointRefund) { int userSysNo = ExternalDomainBroker.GetUserSysNo(AppSettingManager.GetSetting("RMA", RMAConst.AutoRMAPhysicalUserName), AppSettingManager.GetSetting("RMA", RMAConst.AutoRMALoginUserName), AppSettingManager.GetSetting("RMA", RMAConst.AutoRMASourceDirectoryKey)); ExternalDomainBroker.AutoConfirmIncomeInfo(soIncomeInfo.SysNo.Value, refundBalanceInfo.SysNo.Value, userSysNo); } }