|
|
@@ -1039,7 +1039,6 @@ namespace Business.ResourceExamineManagement
|
|
|
private SRMPRDto CreateSRMPR(BomChildExamineDto returnlist, long tenantId, long factoryid, long bangId, int orderType, List<ICItemLeadTimeDto> iCItemLeadTimes, List<mo_ic_item_pur> supplierList, List<mo_ic_plan> planList, DateTime deliveryDate)
|
|
|
{
|
|
|
SRMPRDto sRMPR = new SRMPRDto();
|
|
|
- mo_srm_pr_main srm_Pr = new mo_srm_pr_main();
|
|
|
var leadTime = iCItemLeadTimes.Find(x => x.item_id == returnlist.item_id);
|
|
|
var supplier = supplierList.Where(x => x.icitem_id == returnlist.item_id).ToList();//默认取第一个供应商
|
|
|
var plan = planList.Find(x => x.icitem_id == returnlist.item_id);
|
|
|
@@ -1061,7 +1060,7 @@ namespace Business.ResourceExamineManagement
|
|
|
|
|
|
x.netpurchase_price = rnd.Next(1, 100);
|
|
|
x.taxrate = 0.13m;//固定13%增值税
|
|
|
-
|
|
|
+ mo_srm_pr_main srm_Pr = new mo_srm_pr_main();
|
|
|
srm_Pr.id = help.NextId();
|
|
|
srm_Pr.GenerateNewId();
|
|
|
srm_Pr.pr_billno = getOrderNum("PR");//pr单号
|