Commit graph

2610 commits

Author SHA1 Message Date
Lance Edgar 323eb81c1f Add Product.get_default_pack_item() convenience method 2020-03-22 18:31:11 -05:00
Lance Edgar 26a561ff21 Add --borg-tag arg for rattail backup command
idea here is to create a "tagged" backup archive whenever migrating a server
etc., just to have a dedicated snapshot of pre-migration
2020-03-22 13:00:50 -05:00
Lance Edgar 6e16e48893 Copy PO total from purchase object, when making new receiving batch 2020-03-20 14:39:50 -05:00
Lance Edgar 8d75fd7093 Improve logic for making new Receiving batch from PO
i.e. for the "native" use case
2020-03-20 13:34:39 -05:00
Lance Edgar 29d7350722 Fix how we assign Purchase.total when executing an ordering batch 2020-03-19 14:36:09 -05:00
Lance Edgar cedcbcae4c Update changelog 2020-03-18 23:42:18 -05:00
Lance Edgar 2c3f51fadc Add Customer.first_person() convenience method 2020-03-18 13:14:03 -05:00
Lance Edgar b3dda50b65 Add Member.number to schema 2020-03-18 12:28:26 -05:00
Lance Edgar 7a4e445c24 Add version importers for member data 2020-03-18 11:45:43 -05:00
Lance Edgar 0228454337 Declare the Member model to be a "contact" for related magic
also, replace `Person.member` with `Person.members` - and do the same for
Customer model also, since we have no reason to assume only one
2020-03-18 11:25:37 -05:00
Lance Edgar 93702041bb Add ContactMixin for Rattail importers; use with Customer and Person 2020-03-17 18:47:25 -05:00
Lance Edgar 11c6f482e5 Manually assign UUID for new person in some cases, when importing
i.e. when must connect them to a customer
2020-03-16 20:26:59 -05:00
Lance Edgar e3dadcf32b Add "customer fields" for Person importer
to allow a simple "one to one" association for Customer/Person
2020-03-16 19:43:10 -05:00
Lance Edgar 10230aa5fe Stash a reference to handler instance, when creating datasync consumer
at least, i can't see why not to do that...
2020-03-15 14:26:19 -05:00
Lance Edgar 4c0af99baf Fix the Subdepartment importer per real-time datasync use 2020-03-15 14:24:56 -05:00
Lance Edgar 50924da9d6 Add revoke_permission() convenience auth function 2020-03-15 11:38:39 -05:00
Lance Edgar a7e79c9062 Add setting for display of POD images in Tailbone 2020-03-14 16:37:28 -05:00
Lance Edgar e7c34cb9e1 Tweak to fix a test 2020-03-13 16:26:11 -05:00
Lance Edgar dc6ef1f214 Sever the "backref" tie for Person._customers
per latest SQLAlchemy which warns of deprecation, and since i don't believe the
backref was specifically needed in this case

cf. https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-7fb56b0269d9a13d31cc33857913a961
2020-03-13 16:13:41 -05:00
Lance Edgar 1406eec4ca Add some logging when running an upgrade command
need some warning/clue when the upgrade fails during EOD
2020-03-12 12:36:33 -05:00
Lance Edgar d0f4993985 Update changelog 2020-03-11 13:31:16 -05:00
Lance Edgar 11ffde2c49 Add logic for Order Form worksheet, in purchase batch handler
i.e. get this out of Tailbone!
2020-03-06 19:49:38 -06:00
Lance Edgar fad875c3cf Update changelog 2020-03-05 13:02:59 -06:00
Lance Edgar 19359842a9 Fix some math/logic for calculating "pending" amounts in purchase batch
refs #5751
2020-03-05 12:51:26 -06:00
Lance Edgar 7ffa44f0a8 Add default implementation logic for Importer.cache_local_data()
subclass must define `get_local_objects()`
2020-03-04 12:58:36 -06:00
Lance Edgar 57a58f4403 Raise explicit error in data_diffs() to tell which side is missing data 2020-03-04 12:57:33 -06:00
Lance Edgar 2cbbbfdb37 Add refresh_many() method for batch handlers 2020-03-02 18:08:17 -06:00
Lance Edgar 20a14ca39f Update changelog 2020-03-02 11:49:58 -06:00
Lance Edgar aebc82ff20 Grow item_entry field for batches, to accommodate product_uuid 2020-03-01 16:37:40 -06:00
Lance Edgar 30315c53a5 Update changelog 2020-03-01 12:23:21 -06:00
Lance Edgar 180064b9d3 Implement GPC.__lt__() rich comparison
since `__cmp__()` is no longer used in python3.  probably should implement more
of these at some point, but this was the only one i needed so far
2020-02-28 13:17:11 -06:00
Lance Edgar 97f22e62df Add Employee.sorted_history() and improve get_current_history()
to better handle case of missing dates
2020-02-28 13:08:48 -06:00
Lance Edgar 5da66e67de Delete each row in batch, one by one, when deleting batch
to avoid FK constraint issues in some cases
2020-02-28 12:29:00 -06:00
Lance Edgar badc3782cc Stop breaking on bad input, for purchase batch update_row_quantity() 2020-02-26 17:44:36 -06:00
Lance Edgar faaf23d04a Update changelog 2020-02-26 15:03:14 -06:00
Lance Edgar 06b9741346 Add 60-second delay for "datasync wait" logic in Luigi overnight tasks 2020-02-26 15:01:52 -06:00
Lance Edgar a08808c620 Split docs into 2 primary sections, "narrative" and "API" 2020-02-25 14:53:53 -06:00
Lance Edgar 76811ef387 Update the *calculated* PO total when removing row from ordering batch
i.e. instead of the "official" PO total.  plus more docs!
2020-02-24 11:41:45 -06:00
Lance Edgar f1b0342578 Fix PO total calculation when cases_ordered is updated 2020-02-24 11:04:01 -06:00
Lance Edgar cf8b0282a5 Add update_row_quantity(), order_row() methods for purchase batch handler 2020-02-23 20:12:17 -06:00
Lance Edgar a39c095543 Update API docs for "purchase" batch handler 2020-02-23 19:04:31 -06:00
Lance Edgar 421416cadc Add basic glossary to docs 2020-02-23 19:02:20 -06:00
Lance Edgar 7ceeb369c1 Update API docs for batch handlers 2020-02-22 20:25:03 -06:00
Lance Edgar 470ec11d1e Update changelog 2020-02-21 14:29:21 -06:00
Lance Edgar 4ebd4b31d6 Tweak how output of rattail runsql command is handled
to avoid "scientific notation" formatting for UPC
2020-02-20 16:54:05 -06:00
Lance Edgar abf9f95478 Update changelog 2020-02-19 10:48:12 -06:00
Lance Edgar 6adf3b6282 Use progress when writing rows to Excel 2020-02-18 19:45:20 -06:00
Lance Edgar 3e342f798a Fix default --keep args for borg prune command
whoops, those must be strings
2020-02-13 11:42:02 -06:00
Lance Edgar b906c463b2 Let config define --keep args for borg prune command 2020-02-12 17:04:54 -06:00
Lance Edgar 8599ac1a79 Update changelog 2020-02-12 14:47:12 -06:00