| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,PricebookEntry.Product2.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | // sp主机类型 cjw start |
| | | ,PricebookEntry.Product2.ProductCategory__c |
| | | // sp主机类型 cjw end |
| | | ,Quote.Opportunity.Trade__c |
| | | ,PricebookEntry.Product2.Estimated_ConsumptionDueDate__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | |
| | | ,PricebookEntry.Product2.NoDiscount_Foreign__c |
| | | ,PricebookEntry.Product2.Estimated_ConsumptionDueDate__c |
| | | ,PricebookEntry.Product2.Category5__c |
| | | // sp主机类型 cjw start |
| | | ,PricebookEntry.Product2.ProductCategory__c |
| | | // sp主机类型 cjw end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,PricebookEntry.Product2.IFEndoRapidFlag__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | if (s.Asset_Model != null && s.Asset_Model != '') { |
| | | if (s.pageObject.PricebookEntryId != null) { |
| | | ol = New OpportunityLineItem(); |
| | | // chenjingwu Sp主机类型 20240318 start |
| | | ol.SP_Assistant__c = s.SPAssistant; |
| | | // chenjingwu Sp主机类型 20240318 end |
| | | ol.OpportunityId = oppid; |
| | | ol.Id__c = s.pageObject.Id__c; |
| | | // ol.SFDA_Status__c = s.pageObject.SFDA_Status__c; |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | + ' , Product2.Category5__c ' |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //sp主机 cjw 20240319 start |
| | | + ' , Product2.ProductCategory__c ' |
| | | //sp主机 cjw 20240319 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | + ' , Product2.IFEndoRapidFlag__c ' |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //sp主机 cjw 20240411 start |
| | | ,ProductCategory__c |
| | | ///sp主机 cjw 20240411 end |
| | | ,Estimated_ConsumptionDueDate__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,IFEndoRapidFlag__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | |
| | | //sp主机 cjw 20240411 start |
| | | ,prd.ProductCategory__c |
| | | //sp主机 cjw 20240411 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,prd.IFEndoRapidFlag__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | , prd.Maintenance_Price_Year__c |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | |
| | | //sp主机 cjw 20240411 start |
| | | ,prd.ProductCategory__c |
| | | //sp主机 cjw 20240411 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,prd.IFEndoRapidFlag__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //sp主机 cjw 20240411 start |
| | | ,ProductCategory__c |
| | | //sp主机 cjw 20240411 end |
| | | ,Estimated_ConsumptionDueDate__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,IFEndoRapidFlag__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | |
| | | //sp主机 cjw 20240411 start |
| | | ,prd.ProductCategory__c |
| | | //sp主机 cjw 20240411 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,prd.IFEndoRapidFlag__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | |
| | | //sp主机 cjw 20240411 start |
| | | ,prd.ProductCategory__c |
| | | //sp主机 cjw 20240411 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,prd.IFEndoRapidFlag__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | |
| | | public Decimal ProductGuranteePrice; |
| | | public decimal Maintenance_Price_Year; |
| | | public String Category5; |
| | | // chenjingwu sp主机类型 20240318 start |
| | | public String SPAssistant; |
| | | public Boolean SPAssistantFlag; |
| | | public String ProductCategory; |
| | | // chenjingwu sp主机类型 20240318 end |
| | | public QELine(){} |
| | | public QELine(QuoteLineItem qli, Integer i, String copyQuoId) { |
| | | this.lineNo = i; |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | Category5 = qli.PricebookEntry.Product2.Category5__c; |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | // chenjingwu SP主机类型 20240318 start |
| | | this.ProductCategory = qli.PricebookEntry.Product2.ProductCategory__c; |
| | | if(qli.PricebookEntry.Product2.ProductCategory__c == 'SP主机'){ |
| | | this.SPAssistantFlag = true; |
| | | } |
| | | // chenjingwu SP主机类型 20240318 end |
| | | this.Asset_Model = qli.Asset_Model_No__c; |
| | | if (qli.Cost__c > 0 && qli.Quantity > 0) { |
| | | this.Cost_Subtotal_c = qli.Cost__c * qli.Quantity; |
| | |
| | | if (oli.PricebookEntry.Product2.Packing_list_manual__c != null) { |
| | | this.Specifications = integer.valueof(oli.PricebookEntry.Product2.Packing_list_manual__c + ''); |
| | | } |
| | | // chenjingwu SP主机类型 20240318 start |
| | | if(oli.SP_Assistant__c != null || oli.PricebookEntry.Product2.ProductCategory__c == 'SP主机'){ |
| | | this.SPAssistant = oli.SP_Assistant__c; |
| | | this.SPAssistantFlag = true; |
| | | } |
| | | // chenjingwu SP主机类型 20240318 end |
| | | pageObject.Id__c = oli.PricebookEntry.Product2Id; |
| | | pageObject.UnitPrice_Page__c = oli.UnitPrice__c; |
| | | pageObject.AgencySubtotal__c = oli.AgencySubtotal__c; |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,String Category5 |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | |
| | | //sp主机类型 cjw 20240411 start |
| | | ,String ProductCategory |
| | | //sp主机类型 cjw 20240411 end |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,Boolean IFEndoRapidFlag |
| | | //DB202312560765 you 否有EndoRapid资质检查 end |
| | | ) { |
| | | pageObject = New QuoteLineItem(); |
| | | pageObject.Quantity__c = Quantity; |
| | | //sp主机类型 cjw 20240411 start |
| | | this.ProductCategory = ProductCategory; |
| | | //sp主机类型 cjw 20240411 start |
| | | this.lineNo = i; |
| | | this.Asset_Model = Asset_Model; |
| | | this.Sales_Possibility = Sales_Possibility_c; |