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

70 Commits

Author SHA1 Message Date
Jonathan Rosenbaum
1f38eb1f9a Closes #13 by removing unncessary logic check.
* Hopefully, no reason for checking for new account.
2017-11-01 08:03:06 +00:00
Jonathan Rosenbaum
bc3c7450fd Handles when contact_id exceeds greatest or least contact_id.
* will go to the closest contact_id, nice behavior.
2017-10-31 07:03:00 +00:00
Jonathan Rosenbaum
68431826f3 Adds reports{js,php} for modern reporting with tabulator!
* and integration
2017-10-29 23:46:41 +00:00
Jonathan Rosenbaum
3c5eea235a This fixes #9 by allowing two behaviors via REDEEM_ONE_TO_ONE:
* based on the SWEAT_EQUITY_LIMIT with discounts applied,
* based on 1 to 1 (1hr of volunteering === 1hr of free stand time) regardless of the SWEAT_EQUITY_LIMIT
2017-10-19 04:27:44 +00:00
Jonathan Rosenbaum
6eba0250d6 Returns banned list. 2017-10-11 06:18:00 +00:00
Jonathan Rosenbaum
2c05f7e768 Properly reflects membership discount in amount on save. 2017-08-08 04:50:43 +00:00
Jonathan Rosenbaum
609078a60d Removes an uncessary function call and callback return that was used to Stand Time which was replaced by accurate code in transactions.js. 2017-08-07 22:41:48 +00:00
Jonathan Rosenbaum
20741bd9d6 Provides membership discount value on callback. 2017-08-07 01:29:53 +00:00
Jonathan Rosenbaum
a084161d03 Free stand time for bike purchases is now working. 2017-08-06 07:00:52 +00:00
Jonathan Rosenbaum
ff0bb290e2 Tests the free stand time callback. 2017-08-06 05:18:53 +00:00
Jonathan Rosenbaum
aeb6b23889 Adds volunteer history update. 2017-08-04 06:24:54 +00:00
Jonathan Rosenbaum
f95f2d2b2c This gets volunteer history select working correctly. 2017-08-03 21:23:13 +00:00
Jonathan Rosenbaum
e6b05b4eab Callback to query Volunteer benefits history. 2017-08-03 21:10:25 +00:00
Jonathan Rosenbaum
d0e88bac58 Turns off/on spinner for membership based on choices in functions. 2017-08-03 00:15:38 +00:00
Jonathan Rosenbaum
76b73352dc Adds VOLUNTEER_DISCOUNT. 2017-08-02 06:18:46 +00:00
Jonathan Rosenbaum
6a89e5d675 Adds a new definition, stand_time_value. 2017-08-01 05:15:20 +00:00
Jonathan Rosenbaum
4feb5022eb Puts all volunteer data into one column called "volunteer".
* Reflects the changes in json, and adds more definition to the json callback.
2017-07-29 20:29:18 +00:00
Jonathan Rosenbaum
e663006698 Some experimentation making sure the spinner is working.
* Need to improve the css
* Need to link everything togther, the fun part!
2017-07-27 18:01:53 +00:00
Jonathan Rosenbaum
7a09ccfead Won't charge stand time if a member. Simplified callback reusing funtion. 2017-07-24 05:02:21 +00:00
Jonathan Rosenbaum
f1daa79213 Fixes a bug, and adds membership_benefits function for easier querying. 2017-07-24 04:45:51 +00:00
Jonathan Rosenbaum
ff0142aa30 Improves logic for multiple logins and real sign out. 2017-07-24 01:26:50 +00:00
Jonathan Rosenbaum
a05575999c Improves the presentation. 2017-07-23 19:57:43 +00:00
Jonathan Rosenbaum
eaefff480c Figures out stand time amount with optional grace period. 2017-07-23 19:06:52 +00:00
Jonathan Rosenbaum
e724e8d9cb The beginnings of Stand Time logic. 2017-07-23 16:57:23 +00:00
Jonathan Rosenbaum
79e246246d Now carries over the current year volunteer hours data. 2017-07-18 05:02:44 +00:00
Jonathan Rosenbaum
e9da500848 This adds SQL logic for current year volunteer hours and visits. 2017-07-18 04:42:34 +00:00
Jonathan Rosenbaum
787fff74d6 Adds initial Volunteer Hour logic and displays in transactions with title. 2017-07-17 20:38:23 +00:00
Jonathan Rosenbaum
fb422fcc3b This returns the latest expiration date for membership.
Future proofing when people have had more than 1 paid membership!
2017-07-17 07:11:21 +00:00
Jonathan Rosenbaum
b9497ac7c3 Show whether a patron is a paid member or not. 2017-07-17 06:02:32 +00:00
Jonathan Rosenbaum
2d3a184e84 Corrects error checking for middle name.
When and existing contact was updated it would produce an error that the
contact already existed, and a new middle name needed to be used, also when
created a contact without adding a first and/or last name the same error was
produced.  This fix corrects that bug.
2016-05-09 04:19:05 +00:00
Jonathan Rosenbaum
e02e1b74d4 Tests to find out if a Patron's name already exists in the database.
If so, this error is produced:  Your name already exists, please choose a different middle initial.
2015-12-02 09:53:58 +00:00
Jonathan Rosenbaum
a671e41ffd This resolves the issue with contacts created on multiple terminals.
0) concurrency issue, one contact_id was edited by 2 or more terminals
1) Better than having a new contact_id created everytime the contact_add_edit page is opened which was the behavior of the original program.
2) Still need to clean-up the code a little, and do a little bit more testing, but appears to be working nicely.
3) Still uses GET for initial setup, a todo to change.
4) Glad the bug was found, and now is fixed.
2015-04-15 06:41:12 +00:00
Jonathan Rosenbaum
109cf3d3c9 Adds checking number to cvs num if one exists. 2015-04-11 05:15:47 +00:00
Jonathan Rosenbaum
e983cc7d0f Added statements for anonymous transactions. 2015-04-11 04:13:22 +00:00
Jonathan Rosenbaum
f23720cf6d Adds coordinators name to the csv description. 2015-04-11 02:35:00 +00:00
Jonathan Rosenbaum
80d85c9dcd Adds patrons name to the csv description. 2015-04-07 05:55:32 +00:00
Jonathan Rosenbaum
6d636aaff6 Removes an uncessary mysql_fetch_assoc line from credit. 2015-04-06 09:10:25 +00:00
Jonathan Rosenbaum
76ad12e4a3 Returns directory and filename for GnuCash csv 2015-04-06 08:39:31 +00:00
Jonathan Rosenbaum
f89c86384a Creates GnuCash csv transaction files!
1) Does not automatically download them the browser yet, but can be found in the designated directory.  Works great with GnuCash!  Victory!
2015-04-06 07:31:42 +00:00
Jonathan Rosenbaum
c5443438f9 initial templating of gnucash csv creation 2015-04-03 06:54:16 +00:00
Jonathan Rosenbaum
45b71aca5c Adds submit button and improves gui.
1) Adds more text explanation .. although NULL transactions are just an experimental idea.
2) beginnings of submit code
2015-04-02 20:15:59 +00:00
Jonathan Rosenbaum
bae4030274 $0 deposits now acceptable for record-keeping reasons
Originally, deposits of $0 (amount > 0) would not be considered real deposits, however, there may be shops where only non-monetary transactions occurred (amount >= 0) which would be useful to record in an accounting program.
One caveat, if a monetary transaction is recorded, but the depositor only enters $0, the deposit will show "Difference: n/a", however this should be a cue since it should be obvious that a real world deposit of $0 would not be made at a bank.
2015-04-02 03:57:10 +00:00
Jonathan Rosenbaum
6aa95e1ad4 Added an example of a working connector.
- mailman specific
- has been tested to work properly for both subscribe, and unsubscribe
- uses node.js
- two stage security
  1) password is specific to connector for recognization
  2) password used by list not kept local
