Commit graph

2610 commits

Author SHA1 Message Date
Lance Edgar
ee4a29bca0 Update changelog 2021-02-18 11:49:55 -06:00
Lance Edgar
dd10594b9a Add proper "default" model for Trainwreck
custom app can still define a custom model but now they don't have to.  alembic
versions are managed for default model.  this also adds default model support
for basic trainwreck importers
2021-02-17 20:16:28 -06:00
Lance Edgar
d0799432f1 Misc. tweaks for vendor catalog batch
- add vendor_id, vendor_name to allow for non-native vendor association
- make common logic for calculating cost diff, status per row
2021-02-15 12:53:37 -06:00
Lance Edgar
b650766992 More improvements to "delete products" batch
to handle some common logic
2021-02-13 12:29:08 -06:00
Lance Edgar
6a5355b430 Describe execution for generic handheld batch 2021-02-12 16:26:34 -06:00
Lance Edgar
64ce890850 Describe execution for generic product batch 2021-02-12 15:57:07 -06:00
Lance Edgar
61e29b8076 Update changelog 2021-02-10 17:48:50 -06:00
Lance Edgar
bc6e3344c1 Relax validation of phone numbers a bit
that old formencode logic is just not what we want apparently.  it was crying
foul for a string like '(xxx) yyy-zzzz' ..sheesh
2021-02-10 17:45:22 -06:00
Lance Edgar
e47bd96e2b Update changelog 2021-02-10 11:52:26 -06:00
Lance Edgar
da72619843 Fix some log messages
had mixed formatting styles in one of those...
2021-02-09 14:19:17 -06:00
Lance Edgar
8ccff33803 Always use versioning workarounds for vendor catalog batches
also stop setting "legacy" update status for rows
2021-02-09 13:45:19 -06:00
Lance Edgar
48dd7445c9 Fix execution description for purchase batches
we are rendering these as markdown, so whitespace matters
2021-02-09 13:36:15 -06:00
Lance Edgar
b01a99bf7a Add XLSX-flavored ExcelReader class
how on earth have we got by without that until now?
2021-02-09 13:35:36 -06:00
Lance Edgar
8117f54790 Rename tables for purchase batches
`purchase_batch` => `batch_purchase`

also fixes FK constraint name for e.g. `purchase_fk_buyer`
2021-02-05 19:55:12 -06:00
Lance Edgar
73a583dda9 Update changelog 2021-02-04 11:00:34 -06:00
Lance Edgar
6dd46ed308 Add BatchHandler.is_mutable()
should have added this a long time ago probably..
2021-02-02 18:57:29 -06:00
Lance Edgar
a1d895a74c Rename tables for customer order batches
`custorder_batch` => `batch_custorder`
2021-02-02 15:55:16 -06:00
Lance Edgar
88b7c987fb Rename tables for label batches
`label_batch` => `batch_labels`
2021-02-02 15:55:14 -06:00
Lance Edgar
8baedcbd43 Rename tables, models for vendor invoice batches
`vendor_invoice` => `batch_vendorinvoice`
2021-02-02 15:55:10 -06:00
Lance Edgar
8ff8843040 Rename tables, models for vendor catalog batches
`vendor_catalog` => `batch_vendorcatalog`
2021-02-02 15:55:07 -06:00
Lance Edgar
01907564b5 Add make_temp_dir() and make_temp_path() for app handlers 2021-02-01 17:15:03 -06:00
Lance Edgar
3d63e01709 Update changelog 2021-02-01 13:57:16 -06:00
Lance Edgar
26928bc0d1 Add ProductsHandler.get_image_url() etc.
plus misc. tweaks for sake of new "scanning" feature for ordering batches
2021-01-31 20:32:14 -06:00
Lance Edgar
ff576a3e8e Improve receiving batch workflows a bit
- allow receiving from invoice file
- populate logic branches according to workflow
- add proper support for populating from PO
2021-01-31 12:08:42 -06:00
Lance Edgar
365399cde6 Let PurchaseBatchHandler define which receiving workflows are supported
the UI still must be responsible for some knowledge of all this, but it helps
to put what we can in the handler...
2021-01-30 19:47:38 -06:00
Lance Edgar
0c5924f5b6 Make handler responsible for possible receiving modes
and make that just look at config by default
2021-01-30 16:55:54 -06:00
Lance Edgar
931a82490b Purge things for legacy (jquery) mobile apps 2021-01-30 15:52:16 -06:00
Lance Edgar
55b9760e9d Misc. reporting tweaks; add "Customer Mailing" sample report 2021-01-30 13:14:50 -06:00
Lance Edgar
6f9a616dec Add render_currency() and render_datetime() for app handler 2021-01-30 13:14:32 -06:00
Lance Edgar
551c30e987 Add BatchHandler.describe_execution() method
give the user more confidence in what's about to happen
2021-01-30 13:08:15 -06:00
Lance Edgar
5809a65a64 Fix PurchaseItem.po_total when creating from ordering batch 2021-01-30 13:06:29 -06:00
Lance Edgar
ac25b435fc Add Purchase.id column to schema
auto-populated from the batch ID sequence
2021-01-30 13:05:30 -06:00
Lance Edgar
0588ee133f Update changelog 2021-01-28 14:55:33 -06:00
Lance Edgar
8949aacd0b Add basic PeopleHandler, for consistently updating names
just to get this logic in one common place, instead of e.g. in web views
2021-01-28 14:30:27 -06:00
Lance Edgar
a707f02fd0 Update changelog 2021-01-27 17:04:24 -06:00
Lance Edgar
c7f33898d4 Let win32 share the 'auth' extra
since it's just passlib now, and that seems to work fine
2021-01-27 16:48:31 -06:00
Lance Edgar
f48a248ee0 Update changelog 2021-01-27 14:15:17 -06:00
Lance Edgar
dfd4fd3b91 Add simple rattail checkdb command
almost certainly needs improvement, but i need it released for sake of testing
Theo dev bootstrap
2021-01-27 14:14:06 -06:00
Lance Edgar
ee2055e1bd Avoid data type bug for customer order batch row refresh 2021-01-27 08:49:50 -06:00
Lance Edgar
d6f004376d Initial support for adding items to, executing customer order batch 2021-01-26 20:09:43 -06:00
Lance Edgar
137b52ee37 Update changelog 2021-01-25 11:39:03 -06:00
Lance Edgar
7c8746fc8b Fix some discrepancies in primary vs. version table schema 2021-01-23 19:26:40 -06:00
Lance Edgar
780c179ee4 Add webapi.conf file for use with rattail make-config 2021-01-23 14:10:17 -06:00
Lance Edgar
a7f150e3b5 Fix syntax bug in docstring 2021-01-21 19:26:49 -06:00
Lance Edgar
98a70f8825 Fix typo 2021-01-21 17:52:55 -06:00
Lance Edgar
27af5e8937 Add "Units of Measure" table, and mapping logic in products handler 2021-01-21 17:36:45 -06:00
Lance Edgar
9ebc910636 Add generic FromRattailConsumer base class for datasync 2021-01-20 20:28:30 -06:00
Lance Edgar
011f256008 Set self.model when constructing a DataSyncConsumer 2021-01-20 20:27:36 -06:00
Lance Edgar
24745516bb Don't use list for Product.shopfoo_product type relationships
surely a list would never make sense here?
2021-01-20 20:26:48 -06:00
Lance Edgar
8d355fb89c Avoid meaningless flushes within importer main loop
previously, if there were 0 created/updated, it would flush.  now it will only
flush if created or updated are nonempty
2021-01-20 20:25:45 -06:00