Improve data file handling for file batches.

Leverages a FormAlchemy "extension" of sorts.
This commit is contained in:
Lance Edgar 2015-02-22 00:00:00 -06:00
parent 2e8db05717
commit 3614254804
4 changed files with 103 additions and 41 deletions

View file

@ -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,

View file

@ -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,