- ssl used for all communication
- yeah!
2015-02-28 09:54:13 +00:00
Jonathan Rosenbaum
39def79d87 Improves the code to connector. 2015-02-28 06:36:36 +00:00
Jonathan Rosenbaum
e51d5a1c89 Provides an interface to an email connector.
Define a url for an email connector that will connect to an email list.
The url can be a server:port, program, etc.
Name (First, Last) email address, and connector password will be sent to the connector.

The purpose of email connectors is to provide autonomy in the choice
of email services and programs.  E.g. mailman, googlegroups
See ./examples for an example connector
2015-02-28 03:08:26 +00:00
Jonathan Rosenbaum
b1a11b9f3b Saves state for waiver & email_list, and more
1).  Adds configuration options to turn off waiver & email_list options
2).  Puts waiver in Connections/waiver.txt
3).  New MySQL waiver column added, receive_newsletter used for email_list.
2015-02-25 09:23:41 +00:00
Jonathan Rosenbaum
7b64d0c494 Spiffs up contact_and_edit, adding error correction and required waiver.
1). Next step will be an opt-in/out to mailman.
2). Originally this program was using google lists, but there are too many steps for users involved.
2015-02-11 01:55:38 +00:00
Jonathan Rosenbaum
8f8e1623df Correct transaction_id for storage transactions in history. 2015-02-08 09:00:06 +00:00
Jonathan Rosenbaum
e47498a00a Transaction history is now stored.
1).  Next step, view history in the transaction when more than 1 transaction.
2015-02-06 09:50:57 +00:00
Jonathan Rosenbaum
be43ea3245 Show start storage original date if it has changed.
1).  Some css improvments.
2).  The beginnings of transaction history.
3).  Trying to find out why the window reloads twice on transactions without errors.
2015-01-29 07:32:02 +00:00