Commit Graph
100 Commits
Author SHA1 Message Date
Jonathan Rosenbaum c31551d66a Fixed the payement type label bug, but altering the selector.
1).  This selector turned of edit when clicked, but because of the way it was construed it was hiding the label.  Only became obvious when the validation tests were added.
2015-01-28 08:12:13 +00:00
Jonathan Rosenbaum a2fbb3d5cc Added SHOP_SHOP_ID option.
1). Most collectives require only one shop at a time, but YBDB provides a way to handle 2 concurrent shops in the same location.  The current shop will be shown, and users will have to remember the number of the previous shop to enter into the transaction.  Note: Remote shops function independently via there IP identification.
2015-01-28 07:16:40 +00:00
Jonathan Rosenbaum 2175ab18e4 Removes a bug where Payment Type label became hidden.
1).  Relates an on load selector with hide() that has been preempted
     by the new error validation.  But will watch to make sure new
     bugs haven't been introduced.
2015-01-28 06:44:54 +00:00
Jonathan Rosenbaum b01649d369 Select Type is now static to avoid unnecessary errors.
1).  Makes better sense from a UI perspective.
2015-01-28 04:30:42 +00:00
Jonathan Rosenbaum e8610e6b2f Removes "no description" now that error validation is in effect.
1).  Deposits don't require a description.
2015-01-27 22:42:18 +00:00
Jonathan Rosenbaum 116416af06 Additional check, and namespace changes. 2015-01-27 22:39:17 +00:00
Jonathan Rosenbaum dba651a8e8 Adds checks for amount and payment_type to avoid false errors. 2015-01-27 22:25:20 +00:00
Jonathan Rosenbaum c813ea5eec If Patron isn't logged in but sold_to will validate correctly. 2015-01-27 22:08:02 +00:00
Jonathan Rosenbaum caedba99cc Allows storage transactions error validation to work properly. 2015-01-27 21:53:22 +00:00
Jonathan Rosenbaum b0f940b2b1 Fixed check number error validation bug. 2015-01-27 21:18:31 +00:00
Jonathan Rosenbaum ca4895037c Corrects payment_type error.
1). Logic for storage transactions still needs to be added
2015-01-27 19:28:33 +00:00
Jonathan Rosenbaum 597982369d Fixes a bug when decimal places get too large for nouislider. 2015-01-27 08:26:17 +00:00
Jonathan Rosenbaum cdbfd74ddb Adds error checking for date and quantity. 2015-01-27 07:47:18 +00:00
Jonathan Rosenbaum 4254265850 Adds a large majority of error check for edit transactions.
1). Adds more to css
2). Changes $transaction_id to transaction_id in *js
3). Shortens some selectors
4). Adds additional error spans
5). A few checks need bug fixes (check_number, payment_types)
2015-01-27 07:27:27 +00:00
Jonathan Rosenbaum 60bd4befea Replaces show_soldto_location with 2 new columns.
1). show_soldto_signed_in or show_soldto_not_signed_in
2).  More info can be found in populate.sql
2015-01-26 21:10:41 +00:00
Jonathan Rosenbaum 75bf45ad0e Adds sale date error span. 2015-01-26 19:32:43 +00:00
Jonathan Rosenbaum fd7ad163cf Adds a check for obj.sold_to. 2015-01-26 19:18:46 +00:00
Jonathan Rosenbaum 50c740feb8 Adds a hidden input field to remember non-logged user value in edit trans. 2015-01-26 19:15:36 +00:00
Jonathan Rosenbaum 304c9e2f37 Added not logged-in logic for transaction edit, also:
1). Added error spans for transaction edit
2). Removed some css from transaction.js
3). Added css for errors to transaction.css
2015-01-26 18:52:16 +00:00
Jonathan Rosenbaum 934bc4438c Gives #1 trans and id of 0. 2015-01-26 02:43:47 +00:00
Jonathan Rosenbaum deaa8ea02f Adds new logic to handle 1-only real depost.
1).  If 1 real deposit exists, and next real deposit hasn't been
     deposited.
2015-01-26 02:09:04 +00:00
Jonathan Rosenbaum 5e11243d41 Provides fake deposits when none or only 1 exists. 2015-01-25 23:53:08 +00:00
Jonathan Rosenbaum 1979bde7eb Prevents both slider handles from having the same value. 2015-01-25 06:03:02 +00:00
Jonathan Rosenbaum cdf99e4005 Simplifies the code, fixes a bug on upper with jumping to 0. 2015-01-25 04:31:36 +00:00
Jonathan Rosenbaum df66ead71e Puts inputs on same row as transaction slider. 2015-01-25 03:00:15 +00:00
Jonathan Rosenbaum 88cdfc5887 Made transaction slider keyboard friendly. 2015-01-25 02:51:47 +00:00
Jonathan Rosenbaum 063c9fcfe3 Adds all deposits to the range per year, and last deposit from prev year. 2015-01-24 06:43:00 +00:00
Jonathan Rosenbaum 9d4ec10312 Adds range to slider, and links it to year choice. 2015-01-24 03:33:17 +00:00
Jonathan Rosenbaum 2593c6fe9b Improvements to saving search state. 2015-01-23 10:19:22 +00:00
Jonathan Rosenbaum ab87744f46 Removes hardwired options in shop_log, preps for GnuCash CSV. 2015-01-22 04:36:25 +00:00
Jonathan Rosenbaum 04c2574c99 Removed rest of PHP SELFs, mapped account to values in conf. 2015-01-21 21:47:16 +00:00
Jonathan Rosenbaum 69cc2241d2 Moved individual_history back to /, and removed another PHP_SELF from trans. 2015-01-20 06:12:13 +00:00
Jonathan Rosenbaum 2dd7573408 Saves state for trans search; slider improvements. 2015-01-17 10:28:10 +00:00
Jonathan Rosenbaum c034d5d72e Fixes a search bug when date is in the past. 2015-01-16 00:18:58 +00:00
Jonathan Rosenbaum 687bb3ca01 Libraries used by the new visual interface for csv. 2015-01-15 21:31:39 +00:00
Jonathan Rosenbaum e59f090355 Added more of the interface to generate csv files for GnuCash. 2015-01-15 21:29:36 +00:00
Jonathan Rosenbaum 4bb22b2ea1 Updates unbind() to on(). 2015-01-15 09:34:01 +00:00
Jonathan Rosenbaum f8b96a05b7 When no shop, prevents unloaded page transactions from being edited. 2015-01-15 07:33:09 +00:00
Jonathan Rosenbaum fd9fe984d1 More to the attic, PSised welcome page. :) 2015-01-14 07:04:11 +00:00
Jonathan Rosenbaum 0fa5ecc9f8 Moving more unecessary files to the attic. 2015-01-14 06:23:54 +00:00
Jonathan Rosenbaum 8d2b3d40d3 Moves unused devel files from the distant past into the attic. 2015-01-14 06:17:04 +00:00
Jonathan Rosenbaum e444cdb93c Preparing GnuCash CSV interface, and fixed no shop bug with new logic. 2015-01-14 06:10:04 +00:00
Jonathan Rosenbaum d689505318 Spiffed up the search near the footer. 2015-01-13 20:08:03 +00:00
Jonathan Rosenbaum e168381a05 Fixes a bug where storage transactions don't show up in searches if NULL.
1.  Also adds a configuration for a directory to write/download csv files from.
2.  Including directions for the above.
2015-01-13 05:56:03 +00:00
Jonathan Rosenbaum bf2527e1cf Changed some text is populate. 2015-01-12 18:57:52 +00:00
Jonathan Rosenbaum a44e5e93f2 Fixes an issue when Sum has ",", and a spelling mistake. 2015-01-12 06:00:51 +00:00
Jonathan Rosenbaum c1a33b7076 Provides anonymous capability for transactions. 2015-01-12 05:19:09 +00:00
Jonathan Rosenbaum 9f5c338738 Storage transaction id now changes to most recent when transaction complete. 2015-01-11 09:09:36 +00:00
Jonathan Rosenbaum 2a0d9f542f Resets payment_type && amount if storage date is nullified. 2015-01-10 11:06:21 +00:00
Jonathan Rosenbaum a082412e4c When no shop, no Change Fund mouseover editing. 2015-01-10 08:38:03 +00:00
Jonathan Rosenbaum 1929c5d752 Commented out some unnecessary code. 2015-01-10 08:20:23 +00:00
Jonathan Rosenbaum dfa8d2b2ea Moved display:none to php for reload. 2015-01-10 08:18:08 +00:00
Jonathan Rosenbaum b68b4926b4 Added Bike Delivery as shop type. 2015-01-10 08:01:18 +00:00
Jonathan Rosenbaum d16811fe95 Added editable Change Fund.
1. Mouseover allows edit of Change Fund.
2. Difference is shown, and stored in db for page reloads.
2015-01-10 07:54:12 +00:00
Jonathan Rosenbaum 33b4d29417 Provides error correction for no current shop. 2015-01-07 07:59:33 +00:00
Jonathan Rosenbaum b5be74863d Fixes an annoying problem with PHP_SELF, corrected by using "". 2015-01-06 10:16:36 +00:00
Jonathan Rosenbaum 1791320659 Returns an important call inadvertantly removed. 2015-01-06 09:01:51 +00:00
Jonathan Rosenbaum 7658c11d53 Added check number when Check is clicked. 2015-01-06 08:25:57 +00:00
Jonathan Rosenbaum a94d62c78b Improves user input and output for Deposit Calculator. 2015-01-04 08:50:47 +00:00
Jonathan Rosenbaum d40dfca931 Cleans up the code, and allows proper behavior.
1.  async:false because mysql can be slow
2.  improved a regexp causing weird behavior with edit button
2015-01-04 01:35:19 +00:00
Jonathan Rosenbaum 511dc81471 Added some human interaction with Deposit Calculator. 2015-01-03 11:00:33 +00:00
Jonathan Rosenbaum 890b8f1b15 Yeah, working mysql/json logic is in place! 2015-01-03 07:50:48 +00:00
Jonathan Rosenbaum d8b74b7a79 More preps for Deposit Calculator. 2015-01-02 22:44:27 +00:00
Jonathan Rosenbaum f6d392b0b5 Several improvements:
1.  Now uses better function, CurrentShopUser for signed-in users so that people need to be signed in to make purchases.
2.  Improved header text for Contacts.
3.  Removed edit link when paid checked.
4.  Fixed populate.sql
5.  Added payment type column in transaction_log.php
2015-01-02 10:12:37 +00:00
Jonathan Rosenbaum 06188f5dfe Now will properly report current shop for shop 1. 2014-12-31 08:18:37 +00:00
Jonathan Rosenbaum 9ab7723b6a Fixed now. 2014-12-31 07:48:24 +00:00
Jonathan Rosenbaum 3dc17d58dd Fixed sql. 2014-12-31 07:34:10 +00:00
Jonathan Rosenbaum d41f647211 Removed an unnessary parenthesis in sql. 2014-12-31 06:00:20 +00:00
Jonathan Rosenbaum dc7dd4d01f Beginning of transaction calculator framework & enh. 2014-12-31 05:53:49 +00:00
Jonathan Rosenbaum 7ddff6778c More enhancements on deposits before adding business logic. 2014-12-30 16:39:31 +00:00
Jonathan Rosenbaum baebf5612b Improves Deposit presentation.
Also,
1. renumbered tabindex
2. added constant for default number of rows shown for transactions.
2014-12-30 09:32:59 +00:00
Jonathan Rosenbaum 2370ccee7b Many goodies for a better user experience.
1. New NONSHOP constant. 0=no function =>1 is function
2. Moved individual_hours_log back to /
3. Added better view/business logic for storage transactions,
   and new documentation.
4. New users logging in can immediately add a project/comments
5. Added more documentation to populate and a new show_payment field.
2014-12-30 08:34:49 +00:00
Jonathan Rosenbaum f72f022811 Added payment_type. 2014-12-29 07:53:41 +00:00
Jonathan Rosenbaum baf8f61d9e Fixes time behavior for DST, and adds a user-defined constant. 2014-12-29 02:25:50 +00:00
Jonathan Rosenbaum 6f1a9d241e Another UI change, css file, and sql change. 2014-12-29 01:18:02 +00:00
Jonathan Rosenbaum 203708dad2 Improvements to the transaction UI. 2014-12-29 00:14:26 +00:00
Jonathan Rosenbaum d2332719a0 Replaces some hardwired variables with user-defined constants. 2014-12-27 07:59:59 +00:00
Jonathan Rosenbaum 2274b69a8e Replaces some hardwired variables with user-defined constants.
populate.sql will be updated usually via work done at https://github.com/fspc/ybdb
2014-12-27 07:56:53 +00:00
Jonathan Rosenbaum 508ed7c3b9 jQuery - when paid checkbox is checked/unchecked database is updated.
Color changes, too.
2014-12-26 06:26:26 +00:00
Jonathan Rosenbaum 87eb7fba3a Changes Submit to Save for better HID. 2014-12-23 06:15:46 +00:00
Jonathan Rosenbaum 879a30c191 Merge branch 'devel' of https://github.com/fspc/Yellow-Bike-Database into devel
Made a commit before pulling
2014-12-23 05:39:13 +00:00
Jonathan Rosenbaum b385089144 Replaces YBP home with PS home :), and turns relative links absolute. 2014-12-23 04:56:36 +00:00
Jonathan Rosenbaum 43824b5016 Added header back. 2014-12-20 02:50:57 +00:00
Jonathan Rosenbaum ec6cd5d998 Brought back the header and footer. 2014-12-20 02:42:24 +00:00
Jonathan Rosenbaum 36987d3100 It is not necessary to have eclipse templates/plugins in a source dir .. rm. 2014-12-20 02:31:15 +00:00
Jonathan Rosenbaum 796c1f6ebb A few changes before implementing jquery, and move sql to sql dir. 2014-12-20 02:27:44 +00:00
Jonathan Rosenbaum c4abcd651d Adds back some code that got deleted as part of the long line. 2014-12-19 20:39:50 +00:00
Jonathan Rosenbaum f21ed0eba6 Makes files absolute for the constants so links work properly. 2014-12-19 20:20:44 +00:00
Jonathan Rosenbaum 752684c9df Gets individual*logs working again from new dir. 2014-12-19 20:16:52 +00:00
Jonathan Rosenbaum b815ebb714 Moves individual*logs to stats. 2014-12-19 20:12:56 +00:00
Jonathan Rosenbaum 57e0e1ea0f Adds jQuery to the header. 2014-12-19 18:53:11 +00:00
Jonathan Rosenbaum f384dacaf3 Removes annoying long line added by some pyscho editor. 2014-12-19 18:51:31 +00:00
Jonathan Rosenbaum 2c0f8325c1 Adds an uncompressed version of jQuery. 2014-12-19 18:19:27 +00:00
Jonathan Rosenbaum 64b06c541d Puts stat files in their own directory to make things cleaner; deletes *zip 2014-12-19 18:16:54 +00:00
Jonathan Rosenbaum e3cd977baf Removed - not necessary in source code. 2014-12-19 17:46:24 +00:00
Jonathan Rosenbaum e4c295468c These files are not necessary; used for Adobe Dreamweaver. 2014-12-19 17:38:52 +00:00
Jonathan Rosenbaum 5411617f64 Made several changes to transaction_log, removed unnecessary editor line from *select, added planb waiver to contact_add_edit, and changes to database_functions to fit into transaction changes. 2014-12-17 23:03:32 +00:00
Jonathan Rosenbaum e1092d5085 Fixes order for transaction pull-down when it is > 9 2014-12-15 17:25:05 +00:00
Jonathan Rosenbaum 10ac9f8410 Reverting, since this is copied over with Docker image. 2014-12-15 04:39:19 +00:00
Jonathan Rosenbaum 5636f65d33 Interesting changes made remotely with BlueFish in a Container.
The beginning of changing the logic of using location in transactions, to
using people.
2014-12-15 04:18:50 +00:00