gogs hai 2 meses
pai
achega
1f27a5bbfc
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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']];
             $tabName = AuxiliaryAccountDetails::Type[$item['type']];
 
 
             // 针对当前 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])) {
                 if (!isset($typeCounters[$type])) {
                     $typeCounters[$type] = 1;
                     $typeCounters[$type] = 1;
                 } else {
                 } else {
@@ -299,7 +299,6 @@ class AuxiliaryAccountService extends Service
                     $typeCounters[$new_key]++;
                     $typeCounters[$new_key]++;
                 }
                 }
             }
             }
-
             $errorPrefix = "【{$tabName}】第 " . $typeCounters[$type] . " 行:";
             $errorPrefix = "【{$tabName}】第 " . $typeCounters[$type] . " 行:";
 
 
             if (!isset($item['voucher_date'])) {
             if (!isset($item['voucher_date'])) {