修复bug
This commit is contained in:
@@ -218,10 +218,7 @@ namespace WMS.Web.Domain.Services
|
||||
UnitId = new ErpNumberDto(unitNumber), //物料带出来
|
||||
StockId = new ErpNumberDto(d.StockCode),
|
||||
SubStockId = new ErpSubStockDto(d.StockCode, d.Erp_SubStockCode),
|
||||
//BeforeQty = d.BeforeQty,
|
||||
AfterQty = d.AfterQty,
|
||||
//FinalQty = entity.ResultType == TakeStockType.Profit ? d.FinalQty : 0,
|
||||
//LossQty = entity.ResultType == TakeStockType.Loss ? d.FinalQty : 0,
|
||||
Fnote = d.Remark
|
||||
});
|
||||
}
|
||||
|
||||
@@ -49,6 +49,11 @@ namespace WMS.Web.Repositories.Configuration
|
||||
{
|
||||
ent.ToTable("t_wms_movebox_record");
|
||||
ent.HasKey(x => x.Id);
|
||||
|
||||
ent.HasMany(p => p.Details)
|
||||
.WithOne()
|
||||
.HasForeignKey(p => p.Fid)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
//移箱明细
|
||||
builder.Entity<MoveBoxRecordDetails>(ent =>
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace WMS.Web.Repositories
|
||||
_transaction.Commit();
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
catch(Exception ex)
|
||||
{
|
||||
if (_transaction != null)
|
||||
_transaction.Rollback();
|
||||
|
||||
Reference in New Issue
Block a user