diff --git a/application/models/giftcard.php b/application/models/giftcard.php
index 017065427..6b3240129 100644
--- a/application/models/giftcard.php
+++ b/application/models/giftcard.php
@@ -28,7 +28,7 @@ class Giftcard extends CI_Model
/*
Returns all the giftcards
*/
- function get_all($limit=10000, $offset=0)
+ function get_all($offset=0,$limit=10000)
{
$this->db->from('giftcards');
$this->db->join('people','people.person_id=giftcards.person_id');//GARRISON ADDED 4/25/2013
@@ -243,7 +243,7 @@ class Giftcard extends CI_Model
$this->db->or_like("CONCAT(`first_name`,' ',`last_name`)",$this->db->escape_like_str($search));
$this->db->or_like("giftcard_number",$this->db->escape_like_str($search));
$this->db->or_like("giftcards.person_id",$this->db->escape_like_str($search));
- $this->db->where('deleted',$this->db->escape('0'));
+ $this->db->where('deleted','0');
$this->db->order_by("giftcard_number", "asc");
if ($rows > 0) {
$this->db->limit($rows, $limit_from);
diff --git a/application/views/sales/invoice.php b/application/views/sales/invoice.php
index 575deacf9..be575fd7d 100755
--- a/application/views/sales/invoice.php
+++ b/application/views/sales/invoice.php
@@ -78,30 +78,18 @@ if (isset($error_message))
|
|
|
- |
- |
+ |
+ |
-
- |
-
- |
-
+ |
- | |
+ |
|
|
diff --git a/application/views/sales/invoice_email.php b/application/views/sales/invoice_email.php
index 5b5a4f6bf..ada375f31 100644
--- a/application/views/sales/invoice_email.php
+++ b/application/views/sales/invoice_email.php
@@ -35,13 +35,11 @@ if (isset($error_message))
?>
-
-
-
+ ?>
|
@@ -91,26 +89,14 @@ if (isset($error_message))
|
|
|
- |
+ |
|
-
- |
-
|
-
diff --git a/css/invoice.css b/css/invoice.css
index 14f932e13..d57c84bd7 100755
--- a/css/invoice.css
+++ b/css/invoice.css
@@ -11,6 +11,7 @@
#page-wrap textarea { border: 0; font: 14px Georgia, Sans-Serif; overflow: hidden; resize: none; }
#page-wrap table { border-collapse: collapse; }
#page-wrap table td, #page-wrap table th { border: 1px solid black; padding: 5px; }
+#page-wrap table td { padding: 5px; }
#header { height: 30px; width: 100%; margin: 20px 0; background: #222; text-align: center; color: white; font: bold 26px Helvetica, Sans-Serif; letter-spacing: 4px; padding: 8px 0px; }
@@ -37,7 +38,7 @@
#meta td textarea { width: 100%; height: 20px; text-align: right; }
#items { clear: both; width: 100%; margin: 30px 0 0 0; border: 1px solid black; }
-#items th { background: #eee; }
+#items th { background: #eee; text-align: center; }
#items textarea { width: 80px; height: 40px; }
#items tr.item-row td { border: 0; vertical-align: top; }
#items td.description { width: 300px; }
@@ -49,6 +50,7 @@
#items td.total-line textarea { height: 20px; width:150px; background: none; }
#items td.balance { background: #eee; }
#items td.blank { border: 0; }
+#items td.blank-bottom { border: 1px; }
#terms { text-align: center; margin: 20px 0 0 0; }
#terms h5 { text-transform: uppercase; font: 13px Helvetica, Sans-Serif; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }