过滤掉不需要掉erp接口的自制单据

This commit is contained in:
2024-09-30 10:38:46 +08:00
parent 884c23b753
commit 50a95ac88f
8 changed files with 174 additions and 118 deletions

View File

@@ -97,6 +97,12 @@ namespace Tnb.WarehouseMgr
string rawmatTransferinstockHId = wmsRawmatTransferinstockD?.bill_id ?? "";
WmsRawmatTransferinstockH wmsRawmatTransferinstockH = await _db.Queryable<WmsRawmatTransferinstockH>().SingleAsync(x => x.id == rawmatTransferinstockHId);
//自制的不调erp接口
if (string.IsNullOrEmpty(wmsRawmatTransferinstockH.erp_pk))
{
return;
}
List<String> materialIds = allInstockDetails.Select(x => x.material_id).Distinct().ToList();
List<String> unitCodes = allInstockDetails.Select(x => x.unit_id).Distinct().ToList();
List<DictionaryDataEntity> unitDatas = await _db.Queryable<DictionaryTypeEntity>()