From 0c4796706fc9473d069b620321a54b20a119906c Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:16:44 +0800
Subject: [PATCH] Merge branch 'LEXUpgrade2023-Deloitte'

---
 force-app/main/default/classes/LexInventoryController.cls |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/LexInventoryController.cls b/force-app/main/default/classes/LexInventoryController.cls
index c9de568..909cdb8 100644
--- a/force-app/main/default/classes/LexInventoryController.cls
+++ b/force-app/main/default/classes/LexInventoryController.cls
@@ -157,7 +157,11 @@
         String userId = UserInfo.getUserId();
         //String userId = '00510000006k82X';
         //String userId = '00510000005QO75';
-        user Useracc = [SELECT Accountid, Work_Location__c, UserPro_Type__c FROM user WHERE id = :userId];
+        user Useracc = [
+            SELECT Accountid, Work_Location__c, UserPro_Type__c
+            FROM user
+            WHERE id = :userId
+        ];
         accountid = Useracc.Accountid;
         userWorkLocation = Useracc.Work_Location__c;
         agencyProType = Useracc.UserPro_Type__c;
@@ -165,7 +169,11 @@
             agencyProType = 'ET';
         }
         sqlagencyProType = '%' + agencyProType + '%';
-        Account accountInfo = [SELECT Name, Dealer_discount__c FROM account WHERE id = :accountid];
+        Account accountInfo = [
+            SELECT Name, Dealer_discount__c
+            FROM account
+            WHERE id = :accountid
+        ];
         accountName = accountInfo.Name;
         consumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>();
         Map<String, Product2__c> midMap = new Map<String, Product2__c>();
@@ -1280,7 +1288,11 @@
         try {
             insert Po;
             eSetId = Po.id;
-            List<Consumable_order__c> Consumable_order = [SELECT Name FROM Consumable_order__c WHERE id = :Po.id];
+            List<Consumable_order__c> Consumable_order = [
+                SELECT Name
+                FROM Consumable_order__c
+                WHERE id = :Po.id
+            ];
             List<Consumable_orderdetails__c> InsList = new List<Consumable_orderdetails__c>();
             List<Consumable_order_details2__c> InsListUp = new List<Consumable_order_details2__c>();
             List<Consumable_order_details2__c> updListAdjust = new List<Consumable_order_details2__c>();

--
Gitblit v1.9.1