Selaa lähdekoodia

feature/EK-4047

ryan 1 viikko sitten
vanhempi
commit
9e76b2f37b
1 muutettua tiedostoa jossa 15 lisäystä ja 0 poistoa
  1. 15 0
      backendApi/modules/v1/models/lists/finance/WithdrawList.php

+ 15 - 0
backendApi/modules/v1/models/lists/finance/WithdrawList.php

@@ -181,4 +181,19 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
         }
         return $this->filterTypes;
     }
+
+    public function getCountry()
+    {
+        $countries = Countries::getFromCache();
+
+        $data = [];
+        foreach ($countries as $country) {
+            $data[] = [
+                'id' => $country['ID'],
+                'name' => $country['NAME'],
+            ];
+        }
+
+        return $data;
+    }
 }