Tweak various views for purchase batches
This commit is contained in:
parent
c73ba56505
commit
dd08b71458
8
tailbone/static/css/purchases.css
Normal file
8
tailbone/static/css/purchases.css
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
/******************************
|
||||
* Styles for purchases
|
||||
******************************/
|
||||
|
||||
div.field-wrapper {
|
||||
padding: 0;
|
||||
}
|
|
@ -1,6 +1,11 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/newbatch/view.mako" />
|
||||
|
||||
<%def name="extra_styles()">
|
||||
${parent.extra_styles()}
|
||||
${h.stylesheet_link(request.static_url('tailbone:static/css/purchases.css'))}
|
||||
</%def>
|
||||
|
||||
<%def name="head_tags()">
|
||||
${parent.head_tags()}
|
||||
<script type="text/javascript">
|
||||
|
|
9
tailbone/templates/purchases/view.mako
Normal file
9
tailbone/templates/purchases/view.mako
Normal file
|
@ -0,0 +1,9 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/master/view.mako" />
|
||||
|
||||
<%def name="extra_styles()">
|
||||
${parent.extra_styles()}
|
||||
${h.stylesheet_link(request.static_url('tailbone:static/css/purchases.css'))}
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
|
@ -400,12 +400,14 @@ class PurchaseBatchView(BatchMasterView):
|
|||
fs.item_lookup,
|
||||
fs.upc,
|
||||
fs.product,
|
||||
fs.case_quantity,
|
||||
fs.cases_ordered,
|
||||
fs.units_ordered,
|
||||
fs.cases_received,
|
||||
fs.units_received,
|
||||
fs.po_total,
|
||||
fs.invoice_total,
|
||||
fs.status_code,
|
||||
])
|
||||
|
||||
if self.creating:
|
||||
|
|
|
@ -118,6 +118,7 @@ class PurchaseView(MasterView):
|
|||
|
||||
g.date_ordered.set(label="Ordered")
|
||||
g.date_received.set(label="Received")
|
||||
g.invoice_number.set(label="Invoice No.")
|
||||
g.status.set(renderer=forms.renderers.EnumFieldRenderer(self.enum.PURCHASE_STATUS))
|
||||
|
||||
def configure_grid(self, g):
|
||||
|
@ -129,6 +130,7 @@ class PurchaseView(MasterView):
|
|||
g.buyer,
|
||||
g.date_ordered,
|
||||
g.date_received,
|
||||
g.invoice_number,
|
||||
g.status,
|
||||
],
|
||||
readonly=True)
|
||||
|
|
Loading…
Reference in a new issue