| | |
| | | global class OpportunityWebService { |
| | | |
| | | @AuraEnabled |
| | | WebService static String changeTrade(String oppId){ |
| | | |
| | | List<Quote> quoList = [select id from Quote where OpportunityId = :oppId]; |
| | |
| | | if (updList.size() > 0) update updList; |
| | | return 'OK'; |
| | | } |
| | | //SWAG-CG88AG【委托】提出价格申请是在协议有效期内,允许WIN fy start |
| | | WebService static Boolean judgeIsAssistantAppliedOutTime(String Quoteid) { |
| | | List<PromotionSales__c> PromotionSalesList = [select id,IsAssistantAppliedOutTime__c from PromotionSales__c where Quote__r.Quote_No__c =:Quoteid]; |
| | | for(PromotionSales__c pro : PromotionSalesList){ |
| | | if(pro.IsAssistantAppliedOutTime__c){ |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | //SWAG-CG88AG【委托】提出价格申请是在协议有效期内,允许WIN fy end |
| | | } |