Commit graph

2622 commits

Author SHA1 Message Date
Lance Edgar f56a6138bf Add find_row_for_product() method to inventory batch handler
moved from tailbone
2020-03-29 15:20:15 -05:00
Lance Edgar db031f45de Add get_type2_product_info() method for inventory batch handler
no implementation by default, but interface should include it
2020-03-29 14:30:01 -05:00
Lance Edgar 43251d57c1 Add inventory batch logic for getting available "adjustment reasons" 2020-03-29 13:42:59 -05:00
Lance Edgar 63f1fe044a Add inventory batch logic to determine which count modes are available
moved from tailbone, but improved somewhat
2020-03-29 13:38:11 -05:00
Lance Edgar d2a43f14df Add inventory batch logic to say if products should be aggregated
moved from tailbone
2020-03-29 13:33:29 -05:00
Lance Edgar 534615816f Add flag for handling unknown product in inventory batch
moved from tailbone
2020-03-29 13:08:48 -05:00
Lance Edgar 8e312d7746 Add logic for (dis)allowing case input for inventory batches
moved from tailbone
2020-03-29 13:03:38 -05:00
Lance Edgar 2b37c5b9f1 Add flags to allow variance, zero inventory count modes in batch handler
moving these from tailbone
2020-03-29 12:43:54 -05:00
Lance Edgar ab71d87367 Add get_output_filename() method for ToFile exporters 2020-03-27 18:18:06 -05:00
Lance Edgar 76321e6fa6 Add way for report to provide available "choices" for any param 2020-03-26 15:23:24 -05:00
Lance Edgar a338d497e3 Add Role.notes field to schema 2020-03-23 19:53:37 -05:00
Lance Edgar b01f2b2b51 Small tweaks to CSV exporter logic
for sake of CORE-POS -> CSV
2020-03-23 19:28:12 -05:00
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