From f72f022811e378806d62e7567cb202f2a6ebd3cd Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 29 Dec 2014 07:53:41 +0000 Subject: [PATCH] Added payment_type. --- Connections/database_functions.php | 8 ++++-- js/transaction.js | 39 +++++++++++++++++++++--------- json/transaction.php | 11 +++++++++ shop_log.php | 3 ++- sql/populate.sql | 2 +- transaction_log.php | 11 ++++++--- 6 files changed, 55 insertions(+), 19 deletions(-) diff --git a/Connections/database_functions.php b/Connections/database_functions.php index 873efa8..a41c86e 100644 --- a/Connections/database_functions.php +++ b/Connections/database_functions.php @@ -1,12 +1,16 @@ \ No newline at end of file diff --git a/shop_log.php b/shop_log.php index c6388a6..13863d8 100644 --- a/shop_log.php +++ b/shop_log.php @@ -5,6 +5,7 @@ require_once('Connections/database_functions.php'); $page_edit_contact = PAGE_EDIT_CONTACT; $page_individual_history_log = INDIVIDUAL_HISTORY_LOG; $default_shop_user = DEFAULT_SHOP_USER; +$shop_hours_length = SHOP_HOURS_LENGTH; mysql_select_db($database_YBDB, $YBDB); //?shop_id=2 @@ -215,7 +216,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) { - +   edit";} else {echo " ";} ?> diff --git a/sql/populate.sql b/sql/populate.sql index 0dacf55..0503c0c 100644 --- a/sql/populate.sql +++ b/sql/populate.sql @@ -145,4 +145,4 @@ INSERT INTO transaction_types -- description, sold_to, sold_by, quantity, shop_id, paid ALTER TABLE transaction_log ADD paid tinyint(1) NOT NULL DEFAULT '0'; -ALTER TABLE transaction_log ADD payment_type varchar(5) DEFAULT NULL; +ALTER TABLE transaction_log ADD payment_type varchar(6) DEFAULT NULL; diff --git a/transaction_log.php b/transaction_log.php index 87877de..28d71f7 100644 --- a/transaction_log.php +++ b/transaction_log.php @@ -319,15 +319,18 @@ FROM transaction_log WHERE transaction_id = $trans_id; "; if($row_Recordset3['show_description']){ ?>   - + - Cash - Credit Card - Check + >Cash + >Credit Card + >Check