| | |
| | | try |
| | | { |
| | | var reqType = input.Options["reqType"].ToString(); |
| | | var order = await MainDB.Queryable<BIZ_U9_ASN>().Where(q => q.ORDER_NO == orderNo).Includes(q => q.Details, d => d._ItemInfos).IncludesAllFirstLayer().FirstAsync(); |
| | | var order = await MainDB.Queryable<BIZ_U9_ASN>().Where(q => q.ORDER_NO == orderNo).Includes(q => q.Details, d => d._ItemInfos, e=> e.ExtInfo).IncludesAllFirstLayer().FirstAsync(); |
| | | if (order.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | |
| | | { |
| | | ItemInfo = new() { m_itemCode = q.ITEM_CODE}, |
| | | Wh = new() { m_code = "10101" }, |
| | | RcvLineLocations = new(){ |
| | | RcvLineLocations = new(){ |
| | | new(){ |
| | | Location = new(){ m_code= q.ItemInfo.DEFAULT_LOCATION}, |
| | | Location = new(){ m_code= q.ItemInfo.DEFAULT_LOCATION??""}, |
| | | LocationQtyTU = q.QTY, |
| | | } |
| | | }, |