| | |
| | | global class NewQuoteEntryWebService { |
| | | |
| | | @AuraEnabled |
| | | WebService static List<Product2> getProduct2(List<String> ids) { |
| | | List<Product2> p2 = |
| | | [select Id, Name, SFDA_Status__c, Intra_Trade_Cost_RMB__c, |
| | |
| | | Where Id in :ids]; |
| | | return p2; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | WebService static List<QuoteLineItem> getQuoteLineItem(String quoId) { |
| | | System.debug(Logginglevel.ERROR, 'NewQuoteEntryWebService getQuoteLineItem Start ' + quoId); |
| | | |
| | |
| | | |
| | | return items; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | WebService static Boolean selectQuotation(String oppId, String quoId) { |
| | | Boolean rt = false; |
| | | // 可以选择,没有被取消过的报价 |
| | | //20240418 DB202312560765 you 否有EndoRapid资质检查 增加查询 |
| | | List<Quote> quotes = [select Id, Estimation_List_Price__c, Dealer_Final_Price__c, Agency1__c, Agency1_Profit__c, Agency1_Profit_Rate__c, |
| | | Agency2__c, Agent1_Agent2_Price__c, Agency2_Profit__c, Agency2_Profit_Rate__c, Stocking_Price__c, Quote_No__c, Name, |
| | | OCM_Sales_Forecast__c, OCM_Agent1_Price__c, Opportunity.RecordType.DeveloperName, TotalPrice__c |
| | | OCM_Sales_Forecast__c, OCM_Agent1_Price__c, Opportunity.RecordType.DeveloperName, TotalPrice__c,HasType2Machine__c |
| | | from Quote where Id = :quoId and Cancel_Decide__c = false]; |
| | | List<QuoteLineItem> qlis = [select Id, Id__c, SFDA_Status__c, Name__c, ListPrice__c, Quantity, UnitPrice__c, Qty_Unit__c, Cost__c, |
| | | BSS_Category__c, Subtotal__c, PricebookEntryId |
| | |
| | | o.Agency2_Profit_Rate__c = quo.Agency2_Profit_Rate__c; |
| | | o.Stocking_Price__c = quo.Stocking_Price__c; |
| | | o.Estimation_No__c = quo.Quote_No__c; |
| | | //20240418 DB202312560765 you 否有EndoRapid资质检查 start |
| | | o.HasType2Machine__c = quo.HasType2Machine__c; |
| | | //20240418 DB202312560765 you 否有EndoRapid资质检查 end |
| | | o.Estimation_Name__c = quo.Name; |
| | | o.Estimation_Id__c = quo.Id; |
| | | |
| | |
| | | } |
| | | //SWAG-C3BAVY 【委托】询价新旧code 替换 精琢技术 wql 20210607 start |
| | | //用于报价单条替换产品otcode |
| | | @AuraEnabled |
| | | WebService static Boolean updateOTCode(String tempQuoId){ |
| | | Boolean successFlag = true; |
| | | //定义询价id |
| | |
| | | public QELine(OpportunityLineItem oli,String otcode,String proId,String tempPriceBookEntryId){ |
| | | this.pageOppObject = oli.clone(); |
| | | //insert 报价不需要id |
| | | // this.Id = qli.Id; |
| | | // this.Id = qli.Id; |
| | | //替换产品和价格手册 |
| | | if(String.isNotBlank(otcode)){ |
| | | if(tempPriceBookEntryId!=null){ |