wugg 8 mēneši atpakaļ
vecāks
revīzija
9f3e1938dd
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      app/listener/CopyCompany.php

+ 4 - 4
app/listener/CopyCompany.php

@@ -111,13 +111,13 @@ class CopyCompany
                             'contector' => $supplier['contactor']??'',
                             'post' => $supplier['position']??'',
                             'type' => 1,
-                            'nature' =>  $supplier['nature']??'',
+                            'nature' =>  $this->_catpay[$supplier['nature']]??$this->_catpay[0],
                             'corporation' => $supplier['legaler']??'',
                             'registertime' => $supplier['registertime']??'',
                             'capital' => $supplier['capital']??'',
                             'supplier_type' => $this->_cat[$supplier['supplier_type']]??'',
                             'pay_method' => $this->_payway[$supplier['pay_type']],
-                            'paydays' => $supplier['pay_day']??"0",
+                            'paydays' => $supplier['pay_day']??"",
                             'mobile' => $supplier['mobile']??'',
                             'address' => $supplier['addr']??'',
                             'return_ticket' => $supplier['ticket_type']??"",
@@ -134,11 +134,11 @@ class CopyCompany
 		}else{
 			$data = [
 	                        'name' => $supplier['name'],
-                            'source' => $supplier['source'],
+                             'source' => $this->_source[$supplier['source']]??$this->_source[0],
                             'contector' => $supplier['contactor']??'',
                             'post' => $supplier['position']??'',
                             'type' => 1,
-                            'nature' => $this->_source[$supplier['source']]??$this->_source[0],
+                            'nature' => $this->_catpay[$supplier['nature']]??$this->_catpay[0],
                             'corporation' => $supplier['legaler'],
                             'registertime' => $supplier['registertime'],
                             'capital' => $supplier['capital']??'',