From 216f61fcfdd0bc469cec809c31e4d49c1d86158e Mon Sep 17 00:00:00 2001
From: 彭锟 <pengkun@prec-tech.com>
Date: 星期五, 01 四月 2022 13:46:25 +0800
Subject: [PATCH] 0331先款后修上线相关内容

---
 force-app/main/default/classes/NFM104Rest.cls |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/NFM104Rest.cls b/force-app/main/default/classes/NFM104Rest.cls
index 653b2d9..074a13e 100644
--- a/force-app/main/default/classes/NFM104Rest.cls
+++ b/force-app/main/default/classes/NFM104Rest.cls
@@ -23,6 +23,9 @@
         public InspectionResultInformation[] InspectionResultInformation;
         public FailureInformation[] FailureInformation;
         public ActivityInformation[] ActivityInformation;
+        // PK 2021/12/6 start
+        public String AdvancePaymentFlag;
+        // PK 2021/12/6 end
     }
     global class DiscountInformation {
         public String DiscountType;
@@ -144,6 +147,7 @@
                                                               , FirstQuotationDate__c, ListPrice__c, TotalPrice__c
                                                               , Repair_Discount_Date__c
                                                               , CafeteriaFlag__c, MessageGroupNumber__c
+                                                              , Is_RecognitionModel__c
                                                          from Repair_Quotation__c
                                                         where Name in :quotationNoList
                                                       ];
@@ -199,7 +203,14 @@
                         iflog.ErrorLog__c += 'isnot SFDCRepairNo[' + quoteInfo.SFDCRepairNo + ']\'s child\n';
                     }
                 }
-
+                // PK 2021/12/6 start
+                if('X'.equals(quoteInfo.AdvancePaymentFlag)){
+                    rq.Is_RecognitionModel__c = true;
+                }else{
+                    rq.Is_RecognitionModel__c = false;
+                }
+                // PK 2021/12/6 end
+                
                 rq.Name = quoteInfo.SAPQuotationNo;
                 if (rqUpdateMap.get(rq.Name) == null) {
                     rqUpdateMap.put(rq.Name, rq);

--
Gitblit v1.9.1