| | |
| | | Consumable_order_details2__c codsIns = new Consumable_order_details2__c(); |
| | | |
| | | codsIns.RecordTypeId = System.Label.RT_ConOrderDetail2_Delivery; |
| | | codsIns.Intra_Trade_List_RMB__c =null; |
| | | codsIns.Intra_Trade_List_RMB__c = reSet1[i].Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | codsIns.Asset_Model_No__c = reSet1[i].Asset_Model_No__c; |
| | | codsIns.Direct_Arrive_Product__c = true; |
| | | codsIns.Sterilization_limit__c = reSet1[i].Sterilization_limit__c; |
| | |
| | | Dealer_Shipment__c, Dealer_Saled__c,Consumable_Product__r.Asset_Model_No__c |
| | | // 更新借调信息 add by gzw 2020-0-415 start |
| | | ,SummonsForDirction_det__c,Transfer_Time__c,Frist_Transfer_Agency__c,Agency_Transfer__c, |
| | | Dealer_Info_text__c |
| | | Dealer_Info_text__c,Intra_Trade_List_RMB__c |
| | | // 更新借调信息 add by gzw 2020-0-415 start |
| | | // 首次入库经销商信息 add by gzw 2020-04-27 start |
| | | ,Agencyinfo_fromSAP__c,Frist_Storage_Agency__c |
| | |
| | | Consumable_order_details2__c codsIns = new Consumable_order_details2__c(); |
| | | |
| | | codsIns.RecordTypeId = System.Label.RT_ConOrderDetail2_Delivery; |
| | | codsIns.Intra_Trade_List_RMB__c =null; |
| | | codsIns.Intra_Trade_List_RMB__c = reSet1[i].Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | codsIns.Asset_Model_No__c = reSet1[i].Asset_Model_No__c; |
| | | codsIns.Direct_Arrive_Product__c = true; |
| | | codsIns.Sterilization_limit__c = reSet1[i].Sterilization_limit__c; |
| | |
| | | WHERE Dealer_Arrive__c = FALSE |
| | | AND Dealer_Shipment__c= FALSE |
| | | AND Dealer_Saled__c = FALSE |
| | | // gzw fix 取消产品判断为未入库 20230323 |
| | | AND Cancellation_Flag__c = false |
| | | AND Dealer_Returned__c = false |
| | | AND Bar_Code__c in :BarCodeListP |
| | | AND Dealer_Info_text__c = :accountName |
| | |
| | | }else{ |
| | | Matcher n = Pattern.compile('[0-9]').matcher(reSet[i].TracingCode__c); |
| | | if(n.find()){ |
| | | String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (reSet[i].TracingCode__c.length() == 5) { |
| | | String tr = reSet[i].TracingCode__c; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | // ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | // ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | if(otherAgencyMap.containsKey(reSet[i].Bar_Code__c)){ |
| | | for (Integer j=0; j<consumableInventory.size(); j++) { |
| | |
| | | continue; |
| | | }else{ |
| | | Matcher n = Pattern.compile('[0-9]').matcher(reSet[i].TracingCode__c); |
| | | if(n.find()){ |
| | | String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | if(n.find()){// gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (reSet[i].TracingCode__c.length() == 5) { |
| | | String tr = reSet[i].TracingCode__c; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | // ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | // ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | ExistIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | for(String str : barMcodeMap.keySet()){ |
| | |
| | | }else{ |
| | | Matcher n = Pattern.compile('[0-9]').matcher(reSet[i].TracingCode__c); |
| | | if(n.find()){ |
| | | String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (reSet[i].TracingCode__c.length() == 5) { |
| | | String tr = reSet[i].TracingCode__c; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | // ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | // ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | ConsumableorderdetailsRecordsdummy.add(new ConsumableorderdetailsInfo(reSet[i])); |
| | | ConsumableorderdetailsRecords.add(new ConsumableorderdetailsInfo(reSet[i])); |
| | |
| | | }else{ |
| | | Matcher n = Pattern.compile('[0-9]').matcher(reSet[i].TracingCode__c); |
| | | if(n.find()){ |
| | | String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (reSet[i].TracingCode__c.length() == 5) { |
| | | String tr = reSet[i].TracingCode__c; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | // ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(reSet[i],str)); |
| | | // ErrorIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | ExistIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | for(String str : barMcodeMap.keySet()){ |
| | |
| | | tracingCode = barCodeList[i].substring(barCodeList[i].length() - 5,barCodeList[i].length()); |
| | | Matcher n = Pattern.compile('[0-9]').matcher(tracingCode); |
| | | if(n.find()){ |
| | | String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (tracingCode.length() == 5) { |
| | | String tr = tracingCode; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码有误,请检查条形码数据。')); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | }else{ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')的tracingCode错误!')); |
| | |
| | | tracingCode = bar.substring(bar.length() - 5,bar.length()); |
| | | Matcher n = Pattern.compile('[0-9]').matcher(tracingCode); |
| | | if(n.find()){ |
| | | String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (tracingCode.length() == 5) { |
| | | String tr = tracingCode; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码有误,请检查条形码数据。')); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | }else{ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')的tracingCode错误!')); |
| | |
| | | tracingCode = barCodeList[i].substring(barCodeList[i].length() - 5,barCodeList[i].length()); |
| | | Matcher n = Pattern.compile('[0-9]').matcher(tracingCode); |
| | | if(n.find()){ |
| | | String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (tracingCode.length() == 5) { |
| | | String tr = tracingCode; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码有误,请检查条形码数据。')); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | }else{ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + barCodeList[i] + ')的tracingCode错误!')); |
| | |
| | | tracingCode = bar.substring(bar.length() - 5,bar.length()); |
| | | Matcher n = Pattern.compile('[0-9]').matcher(tracingCode); |
| | | if(n.find()){ |
| | | String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (tracingCode.length() == 5) { |
| | | String tr = tracingCode; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码有误,请检查条形码数据。')); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码不正确,请与管理员确认是否错误。'; |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')管理编码中有数字,请与管理员确认是否错误!')); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | }else{ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'产品BarCode(' + bar + ')的tracingCode错误!')); |
| | |
| | | arriveId = orderMain.id; |
| | | Decimal arriveAmount =0; |
| | | for (ConsumableorderdetailsInfo ass : consumableorderdetailsRecordsUse) { |
| | | //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'------1------')); |
| | | Consumable_order_details2__c insDetails = new Consumable_order_details2__c(); |
| | | insDetails.Id = ass.esd.Id; |
| | | insDetails.Consumable_Arrived_order__c = orderMain.id; |
| | |
| | | // } |
| | | insAfterDel.Name = consumable_order[0].Name + '-'+ str; |
| | | insAfterDel.RecordTypeId = System.Label.RT_ConOrderDetail2_Delivery; |
| | | if(EsetId != null && EsetId != ''){ |
| | | insAfterDel.Intra_Trade_List_RMB__c = ass.Prod.Intra_Trade_List_RMB__c; |
| | | }else{ |
| | | insAfterDel.Intra_Trade_List_RMB__c = 0; |
| | | } |
| | | // gzw 手动入库 默认产品单价 20230307 |
| | | // if(EsetId != null && EsetId != ''){ |
| | | // insAfterDel.Intra_Trade_List_RMB__c = ass.Prod.Intra_Trade_List_RMB__c; |
| | | // }else{ |
| | | // insAfterDel.Intra_Trade_List_RMB__c = 0; |
| | | // } |
| | | insAfterDel.Intra_Trade_List_RMB__c = ass.Prod.Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | insAfterDel.Asset_Model_No__c = ass.Prod.Asset_Model_No__c; |
| | | if(EsetId != null && EsetId != ''){ |
| | | insAfterDel.Consumable_order_minor__c = ESetId; |
| | |
| | | if(updateconsumableorderdetails2.size() > 0){ |
| | | update updateconsumableorderdetails2; |
| | | } |
| | | |
| | | List<Consumable_order_details2__c> insertconsumableorderdetails2 = new List<Consumable_order_details2__c>(); |
| | | for(Consumable_order_details2__c Cod2 : consumableorderdetails2Insert){ |
| | | //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'------4------')); |
| | |
| | | i++; |
| | | } |
| | | |
| | | //return null; |
| | | // return null; |
| | | |
| | | if(insertconsumableorderdetails2.size() >0){ |
| | | insert insertconsumableorderdetails2; |
| | |
| | | // tcm end |
| | | //add by rentx 2020-10-14 end |
| | | ,Report_Product_Expiration__c |
| | | ,Intra_Trade_List__c |
| | | FROM Consumable_order_details2__c |
| | | WHERE ((Dealer_Arrive__c = true |
| | | AND( Dealer_Shipment__c = true |
| | |
| | | |
| | | Matcher n = Pattern.compile('[0-9]').matcher(codc.TracingCode__c); |
| | | if(n.find()){ |
| | | String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(codc,str)); |
| | | ErrorIdMap.put(codc.Bar_Code__c,codc.Bar_Code__c); |
| | | continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 start |
| | | if (codc.TracingCode__c.length() == 5) { |
| | | String tr = codc.TracingCode__c; |
| | | String Ctr = tr.substring(tr.length() - 3,tr.length()); |
| | | String Btr = tr.substring(tr.length() - 4,tr.length()-3); |
| | | String Atr = tr.substring(tr.length() - 5,tr.length()-4); |
| | | if (Pattern.compile('[0-9]').matcher(Atr).find() || Pattern.compile('[0-9]').matcher(Ctr).find()) { |
| | | String str = '管理编码有误,请检查条形码数据。'; |
| | | ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(codc,str)); |
| | | ErrorIdMap.put(codc.Bar_Code__c,codc.Bar_Code__c); |
| | | continue; |
| | | } |
| | | } |
| | | // String str = '管理编码中有数字,请与管理员确认是否错误。'; |
| | | // ConsumableorderdetailsRecordserror.add(new ConsumableorderdetailsInfo(codc,str)); |
| | | // ErrorIdMap.put(codc.Bar_Code__c,codc.Bar_Code__c); |
| | | // continue; |
| | | // gzw DB202305352696 入库管理编码验证程序调整 end |
| | | } |
| | | if( CheckBarcodeResult.containsKey( codc.Bar_Code__c )){ |
| | | GrList.add(codc.Bar_Code__c); |
| | |
| | | // tcm end |
| | | ,Report_Product_Expiration__c |
| | | //add by rentx 2020-10-13 end |
| | | ,Intra_Trade_List__c |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | FROM Consumable_order_details2__c |
| | | WHERE |
| | | // WYIN-BLZE48盘点丢失产品增加入库方式 update by vivek 2020-03-05 start |
| | |
| | | codcorderdet.SerialLotNo__c = codi.esd.SerialLotNo__c; |
| | | codcorderdet.TracingCode__c = codi.esd.TracingCode__c; |
| | | codcorderdet.Sterilization_limit__c = codi.esd.Sterilization_limit__c; |
| | | codcorderdet.Intra_Trade_List_RMB__c = codi.esd.Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | codcorderdet.Intra_Trade_List_RMB__c = (codi.esd.Intra_Trade_List_RMB__c == null || codi.esd.Intra_Trade_List_RMB__c == 0) ? codi.esd.Intra_Trade_List__c : codi.esd.Intra_Trade_List_RMB__c; |
| | | codcorderdet.RemoveBox_No__c = codctmp.RemoveBox_No__c; |
| | | codcorderdet.RemoveBox_date__c = codctmp.RemoveBox_date__c; |
| | | codcorderdet.Box_Piece__c = codctmp.Box_Piece__c; |
| | |
| | | codcorderdet.SerialLotNo__c = codi.esd.SerialLotNo__c; |
| | | codcorderdet.TracingCode__c = codi.esd.TracingCode__c; |
| | | codcorderdet.Sterilization_limit__c = codi.esd.Sterilization_limit__c; |
| | | codcorderdet.Intra_Trade_List_RMB__c = codi.esd.Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | codcorderdet.Intra_Trade_List_RMB__c = (codi.esd.Intra_Trade_List_RMB__c == null || codi.esd.Intra_Trade_List_RMB__c == 0) ? codi.esd.Intra_Trade_List__c : codi.esd.Intra_Trade_List_RMB__c; |
| | | // WYIN-BLZE48盘点丢失产品增加入库方式 update by vivek 2020-03-05 start |
| | | if(hasLoseGoods){ |
| | | codcorderdet.loseInventory__c = true; |
| | |
| | | codcList.add( codi.esd ); |
| | | } |
| | | } |
| | | |
| | | //明细2不存在的对应的到货订单明细 2017-07-05 |
| | | Integer i = 1; |
| | | //for(ConsumableorderdetailsInfo ass : consumableInventoryUse){ |
| | |
| | | //到货明细 |
| | | codcorderdetail.Name = consumable_order_arr[0].Name + '-'+ str; |
| | | codcorderdetail.RecordTypeId = System.Label.RT_ConOrderDetail2_Delivery; |
| | | codcorderdetail.Intra_Trade_List_RMB__c = null; |
| | | codcorderdetail.Intra_Trade_List_RMB__c = ass.Prod.Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | codcorderdetail.Asset_Model_No__c = ass.Prod.Asset_Model_No__c; |
| | | codcorderdetail.Direct_Arrive_Product__c = true; |
| | | codcorderdetail.Sterilization_limit__c = ass.sterilizationlimitDate; |
| | |
| | | |
| | | retorddetail.Name = consumable_order_ret[0].Name + '-'+ str; |
| | | retorddetail.RecordTypeId = System.Label.RT_ConOrderDetail2_Return; |
| | | retorddetail.Intra_Trade_List_RMB__c = null; |
| | | retorddetail.Intra_Trade_List_RMB__c = ass.Prod.Intra_Trade_List_RMB__c; |
| | | //gzw 手动入库 默认产品单价 20230307 |
| | | retorddetail.Dealer_Info_IF__c = accountid; |
| | | retorddetail.Asset_Model_No__c = ass.Prod.Asset_Model_No__c; |
| | | retorddetail.Direct_Arrive_Product__c = true; |