|  |  |  | 
|---|
|  |  |  | List<Dt_StockInfoDetail> stockInfoDetails = new List<Dt_StockInfoDetail>(); | 
|---|
|  |  |  | foreach (var item in stockInfos) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | foreach (var detail in item.Details) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | // 杩涜瀹夊叏杞崲 | 
|---|
|  |  |  | if (detail.OutboundQuantity != null && decimal.TryParse(detail.OutboundQuantity.ToString(), out decimal outboundDecimal)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | decimal outboundDecimal1 = Convert.ToDecimal(detail.OutboundQuantity); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | detail.OutboundQuantity = 0; // 榛樿鍊兼垨璁板綍閿欒 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | stockInfoDetails.AddRange(item.Details); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _stockService.StockInfoDetailService.Repository.UpdateData(stockInfoDetails); | 
|---|
|  |  |  | BaseDal.UpdateData(outboundOrderDetails); | 
|---|