gogs 2 месяцев назад
Родитель
Сommit
1f27a5bbfc
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Service/AuxiliaryAccountService.php

+ 1 - 2
app/Service/AuxiliaryAccountService.php

@@ -281,7 +281,7 @@ class AuxiliaryAccountService extends Service
             $tabName = AuxiliaryAccountDetails::Type[$item['type']];
 
             // 针对当前 type 的行数进行累加
-            if($type == AuxiliaryAccountDetails::TYPE_ONE || $type == AuxiliaryAccountDetails::TYPE_TWO){
+            if($type == AuxiliaryAccountDetails::TYPE_ONE || $type == AuxiliaryAccountDetails::TYPE_TWO|| $type == AuxiliaryAccountDetails::TYPE_THREE){
                 if (!isset($typeCounters[$type])) {
                     $typeCounters[$type] = 1;
                 } else {
@@ -299,7 +299,6 @@ class AuxiliaryAccountService extends Service
                     $typeCounters[$new_key]++;
                 }
             }
-
             $errorPrefix = "【{$tabName}】第 " . $typeCounters[$type] . " 行:";
 
             if (!isset($item['voucher_date'])) {