Browse Source

Another UI change, css file, and sql change.

devel
Jonathan Rosenbaum 10 years ago
parent
commit
6f1a9d241e
  1. 24
      css/transactions.css
  2. 16
      sql/populate.sql
  3. 6
      transaction_log.php

24
css/transactions.css

@ -0,0 +1,24 @@
/* sensible UI defaults for transaction views */
/* right-align labels */
td > label {
float: right;
padding-right: 5px;
}
/* make unimportant buttons into links */
input[value=Delete], input[name=date_fill] {
background:none!important;
border:none;
padding:0!important;
color: blue;
/*border is optional*/
/* border-bottom:1px solid blue; */
cursor: pointer;
}
form[name=FormEdit] select:focus {
color: green;
}

16
sql/populate.sql

@ -111,11 +111,12 @@ INSERT INTO contacts (
--
INSERT INTO transaction_types
(transaction_type_id, rank, active, community_bike, show_transaction_id,
show_type, show_startdate, show_amount, show_description, show_soldto,
show_soldby, fieldname_date, fieldname_soldby, message_transaction_id,
fieldname_soldto, show_soldto_location, fieldname_description,
accounting_group
(transaction_type_id, rank,
active, community_bike, show_transaction_id, show_type, show_startdate,
show_amount, show_description, show_soldto, show_soldby,
fieldname_date, fieldname_soldby, message_transaction_id,
fieldname_soldto, show_soldto_location, fieldname_description,
accounting_group
) VALUES
("Build Your Own Bike", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, "Sale Date", "Sold By"," ", "Sold To", 1, "Description", "Sales"),
("Bicycles", 2, 1, 1, 1, 1, 0, 1, 1, 1, 1, "Sale Date", "Sold By"," ", "Sold To", 1, "Description", "Sales"),
@ -139,10 +140,11 @@ INSERT INTO transaction_types
("Sale - Complete Bike", 20, 1, 0, 1, 1, 0, 1, 1, 1, 1, "Sale Date", "Sold By"," ", "Sold To", 1, "Description", "Sales");
-- transaction_log - added paid or not
-- - added payment_type (cash, check or cc)
-- - added payment_type (cash, check or cc)
-- transaction_id, date_startstorage, date,transaction_type, amount,
-- 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 paid tinyint(1) NOT NULL DEFAULT '0';
ALTER TABLE transaction_log ADD payment_type varchar(5) DEFAULT NULL;

6
transaction_log.php

@ -285,14 +285,14 @@ FROM transaction_log WHERE transaction_id = $trans_id; ";
<td><label>Storage Start Date:</label></td>
<td><input name="date_startstorage" type="text" id="date_startstorage" value="<?php
echo $row_Recordset2['date_startstorage_day']; ?>" size="10" maxlength="10" />
<em>YYYY-MM-DD</em></td>
(yyyy-mm-dd)</td>
</tr>
<?php } //end if storage | start of date ================================================
?>
<tr><td>&nbsp;</td>
<td><label><?php echo $row_Recordset3['fieldname_date']; ?>:</label></td>
<td><input name="date" type="text" id="date" value="<?php echo $row_Recordset2['date_day']; ?>" size="10" maxlength="10" />
<em>YYYY-MM-DD
(yyyy-mm-dd)
<SCRIPT>
function FillDate() {
document.FormEdit.date.value = '<?php echo current_date(); ?>' }
@ -301,7 +301,7 @@ FROM transaction_log WHERE transaction_id = $trans_id; ";
<br /><?php
if ($row_Recordset3['show_startdate']) { // If there is a start date show storage expiration message.
echo ($row_Recordset2['date_day'] == "0000-00-00") ? $row_Recordset2['storage_days_left'] . " days of storage remaining. Bike must be finished by " . $row_Recordset2['storage_deadline'] . "." : "Bike is marked as complete and should no longer be stored in the shop.";
} ?></em></td>
} ?></td>
</tr>
<?php if($row_Recordset3['show_amount']){ ?>
<tr><td>&nbsp;</td>

Loading…
Cancel
Save