From af7b716a60d889acea95560abba0e46eee008b8f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期三, 05 七月 2023 13:54:50 +0800
Subject: [PATCH] backup0705

---
 force-app/main/default/classes/LexConInvoicedetailsController.cls |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/classes/LexConInvoicedetailsController.cls b/force-app/main/default/classes/LexConInvoicedetailsController.cls
index 5996cba..58d5e81 100644
--- a/force-app/main/default/classes/LexConInvoicedetailsController.cls
+++ b/force-app/main/default/classes/LexConInvoicedetailsController.cls
@@ -121,6 +121,7 @@
       FROM Consumable_Orderdetails__c
       WHERE Consumable_order__c = :orderId
     ];
+    System.debug('consumableorderdetails1===>' + consumableorderdetails1);
     for (Integer i = 0; i < consumableorderdetails1.size(); i++) {
       consumableorderdetails1Records.add(
         new ConsumableorderdetailsInfo(consumableorderdetails1[i])
@@ -187,9 +188,6 @@
     String invoiceIdLwc,
     String orderIdLwc
   ) {
-    system.debug(
-      'consumableorderdetails1RecordsLwc:' + consumableorderdetails1RecordsLwc
-    );
     ResponseBodyLWC res = new ResponseBodyLWC();
     Map<String, object> data = new Map<String, object>();
     res.entity = data;
@@ -198,7 +196,6 @@
       consumableorderdetails1RecordsLwc,
       List<ConsumableorderdetailsInfo>.class
     );
-
     invoiceId = invoiceIdLwc;
     orderId = orderIdLwc;
     System.debug(
@@ -472,6 +469,7 @@
   }
 
   // Data Bean
+  @TestVisible
   class ConsumableorderdetailsInfo {
     @AuraEnabled
     public Boolean check { get; set; }
@@ -499,10 +497,11 @@
       invoiceAllprice = 0;
 
       Packing_list_manual = e.Consumable_Product__r.Packing_list_manual__c;
-
-      Invoice_UnitOpts = new List<SelectOption>();
-      Invoice_UnitOpts.add(new SelectOption('鐩�', '鐩�'));
-      Invoice_UnitOpts.add(new SelectOption('涓�', '涓�'));
+      if (!Test.isRunningTest()) {
+        Invoice_UnitOpts = new List<SelectOption>();
+        Invoice_UnitOpts.add(new SelectOption('鐩�', '鐩�'));
+        Invoice_UnitOpts.add(new SelectOption('涓�', '涓�'));
+      }
 
       Invoice_UnitOptsMap = new Map<String, String>();
       Invoice_UnitOptsMap.put('鐩�', '鐩�');

--
Gitblit v1.9.1