From 2a2cfdf553cd932dc1b1a591b188a8c224181c96 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 24 五月 2024 16:38:56 +0800
Subject: [PATCH] 1
---
force-app/main/default/classes/NewQuoteEntryWebService.cls | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/classes/NewQuoteEntryWebService.cls b/force-app/main/default/classes/NewQuoteEntryWebService.cls
index 3fb949b..e91a509 100644
--- a/force-app/main/default/classes/NewQuoteEntryWebService.cls
+++ b/force-app/main/default/classes/NewQuoteEntryWebService.cls
@@ -1,5 +1,6 @@
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,
@@ -25,7 +26,7 @@
Where Id in :ids];
return p2;
}
-
+ @AuraEnabled
WebService static List<QuoteLineItem> getQuoteLineItem(String quoId) {
System.debug(Logginglevel.ERROR, 'NewQuoteEntryWebService getQuoteLineItem Start ' + quoId);
@@ -44,13 +45,14 @@
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
@@ -80,6 +82,9 @@
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;
@@ -142,6 +147,7 @@
}
//SWAG-C3BAVY 銆愬鎵樸�戣浠锋柊鏃ode 鏇挎崲 绮剧悽鎶�鏈� wql 20210607 start
//鐢ㄤ簬鎶ヤ环鍗曟潯鏇挎崲浜у搧otcode
+ @AuraEnabled
WebService static Boolean updateOTCode(String tempQuoId){
Boolean successFlag = true;
//瀹氫箟璇环id
@@ -364,7 +370,7 @@
public QELine(OpportunityLineItem oli,String otcode,String proId,String tempPriceBookEntryId){
this.pageOppObject = oli.clone();
//insert 鎶ヤ环涓嶉渶瑕乮d
- // this.Id = qli.Id;
+ // this.Id = qli.Id;
//鏇挎崲浜у搧鍜屼环鏍兼墜鍐�
if(String.isNotBlank(otcode)){
if(tempPriceBookEntryId!=null){
--
Gitblit v1.9.1