From 8ea597d3c67631cd702415d43bc3d2961f6bc94d Mon Sep 17 00:00:00 2001
From: 付煜 <fuyu3103346691@163.com>
Date: 星期五, 25 三月 2022 09:49:28 +0800
Subject: [PATCH] lastbuy询价相关

---
 force-app/main/default/classes/NFM007TriggerTest.cls |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/NFM007TriggerTest.cls b/force-app/main/default/classes/NFM007TriggerTest.cls
index df44fe7..621bd37 100644
--- a/force-app/main/default/classes/NFM007TriggerTest.cls
+++ b/force-app/main/default/classes/NFM007TriggerTest.cls
@@ -996,7 +996,7 @@
 
 
         PromotionSalesProducts__c psp = new PromotionSalesProducts__c();
-        psp.QuantityId__c = quo.id;
+        psp.QuantityId__c = quo.ID;
         // psp.PromotionSales__r.PromotionHead__r.SpoId__c
         // psp.PromotionSales__r.Category__c
         psp.PromotionSales__c = ps.id;
@@ -1008,7 +1008,7 @@
         insert psp;
         
         QuoteLineItem qli = new QuoteLineItem();
-        qli.QuoteId = quo.Id;
+        qli.QuoteId = quo.ID;
         qli.Id__c = '210';
         qli.SFDA_Status__c = '鏈夊姽';
         qli.Name__c = '211';
@@ -1023,7 +1023,7 @@
         qli.PricebookEntryId = entry.Id;
         //qli.PricebookEntry.Product2Id = product.ID;
         insert qli;
-
+        
         OpportunityLineItem oppli = new OpportunityLineItem();
         oppli.OpportunityId = opp.Id;
         oppli.Id__c = '110';
@@ -1047,6 +1047,9 @@
         opp.Gurantee_Period__c = '2';
         opp.oldData_flg__c = true;
         opp.Estimation_Decision__c = true;
+        // opp.Estimation_Decision__c = true;
+        opp.Estimation_Id__c    = quo.ID;
+        // update opp;
         update opp;  
         //Test.stopTest();
     }

--
Gitblit v1.9.1