change-退库当成无销售订单及安全库存入库

master
liuwf 1 year ago
parent 4eeae895c5
commit 01477ab160

@ -2972,7 +2972,7 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<TextBlock Text="二楼小包出入口" Foreground="White" FontSize="35" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Text="二楼托盘库出入口" Foreground="White" FontSize="35" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Grid Grid.Row="1" x:Name="XBRK"> <Grid Grid.Row="1" x:Name="XBRK">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>

@ -2529,12 +2529,14 @@ namespace Khd.Core.Wpf.Form
frozenAmount = 0, frozenAmount = 0,
instockDate = System.DateTime.Now, instockDate = System.DateTime.Now,
rawStockId = Global.SnowId.NextId(), rawStockId = Global.SnowId.NextId(),
saleOrderId = material.saleOrderId == null ? 0 : material.saleOrderId, // 退库当成无销售订单
saleOrderId = 0,
warehouseFloor = 5, warehouseFloor = 5,
warehouseId = 512, warehouseId = 512,
createBy = "扫描退库", createBy = "扫描退库",
createDate = System.DateTime.Now, createDate = System.DateTime.Now,
safeFlag = material.safeFlag // 当成安全库存
safeFlag = "1",
}; };
dbContext.WmsRawStock.Add(newRawStock); dbContext.WmsRawStock.Add(newRawStock);
message = newRawStock.totalAmount; message = newRawStock.totalAmount;

Loading…
Cancel
Save