From 497c9e46173ac3818dcbcb59ad6c427e778a2dba Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sat, 14 Jul 2018 11:20:54 -0400 Subject: [PATCH] Add support for India GST --- application/models/Customer.php | 2 +- application/models/Employee.php | 2 +- application/models/Giftcard.php | 2 +- application/models/Item.php | 6 +++--- application/models/Item_kit.php | 2 +- application/models/Person.php | 2 +- application/models/Supplier.php | 2 +- application/models/Tax.php | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/application/models/Customer.php b/application/models/Customer.php index 615ea2bc2..b6ea04564 100644 --- a/application/models/Customer.php +++ b/application/models/Customer.php @@ -349,7 +349,7 @@ class Customer extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Employee.php b/application/models/Employee.php index 0387d951f..f5678d666 100644 --- a/application/models/Employee.php +++ b/application/models/Employee.php @@ -246,7 +246,7 @@ class Employee extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Giftcard.php b/application/models/Giftcard.php index 898bfedd6..281ed5219 100644 --- a/application/models/Giftcard.php +++ b/application/models/Giftcard.php @@ -190,7 +190,7 @@ class Giftcard extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Item.php b/application/models/Item.php index fd94e7cf7..1d5f91315 100644 --- a/application/models/Item.php +++ b/application/models/Item.php @@ -658,7 +658,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } @@ -769,7 +769,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } @@ -874,7 +874,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Item_kit.php b/application/models/Item_kit.php index 6de74b7c4..ea62998eb 100644 --- a/application/models/Item_kit.php +++ b/application/models/Item_kit.php @@ -191,7 +191,7 @@ class Item_kit extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Person.php b/application/models/Person.php index f5cee9260..cf5c773ae 100644 --- a/application/models/Person.php +++ b/application/models/Person.php @@ -158,7 +158,7 @@ class Person extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Supplier.php b/application/models/Supplier.php index ea08fa887..5d9b728fe 100644 --- a/application/models/Supplier.php +++ b/application/models/Supplier.php @@ -217,7 +217,7 @@ class Supplier extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Tax.php b/application/models/Tax.php index ab6b7bb3b..ca08f8666 100644 --- a/application/models/Tax.php +++ b/application/models/Tax.php @@ -370,7 +370,7 @@ class Tax extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0,$limit); }