1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-23 01:03:23 -05:00

Corrected the focus on transction_id, also

1).  In mysql, description is not text
2).  .. added history as blob, drupalish
This commit is contained in:
Jonathan Rosenbaum 2015-02-06 06:24:18 +00:00
parent ebc4bdd989
commit ba0b491344
3 changed files with 13 additions and 3 deletions

View File

@ -22,7 +22,11 @@ input[value=Delete], input[name=date_fill] {
cursor: pointer; 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; color: green;
} }

View File

@ -176,6 +176,9 @@ INSERT INTO transaction_types
-- - added check_number (Check#) -- - added check_number (Check#)
-- - added change_fund to keep track of changes in the fund -- - added change_fund to keep track of changes in the fund
-- - added anonymous to store whether set or not for a transaction -- - 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, -- transaction_id, date_startstorage, date,transaction_type, amount,
-- description, sold_to, sold_by, quantity, shop_id, paid -- 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 check_number int(10) unsigned DEFAULT NULL;
ALTER TABLE transaction_log ADD change_fund float 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 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;

View File

@ -617,9 +617,10 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
<tr bordercolor="#CCCCCC" bgcolor="#CCCC33"> <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); ?> <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> <input type="submit" name="Submit43" value="Create Transaction" /><span id="current_shop"></span>
</p> </td> </p>
</td>
</tr> </tr>
<input type="hidden" name="MM_insert" value="FormNew"> <input type="hidden" name="MM_insert" value="FormNew" />
</form> </form>
<?php } // if ?> <?php } // if ?>
<tr bordercolor="#CCCCCC" bgcolor="#99CC33"> <tr bordercolor="#CCCCCC" bgcolor="#99CC33">