Improve data file handling for file batches.
Leverages a FormAlchemy "extension" of sorts.
This commit is contained in:
parent
2e8db05717
commit
3614254804
4 changed files with 103 additions and 41 deletions
3
tailbone/views/vendors/catalogs.py
vendored
3
tailbone/views/vendors/catalogs.py
vendored
|
@ -114,10 +114,9 @@ class VendorCatalogCrud(FileBatchCrud):
|
|||
fs.configure(
|
||||
include=[
|
||||
fs.vendor,
|
||||
fs.data_file.label("Catalog File"),
|
||||
fs.filename.label("Catalog File"),
|
||||
fs.parser_key.label("File Type"),
|
||||
fs.effective,
|
||||
fs.filename,
|
||||
fs.created,
|
||||
fs.created_by,
|
||||
fs.executed,
|
||||
|
|
3
tailbone/views/vendors/invoices.py
vendored
3
tailbone/views/vendors/invoices.py
vendored
|
@ -114,9 +114,8 @@ class VendorInvoiceCrud(FileBatchCrud):
|
|||
fs.configure(
|
||||
include=[
|
||||
fs.vendor.readonly(),
|
||||
fs.data_file.label("Invoice File"),
|
||||
fs.filename.label("Invoice File"),
|
||||
fs.parser_key.label("File Type"),
|
||||
fs.filename,
|
||||
fs.purchase_order_number.label(self.handler.po_number_title),
|
||||
fs.invoice_date.readonly(),
|
||||
fs.created,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue