Commit Graph
100 Commits
Author SHA1 Message Date
Amritanshu 62c8b64370 Fix: Error in checking disabled clients which made new clients impossible 2014-09-12 12:46:09 +05:30
Tanshu fe811d9887 Fix: On new clients, trying to get Client.by_code(None) would raise an error 2014-09-01 21:59:42 +05:30
Amritanshu 78a064a723 Feature: Client list shows last login time. 2014-08-30 18:08:17 +05:30
Amritanshu f3b4e95072 Feature: Login history logging
Feature: Clear out old/unused clients using Creation Date
Breakage: Change in structure of Clients table and addition of Login History table
2014-08-30 17:46:43 +05:30
Amritanshu 25a82a2027 Fix: Catch DBApi error so that timeout errors don't lock up the software. 2014-08-23 16:52:57 +05:30
Amritanshu da6997afc6 Fix: Unable to change Employee Cost Center
Fix: Do not add 0 amount Journals to Salary Voucher
2014-08-12 13:17:41 +05:30
Amritanshu 09a27e099e Fix: Error in ledger where show results were not updated as the $watch was only for hidden items and did not detect and filter the change in the list.
Fix: Error in ledger where if an entry was selected, if show button was triggered using the return key, it would open that entry instead of loading data
2014-06-12 01:30:21 +05:30
Amritanshu d99fc89e34 Chore: Variable renaming in JavaScript to camelCase
Feature: Keyboard navigation in Accounts, Employees and Product List.
Chore: Removing unused JavasScript variables in function for JSHint
2014-06-09 13:08:36 +05:30
Amritanshu 1989c54e92 Fix: Spelling in ProductYield 2014-06-07 13:37:19 +05:30
Amritanshu 791b41437d Feature: Search on Yield in Product List 2014-06-07 13:35:33 +05:30
Amritanshu 2fa7e33383 Fix: Error in Product Detail Controller 2014-06-07 13:27:10 +05:30
Amritanshu 1d03a590ec Fix: journalDebit comparison was wrong 2014-06-07 12:28:55 +05:30
Amritanshu f667481d71 Chore: Major variable renaming from python style underscores to camel case.
Chore: Replace undefined checks with angular.isUndefined
2014-06-06 16:09:32 +05:30
Amritanshu 358b235d8f Chore: Removed redundant Running Total calculation from Ledger python view as it is not calculated client side. 2014-06-04 19:07:58 +05:30
Amritanshu 248a841695 Feature: Keyboard navigation in ledger with Remove and Undo. 2014-06-04 16:02:33 +05:30
Amritanshu 4e85d97e47 Feature: Images of vouchers can be uploaded with vouchers for verification.
Note: Massive breaking changes in how vouchers are uploaded.  Make sure that the client-side code is not cached.
Also, need to implement Database Integrity to check for orphan images.
2014-06-03 17:12:52 +05:30
Amritanshu 2201a90278 Fix: Do not throw error if not flags are allowed. 2014-05-28 16:47:03 +05:30
Amritanshu e8f4931d29 Fix/Feature: Tokenizer improved to support flags and files missed in last commit updated. 2014-05-28 16:43:52 +05:30
Amritanshu fb8e217c81 Feature: Filtering and sorting in Products and Accounts list pages. 2014-05-28 13:17:06 +05:30
Amritanshu 811ec89c62 Feature: Searching and sorting in product works perfectly. Will work now to refactor it to make it usable. 2014-05-27 19:40:13 +05:30
Amritanshu b1aa130421 Fix: Other instances of Capitalized labels. 2014-05-27 12:18:09 +05:30
Amritanshu eb63166f39 Fix: in the current sqlalchemy non-lowercased labels are not being quoted causing an error. 2014-05-27 12:01:45 +05:30
Amritanshu c419b3ae2e Fix: hopefully the reloading bug on onReturn now fixed 2014-05-24 19:42:44 +05:30
Amritanshu 018391f733 Fix: For some reason, the last commit is not updating the webapp on webfaction. This is to try and fix it.
Chore: Bumped the version to 3.3
2014-05-24 19:15:45 +05:30
Amritanshu 29653b524a Fix: Bug in the onReturn directive which refreshed the page. 2014-05-24 18:51:22 +05:30
Amritanshu 1f8b6f0c63 Fix: Recipe quantity was not having any effect or being updated. 2014-04-30 13:42:31 +05:30
Amritanshu a5ec16b644 Fix: Product Yield needs to be > 0 and <= 1 2014-04-30 13:12:29 +05:30
Amritanshu 0436a5de2c Feature: Product list allows for displaying extended information and search bar shows the legend. 2014-04-30 12:13:21 +05:30
Amritanshu 30442ffecb Fix: Error is recipe quantity
Fix: Update did not change the recipe quantity, units, fraction, fraction_units
2014-04-29 16:54:54 +05:30
Amritanshu 35413166d4 Fix: Units not showing in recipe list
Fix: Recipe update gave error
2014-04-29 16:38:31 +05:30
Amritanshu 1448120941 Removed: Pyramid Debug Toolbar dependency removed.
Recipe: Recipe list and Add / Delete recipe created.
Breaking: Major updates to old databases needed as structure has changed significantly
Product table is not a inherited table similar to ledger table
table prefixes for entities removed
renamed a few tables
removed file types not used from the manifest
README.txt now contains the installation procedure on an Ubuntu 14.04 machine
Product.ShowForPurchase column removed
Product.Discountinued renamed to !Product.IsActive
2014-04-29 15:38:44 +05:30
Amritanshu 246f8465d7 Updates: Twitter Bootstrap updated to v3.1.1
AngularJS updated to v1.2.16
jQuery updated to v2.1.0
angular-loading-bar updated to v0.3.0
Lo-Dash updated to v2.4.1
mousetrap.js updated to v1.4.6
angular-ui bootstrap updated to v0.10.0 (the min file updated to point to the corrected location of the templates and the templates updated to match the latest needed)
chosen updated to v.1.1.0
2014-04-17 00:08:01 +05:30
Amritanshu d2e08d09cc Fix: On update issue, it will update price / discount / tax from the batch (if changed) 2014-04-08 13:13:24 +05:30
Amritanshu 69071182a3 Feature: The app checks if the database schema is not created and creates it automatially on first run.
Fix: While user login try to catch None password error.
Fix: Rename Yeild to the correct spelling Yield.
Fix: Wrong column type for IsReconciled in Voucher.
Fix: Redirect user on login to last page.
Fix: Validate input in save/update of employee and product
2014-03-12 22:49:29 +05:30
Amritanshu f4551c8b5a Fix: Error in purchase return where the check for batch date was wrong.
Fix: Added some common validation for inputs
Feature: created a to_uuid function which will return uuid if the string is correct else None to parse uuid inputs.
Fix: Proper modal template so that the modal is proper width
2014-02-08 14:42:57 +05:30
Amritanshu 89e1443b48 Feature: Charts in the dashboard for Cash Flow and Creditors using nvd3.js and d3.js
It is still a work in progress with not all charts supporting dynamic data.  But working enough to be put in production use.
2013-12-17 15:56:36 +05:30
Amritanshu e5f8a4f86f Feature: Added timeout / loading button for vouchers and a few other forms. 2013-12-17 15:48:22 +05:30
Amritanshu 66aca999e2 Fixed: Attendance update was broken due to wrong comparison. 2013-12-07 11:39:04 +05:30
Amritanshu 835e20bd30 Update: AngularJS 1.2.3, AngularUI 0.7.0, Loading bar 0.1.0 2013-12-03 04:03:06 +05:30
Amritanshu 4a65c58aed Fixed: Error is voucher_post and check_delete_permission due to changing from lock_date to lock_info
Fixed (maybe): Save product updated to gather better information in case of an error during save.

Signed-off-by: Amritanshu <tanshu@gmail.com>
2013-11-26 15:50:50 +05:30
Amritanshu d566493787 Fix: type in get_lock_info view 2013-11-26 13:58:38 +05:30
Amritanshu 8d5d7e6601 Feature: Added lock date from before/after and rolling lock dates. 2013-11-26 13:55:04 +05:30
Amritanshu 7ec55eb0aa Fixed: Update purchase failed when date was changed
Signed-off-by: Amritanshu <tanshu@gmail.com>
2013-11-26 12:55:27 +05:30
Amritanshu 1498e46302 Fix: Added try/catch to product delete as it would bork at times deleting products where narration would exceed the field length 2013-11-20 18:44:11 +05:30
Amritanshu 536bf27403 Feature: Created a tanClick directive which disables button on click while loading
Fix: Could not change the main ledger in payment/receipt edit
Fix: Added try/catch to client delete
2013-11-20 18:24:38 +05:30
Amritanshu d1a4fc1164 Updated: Angularjs to v1.2.0 final.
Updated: Loading-bar to v0.0.5
Updated: Using the $promise of function to return promises instead of $q and callback function.
2013-11-12 00:29:23 +05:30
Amritanshu 4ace61cdee Added: Purchases report 2013-10-30 12:50:32 +05:30
Amritanshu 76c7a7218b Fixed: Create user
Fixed: Delete client
2013-10-30 11:23:48 +05:30
Amritanshu 3fe3a7f7f3 Feature: Product deletion created including advanced delete.
Feature: Product list filtering created.
2013-10-14 23:23:00 +05:30
Amritanshu 2c714dfe98 Fixed: Issues were negative in Stock Movement 2013-10-14 15:16:21 +05:30
Amritanshu 8df9298724 Fixed: Stock Movement report showed purchase instead of issue 2013-10-14 15:11:33 +05:30
Amritanshu cc89a548a5 Feature: Created stock movement report. 2013-10-14 15:03:26 +05:30
Amritanshu bc7b4217cd Rebase: Moved the whole structure down one directory depth. 2013-10-14 09:29:57 +05:30
Tanshu 88b641b4f2 Feature: Debounced the filtering of employees to 350ms to make it smoother. 2013-10-07 13:21:59 +05:30
Tanshu ff3c375295 Fixed: Issue batch update failed because of wrong date check. 2013-10-06 16:14:54 +05:30
Tanshu 8bc0950e23 Fix: Right aligned numbers in issue 2013-10-06 13:24:22 +05:30
Tanshu 178fb90a6e Fixed: Issue grid not showing 2013-10-06 13:22:55 +05:30
Tanshu 8bb1579c1b Fix: Issue form had stopped working
Feature: Employee-list search saves query string on navigation.
2013-10-06 13:09:10 +05:30
Tanshu d3e3584e9b Fix: TryCatch added to Employee.delete view
Feature: Added filtering to employee-list partial
2013-10-06 11:43:23 +05:30
Tanshu db6b7a4881 Feature: Started using lo-dash for many javascript functions
Feature: Payment and receipt last account selected and choose it instead of cash in hand on history back.
Fix: Focus on account typeahead in payment and receipt.
Refactor: Refactored blank_voucher to use additional info only and to output chosen account in purchase / receipt

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-10-05 17:15:36 +05:30
Tanshu 68a41da5bf Fixed: Batch date check was wrong and was causing and error. 2013-10-04 17:05:58 +05:30
Tanshu 5afe7ddd73 Feature: Stock reset built. It resets last batch for the closing stock value. 2013-10-04 16:53:06 +05:30
Tanshu 1def5873bc Fixed: Employees would not autocomplete. 2013-10-03 17:46:01 +05:30
Tanshu 218a1781a8 Feature: Discontinued Ledgers / Products will not show up in Vouchers reducing confusion. 2013-10-03 15:58:16 +05:30
Tanshu 62918bcee5 Feature: Account reconcilliation built.
Fix: Made most of the columns on entities_vouchers NOT NULL.
Fix: Renamed ReconcilliationDate to ReconcileDate NOT NULL
Fix: IsReconciled is the check on reconcilliation.
Feature: Changed output of formatted currency to numbers with formatting in html.
Feature: Html number formatting with indian locale info enables lakhs and crores formatting of currency.
TODO: Started work on reset stock.  Not working yet
TODO: Satrted work on Server-sent Events directive, not working yet
Feature: Created accounting, clr and percent filters
2013-10-03 15:42:43 +05:30
Tanshu f8bdf9d731 Feature: Batch is not allowed to be issued to a previous date. Only exception is if purchase is made in a new date, product issued and then the purchase is moved to an old date. Will fix that in future commit. 2013-10-01 16:52:21 +05:30
Tanshu 414a1717a5 Feature: Account rebasing built. 2013-10-01 16:52:21 +05:30
Tanshu cd3cfa4861 Fix: Fixed errors in purchase / purchase return / issue vouchers due to setting columns non-nullable 2013-10-01 16:52:20 +05:30
Tanshu 64c1820867 Feature: Deletion of active accounts and employees built.
Feature: Many columns made non-nullable to better safeguard data.
Fixed: Employee save/update did not work due to misplaced date check.
2013-10-01 16:52:19 +05:30
Tanshu 9c965727df Fixed: Prouct Ledger is fixed 2013-10-01 16:52:19 +05:30
Tanshu d452e2ada9 Added: Support for fixtures in Ledger, Employee, Product, ProductGroup and CostCenter.
Database updated accordingly.
2013-10-01 16:52:18 +05:30
Tanshu 55741f49c3 Commented out jQuery UI and Mousetrap as they were not needed.
Fixed: Error in purchase-modal where it picked up the product price and not the new price entered.
2013-10-01 16:52:00 +05:30
Tanshu 8f58f42aef class="pull-right" does not work for right-aligning column data.
Removed from balance-sheet.  Will fix later
2013-10-01 16:51:58 +05:30
Tanshu ca8004015d Updated to Angular 1.2-rc.1 (at the moment rc.2 is not working with datepicker and typeahead of angular ui)
Using angular-ui for datepicker and typeahead.  Modified the source to set template folder in the root and not path relative.
Updated to twitter bootstrap 3.0.0
No longer using the offline.appcache method.  Using simple resource cacheing.

Profit & Loss split into Profit & Loss / Balance Sheet
2013-10-01 16:51:41 +05:30
Tanshu 909b468c9d Added a keypress directive.
Updated the Ledger html and controller to work with keyboard shortcut.
Still have to implement Remove entry and restore entry in ledger.

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-10-01 16:51:07 +05:30
Tanshu b3ece30300 Added: Net Transactions report. Need to add roles in the Roles table in db.
Fixed: Single Client page gave 404 when opened directly

Add role query:
insert into auth_roles ("RoleID", "Name") VALUES ('2c40f7cf-67fc-4efa-a670-8d16a2e7884d', 'Net Transactions');
2013-07-11 17:55:51 +05:30
Tanshu d187c1ee2f Added settings table to store user settings.
Added settings page, view, route and controller.
Added lock_date setting to prevent changes to voucher upto and including that date.

The sql for this update is:

CREATE TABLE settings (
	"SettingID" UUID NOT NULL,
	"Name" VARCHAR(255) NOT NULL,
	"Data" BYTEA,
	PRIMARY KEY ("SettingID"),
	UNIQUE ("Name")
);

INSERT INTO auth_roles ("RoleID", "Name") VALUES ('d52de0be-9388-4b0b-a359-7e122ab6e53a', 'Lock Date');

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-07-08 01:33:02 +05:30
Tanshu 30a38f7ed9 Updated Thread / Messaging to show unread / read messages
Showing subscribers in main.html
Messages are considered read when the message is opened by the user.
Fixed error left from before where batch date was not updated on updating purchase voucher.
2013-06-24 13:53:51 +05:30
Tanshu a2587cda60 Fixed critical error in Batch table 2013-06-21 16:27:27 +05:30
Tanshu 5972dd6b75 Updated batch to use a date instead of string as name.
to update this step, also execute the following sql in the database.

