Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed suspendedtoday view to explicitly select fields instead of us…

…ing wildcard
  • Loading branch information...
commit 7770e8577c3914e71f18b322a01fc4dae3570d5d 1 parent a657a3e
@jdpurdyvi jdpurdyvi authored maxolasersquad committed
Showing with 37 additions and 5 deletions.
  1. +37 −5 pos/installation/mysql/is4c_log/views/suspendedtoday.viw
View
42 pos/installation/mysql/is4c_log/views/suspendedtoday.viw
@@ -1,6 +1,38 @@
-use is4c_log;
+USE `is4c_log`;
DROP VIEW IF EXISTS `suspendedtoday`;
-
-create view suspendedtoday as
-select * from suspended
-where date_format(datetime,'%Y-%m-%d') = date_format(now(), '%Y-%m-%d');
+CREATE VIEW `suspendedtoday` AS SELECT
+ `suspended`.`datetime` AS `datetime`,
+ `suspended`.`register_no` AS `register_no`,
+ `suspended`.`emp_no` AS `emp_no`,
+ `suspended`.`trans_no` AS `trans_no`,
+ `suspended`.`upc` AS `upc`,
+ `suspended`.`description` AS `description`,
+ `suspended`.`trans_type` AS `trans_type`,
+ `suspended`.`trans_subtype` AS `trans_subtype`,
+ `suspended`.`trans_status` AS `trans_status`,
+ `suspended`.`department` AS `department`,
+ `suspended`.`quantity` AS `quantity`,
+ `suspended`.`Scale` AS `Scale`,
+ `suspended`.`unitPrice` AS `unitPrice`,
+ `suspended`.`total` AS `total`,
+ `suspended`.`regPrice` AS `regPrice`,
+ `suspended`.`tax` AS `tax`,
+ `suspended`.`foodstamp` AS `foodstamp`,
+ `suspended`.`discount` AS `discount`,
+ `suspended`.`memDiscount` AS `memDiscount`,
+ `suspended`.`discountable` AS `discountable`,
+ `suspended`.`discounttype` AS `discounttype`,
+ `suspended`.`voided` AS `voided`,
+ `suspended`.`percentDiscount` AS `percentDiscount`,
+ `suspended`.`ItemQtty` AS `ItemQtty`,
+ `suspended`.`volDiscType` AS `volDiscType`,
+ `suspended`.`volume` AS `volume`,
+ `suspended`.`VolSpecial` AS `VolSpecial`,
+ `suspended`.`mixMatch` AS `mixMatch`,
+ `suspended`.`matched` AS `matched`,
+ `suspended`.`memType` AS `memType`,
+ `suspended`.`staff` AS `staff`,
+ `suspended`.`card_no` AS `card_no`,
+ `suspended`.`trans_id` AS `trans_id`
+ FROM `suspended`
+ WHERE (DATE_FORMAT(`suspended`.`datetime`,'%Y-%m-%d')=DATE_FORMAT(NOW(),'%Y-%m-%d'))
Please sign in to comment.
Something went wrong with that request. Please try again.