Browse Source

Corrected the focus on transction_id, also

1).  In mysql, description is not text
2).  .. added history as blob, drupalish
devel
Jonathan Rosenbaum 10 years ago
parent
commit
ba0b491344
  1. 6
      css/transactions.css
  2. 5
      sql/populate.sql
  3. 5
      transaction_log.php

6
css/transactions.css

@ -22,7 +22,11 @@ input[value=Delete], input[name=date_fill] {
cursor: pointer;
}
select[name=transaction_type], form[name=FormEdit] select:focus {
form[name=FormEdit] select:focus {
color: green;
}
select[name=transaction_type]:focus {
color: green;
}

5
sql/populate.sql

@ -176,6 +176,9 @@ INSERT INTO transaction_types
-- - added check_number (Check#)
-- - added change_fund to keep track of changes in the fund
-- - added anonymous to store whether set or not for a transaction
-- - added history to store transaction history
-- - modified description from varchar(200) to text to reflect GnuCash, and possible use of
-- a GUI editor in the future.
-- transaction_id, date_startstorage, date,transaction_type, amount,
-- description, sold_to, sold_by, quantity, shop_id, paid
@ -184,3 +187,5 @@ ALTER TABLE transaction_log ADD payment_type varchar(6) DEFAULT NULL;
ALTER TABLE transaction_log ADD check_number int(10) unsigned DEFAULT NULL;
ALTER TABLE transaction_log ADD change_fund float DEFAULT NULL;
ALTER TABLE transaction_log ADD anonymous tinyint(1) NOT NULL DEFAULT '0';
ALTER TABLE transaction_log ADD history longblob NOT NULL;
ALTER TABLE transaction_log MODIFY description text(2048) DEFAULT NULL;

5
transaction_log.php

@ -617,9 +617,10 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
<tr bordercolor="#CCCCCC" bgcolor="#CCCC33">
<td colspan="9"><p><strong>Start New Transaction:</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;Select Type: <?php list_transaction_types('transaction_type',$default_transaction_type); ?>
<input type="submit" name="Submit43" value="Create Transaction" /><span id="current_shop"></span>
</p> </td>
</p>
</td>
</tr>
<input type="hidden" name="MM_insert" value="FormNew">
<input type="hidden" name="MM_insert" value="FormNew" />
</form>
<?php } // if ?>
<tr bordercolor="#CCCCCC" bgcolor="#99CC33">

Loading…
Cancel
Save