update entities_batches set "Name" = '01-Jan-2012' where "Name" = 'Old Products';
alter table entities_batches alter column "Name" type timestamp without time zone using "Name"::date;
2013-06-21 16:20:50 +05:30
Tanshu eae7220651 Error updating thread fixed. 2013-06-21 15:34:44 +05:30
Tanshu 1bd079ae74 Error where new thread could not be created because the check of old was wrong. 2013-06-21 15:12:01 +05:30
Tanshu 89e6f347cd Updating subscribers of threads now works. 2013-06-20 19:02:51 +05:30
Tanshu b9845a2dc1 Allowed superuser to edit posts in threads.
Catch IntegrityError in TryCatchDecorator
Check for duplicate title in threads
2013-06-20 14:28:35 +05:30
Tanshu c6c091bdcb Fixed error where wrong permission was checked while trying to update users. 2013-06-17 12:23:38 +05:30
Tanshu 69d6a76632 Fixed error where when super_user updated a Thread, it would always be maked closed and public 2013-06-08 14:39:07 +05:30
Tanshu 1fc2127835 Manifest added to MANIFEST.in 2013-06-07 19:15:55 +05:30
Tanshu 4629fbcacf Error in thread show_list fixed.
Updated jquery to 2.0.2
2013-06-07 19:13:58 +05:30
Tanshu 0ff8108ebe Allow filtering of Threads based on open / closed / all on home.html 2013-06-07 18:47:15 +05:30
Tanshu 970eea2979 Thread subscribers working.
TODO: Implement thread read status per user.
TODO: Implemented edit post functionality for privileged user.
2013-06-07 15:55:12 +05:30
Tanshu 6bf884da66 Hopefully now the probem displaying thread age should be fixed.
Default arguments of python funtions are evaluated only on definition time.

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-06-07 14:57:56 +05:30
Tanshu d111c7b41c Angular_filter for localTime error fixed when input is undefined. 2013-06-06 23:53:53 +05:30
Tanshu 5ceb4e8f0c Hopefully show proper creation / last edit time in vouchers. 2013-06-06 23:47:04 +05:30
Tanshu 7650fffea0 get_age made more robust plus fixed minutes error.
Made Voucher.creation_date, last_edit_date and Attendance.creation_date tz aware
2013-06-06 23:24:27 +05:30
Tanshu 01298ebadb Fixed password change not allowed for non Privilaged users.
Fixed storing utc dates in message tables.
Created utc class for time-aware dates.
Updated home to show age of Threads and open in new window available.
Modified message detail template to show editable by privileged user.
Added subscribers to thread detail.
Improved markup for message-detail to use less space.
Improved the chosen directive for when there is no create option.
Added method 'Names' to user resource for use in message subscribers.
Payment and Receipt clear typeahead on adding ledgers.


TODO: Implement thread read status per user.
TODO: Implemented edit post functionality for privileged user.
TODO: Implement thread filtering on main page for subscribers

Signed-off-by: Tanshu <tanshu@gmail.com>
2013-06-06 16:56:05 +05:30
Tanshu d5dcd392f7 Error in message-detail.html partial
Public and Closed checkboxes should now be working.
Delete button in message-detail.html was accidentally left, removed.
Removed cacheing from an-autocomplete.
Message list now returns tags list also.
2013-05-30 18:28:41 +05:30
Tanshu 86b5beaa0d Added new styles based and layout
Update home list style to use widgets from the unicorn theme.
Creation Date is now formatted using filter to show local time.
2013-05-30 16:52:51 +05:30
Tanshu 37acebca06 Critical error in routes for api_tag_list fixed. 2013-05-29 13:35:12 +05:30
Tanshu 6225da9ec8 Added the full messaging module.
Added ace.ajax.org editor for messaging.
Added showdown for showing markdown in messaging.
Added chosen for multi-select tags.
2013-05-29 13:28:37 +05:30
Tanshu 762ff27ffc Updated json renderer to pyramid 1.4 format 2013-05-19 17:09:14 +05:30