| | |
| | | return await StockInfoDetailService.Repository.DeleteDataAsync(detailEntities); |
| | | } |
| | | |
| | | public async Task<bool> UpdateStockInfo(StockInfoDTO stock) |
| | | { |
| | | if (stock == null) return false; |
| | | |
| | | var existingStock = StockInfoService.Repository.QueryFirst(s => s.PalletCode == stock.PalletCode); |
| | | if (existingStock == null) return false; |
| | | |
| | | existingStock.LocationCode = ""; |
| | | existingStock.LocationId = 0; |
| | | |
| | | return await StockInfoService.Repository.UpdateDataAsync(existingStock); |
| | | } |
| | | |
| | | |
| | | private static List<Dt_StockInfoDetail_Hty> CreateDetailHistory(IEnumerable<Dt_StockInfoDetail> details, string operateType) |
| | | { |
| | | var now = DateTime.Now; |