过滤掉不需要掉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

@@ -81,6 +81,12 @@ namespace Tnb.WarehouseMgr
string TransferInstockHId = wmsTransferInstockD?.bill_id ?? "";
WmsTransferInstockH wmsTransferInstockH = await _db.Queryable<WmsTransferInstockH>().SingleAsync(x => x.id == TransferInstockHId);
//自制的不调erp接口
if (string.IsNullOrEmpty(wmsTransferInstockH.erp_pk))
{
return;
}
List<WmsTransferInstockD> allInstockDetails = await _db.Queryable<WmsTransferInstockD>().Where(it => it.bill_id == TransferInstockHId).ToListAsync();
List<String> materialIds = allInstockDetails.Select(x => x.material_id).Distinct().ToList();