From bf2be9cf1da8b202ba13a18c92c335d49e5e21ce Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 14:24:39 +0800
Subject: [PATCH] 1

---
 force-app/main/default/classes/lexNewQuoteEntryController.cls |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/lexNewQuoteEntryController.cls b/force-app/main/default/classes/lexNewQuoteEntryController.cls
index c7dc449..46726f3 100644
--- a/force-app/main/default/classes/lexNewQuoteEntryController.cls
+++ b/force-app/main/default/classes/lexNewQuoteEntryController.cls
@@ -1674,6 +1674,9 @@
                              //chenjingwu DB202308355043 2023.8.25 start
                              , prd.Category5__c
                              //chenjingwu DB202308355043 2023.8.25 end
+                             //chenjingwu 20240411 start
+                             , 0
+                             //chenjingwu 20240411 end
                              //fy DB202312538864 2024.02.02 start
                             ,prd.LastbuyProductFLG__c
                             ,prd.whetherOldCode_PrePro__c
@@ -1703,6 +1706,9 @@
                              //chenjingwu DB202308355043 2023.8.25 start
                              , prd.Category5__c
                              //chenjingwu DB202308355043 2023.8.25 end
+                             //chenjingwu 20240411 start
+                             , 0
+                             //chenjingwu 20240411 end
                              //fy DB202312538864 2024.02.02 start
                             ,prd.LastbuyProductFLG__c
                             ,prd.whetherOldCode_PrePro__c
@@ -1781,7 +1787,7 @@
           for (String s : xlslist) {
             //odd number or even number
             // chenjingwu 20240411 start
-            if (math.mod(i, 3) == 0) {
+            if (math.mod(i, 3) == 1) {
               system.debug('xlslist1+++'+s);
               //odd number
               if (s == '' || s == null) {
@@ -1795,7 +1801,7 @@
                 xlsQuantity = Integer.valueOf(s);
                 Quantitylist.add(xlsQuantity);
               }
-            } else if(math.mod(i, 3) == 1){
+            } else if(math.mod(i, 3) == 0){
               system.debug('xlslist2+++'+s);
               //even number
               if (s == '' || s == null) {

--
Gitblit v1.9.1