From f5e7d4f4db0bad27c5717317884faa19d5deb03a Mon Sep 17 00:00:00 2001 From: Theo Weijmer Date: Sun, 5 Aug 2018 11:03:09 +0200 Subject: [PATCH] Uppercase vatcontroller --- .../controllers/beheer/vatController.php | 60 ------------------- 1 file changed, 60 deletions(-) delete mode 100644 application/controllers/beheer/vatController.php diff --git a/application/controllers/beheer/vatController.php b/application/controllers/beheer/vatController.php deleted file mode 100644 index c20a59e..0000000 --- a/application/controllers/beheer/vatController.php +++ /dev/null @@ -1,60 +0,0 @@ -load->model( $models ); - $this->load->library( $libraries ); - } - - public function index() - { - - } - - public function getVats( $archive ) - { - $vats = Vat::getVats( $archive ); - - $this->json( $vats ); - } - - public function addVat() - { - Vat::create( [] ); - } - - public function saveVat( $vatID ) - { - $vatrate = $this->input->post( 'vatrate' ); - Vat::whereId( $vatID )->update( ['vatrate' => $vatrate] ); - } - - public function removeVat( $vatID ) - { - $removeVat = new RemoveVat($vatID); - - $allowRemove = $removeVat->getRemoveAllowed(); - - if( $allowRemove === FALSE ) return $this->json( ['result'=>FALSE]); - - Vat::whereId($vatID)->delete(); - - $this->json( ['result'=>TRUE]); - } -} \ No newline at end of file