Lance Edgar
e8bbb79a91
Update changelog.
2015-03-11 21:24:41 -05:00
Lance Edgar
4d7e56fa40
Hopefully fix install_pip
Fabric function.
2015-03-11 21:14:19 -05:00
Lance Edgar
85640f587d
Add Product.last_sold
column.
2015-03-10 17:50:33 -05:00
Lance Edgar
f8475fbf7d
Add duplicate UPC warning in ProductCost
importer.
...
Instead of trying to reset the cost's product association, just warn about
it, since it really needs human attention anyway.
2015-03-10 12:41:54 -05:00
Lance Edgar
3f959bb416
Add get_subdepartment()
API function.
2015-03-10 12:41:16 -05:00
Lance Edgar
77a7bfba9b
Add order_by
kwarg to db.cache.cache_model()
function.
...
The idea here is that in the event a duplicate key(s) exists for the model
being cached, sorting the records should ensure the "last one wins". This
doesn't accomplish much, but at least the same record should be cached
during subsequent runs, which may help.
This was added to help track down duplicate product UPCs when they were
detected, but I wound up not actually using it in the end. It's here for
next time...
2015-03-10 12:37:37 -05:00
Lance Edgar
b2b23ab02a
Fix bug in KeHE catalog parser.
2015-03-06 19:34:45 -06:00
Lance Edgar
64051accd3
Add vegi-softgels unit of measure.
2015-03-03 17:46:17 -06:00
Lance Edgar
509f80da75
Increase report code name length.
2015-03-02 19:33:13 -06:00
Lance Edgar
16a6c7c3c0
Add GPC.pretty()
method.
2015-02-27 18:49:50 -06:00
Lance Edgar
a5286da26f
Add import support for Product.weighed
.
2015-02-27 18:48:50 -06:00
Lance Edgar
14c5409d95
Add some more units of measure.
2015-02-27 18:48:29 -06:00
Lance Edgar
6b34a9be9f
Revert to simple names and descriptions for model unicode()
.
2015-02-27 17:01:16 -06:00
Lance Edgar
a0278b92cf
Tweak report code importer.
2015-02-27 17:00:10 -06:00
Lance Edgar
ba7d85db9f
Improve product and vendor schema some more.
...
* Make `Product.unit_of_measure` required, and adds more values for it.
* Add `unit_size`, `weighed`, `discountable`, `special_order` fields to `Product`.
* Add `lead_time_days` and `order_interval_days` fields to `Vendor`.
* Add (unused thus far) `TaxImporter`.
2015-02-27 01:49:43 -06:00
Lance Edgar
d383ec5f5f
Add deposit links, taxes, product organic flag.
...
These were needed for an Instacart integration.
2015-02-26 19:04:36 -06:00
Lance Edgar
618162cff8
Update changelog.
2015-02-26 17:56:14 -06:00
Lance Edgar
f2cb5995b5
Fix more string formatting for Python 2.6.
2015-02-25 17:08:55 -06:00
Lance Edgar
bf0ec79df0
Fix string formatting for Python 2.6.
2015-02-25 17:07:24 -06:00
Lance Edgar
c09c1a9ad8
Make sure unzip
is installed when fabricating POD stuff.
2015-02-25 17:03:49 -06:00
Lance Edgar
7199d198eb
Add validate_po_number()
method to vendor invoice handler.
...
This is used by Tailbone UI.
2015-02-24 22:47:45 -06:00
Lance Edgar
c7a3a9ee8c
Make add_row()
method of vendor invoice return the row.
2015-02-24 21:43:18 -06:00
Lance Edgar
8f5234d948
Cache session when refreshing vendor invoice batch, for convenience.
2015-02-24 21:42:37 -06:00
Lance Edgar
f798df935f
Fix cost check when cognizing vendor invoice rows.
2015-02-24 20:38:08 -06:00
Lance Edgar
9c9672062f
Add vendor invoice row status for "product found but not cost".
2015-02-24 19:53:34 -06:00
Lance Edgar
6f1d49f5eb
Make vendor catalog handler inherit from FileBatchHandler
.
2015-02-24 19:35:54 -06:00
Lance Edgar
8a1e74ea76
Make vendor invoice ordered/shipped quantities decimal instead of int.
2015-02-23 20:09:04 -06:00
Lance Edgar
67e0ed9e78
Add repr()
for batch models.
2015-02-23 20:08:36 -06:00
Lance Edgar
191ab9cbc9
Pre-cache product codes when refreshing vendor invoice batch, etc.
...
Also refactor out the product lookup during refresh, so custom handlers can
override.
2015-02-23 19:12:01 -06:00
Lance Edgar
1289a42e4b
Replace some print statements with logging calls.
2015-02-23 16:02:47 -06:00
Lance Edgar
4ac4193200
Add docs for vendor invoice batches.
2015-02-21 23:38:35 -06:00
Lance Edgar
57751c2256
Add FileBatchHandler
class.
2015-02-21 23:37:58 -06:00
Lance Edgar
49097a7ea2
Add BatchHandler.make_batch()
method.
2015-02-21 23:31:30 -06:00
Lance Edgar
42a5b8ba85
Add vendor invoice parser for Albert's Organics.
...
Also tweak parsers for KeHE and UNFI, for consistency.
2015-02-16 18:58:12 -06:00
Lance Edgar
e8159e80e9
Add UNFI invoice parser.
2015-02-16 18:40:36 -06:00
Lance Edgar
ab183c4008
Add status_text
field to batch row tables.
2015-02-16 17:49:37 -06:00
Lance Edgar
34185d43db
Add initial vendor invoice import feature.
2015-02-16 17:49:06 -06:00
Lance Edgar
6b4cd88728
Add initial RattailConfig
class.
...
This is because I needed a `setdefault()` method, or at least thought I
did. But might as well get this party started...
2015-02-13 21:18:56 -06:00
Lance Edgar
d6a30f754c
Add docs for new batch system.
...
And probably some other small tweak(s).
2015-02-13 01:10:26 -06:00
Lance Edgar
dc486451fd
Add relative_path()
and filesize()
functions to file batch mixin.
2015-02-12 23:15:55 -06:00
Lance Edgar
c05d50b354
Wrap up initial vendor catalog batch support.
...
This adds some more contrib catalog parsers, and (hopefully) improves some
of the core cognizing logic. Also refactored some progress factory args.
2015-02-12 21:21:06 -06:00
Lance Edgar
20c286435f
Update changelog.
2015-02-12 11:36:03 -06:00
Lance Edgar
47b81d0b87
Add encoding_errors
kwarg to UnicodeWriter
class constructor.
...
This is passed to the underlying encoder.
2015-02-12 11:33:59 -06:00
Lance Edgar
f08506765d
Add Product.case_pack
column.
2015-02-11 20:25:18 -06:00
Lance Edgar
80f1605f02
Increase size of ProductCost.code
column.
2015-02-11 20:24:46 -06:00
Lance Edgar
b29307550f
Try again to make database stuff an optional dependency...
...
This really does need to happen, hopefully we can get it right soon.
2015-02-11 17:05:33 -06:00
Lance Edgar
cd2704bfd4
Make Employee.person
column unique.
...
It may make more sense to collapse that with the primary key, but this
should do for now at least.
2015-02-11 02:50:05 -06:00
Lance Edgar
5a4f045408
Update changelog.
2015-02-11 00:51:23 -06:00
Lance Edgar
362c503fff
Add Product.deleted
column.
2015-02-11 00:50:03 -06:00
Lance Edgar
e7e910e1ef
Fix Alembic env.py
script to accommodate Continuum.
2015-02-11 00:49:41 -06:00