Tweak various views for purchase batches

This commit is contained in:
Lance Edgar 2016-12-09 14:20:16 -06:00
parent c73ba56505
commit dd08b71458
5 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,8 @@
/******************************
* Styles for purchases
******************************/
div.field-wrapper {
padding: 0;
}

View file

@ -1,6 +1,11 @@
## -*- coding: utf-8 -*- ## -*- coding: utf-8 -*-
<%inherit file="/newbatch/view.mako" /> <%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()"> <%def name="head_tags()">
${parent.head_tags()} ${parent.head_tags()}
<script type="text/javascript"> <script type="text/javascript">

View 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()}

View file

@ -400,12 +400,14 @@ class PurchaseBatchView(BatchMasterView):
fs.item_lookup, fs.item_lookup,
fs.upc, fs.upc,
fs.product, fs.product,
fs.case_quantity,
fs.cases_ordered, fs.cases_ordered,
fs.units_ordered, fs.units_ordered,
fs.cases_received, fs.cases_received,
fs.units_received, fs.units_received,
fs.po_total, fs.po_total,
fs.invoice_total, fs.invoice_total,
fs.status_code,
]) ])
if self.creating: if self.creating:

View file

@ -118,6 +118,7 @@ class PurchaseView(MasterView):
g.date_ordered.set(label="Ordered") g.date_ordered.set(label="Ordered")
g.date_received.set(label="Received") g.date_received.set(label="Received")
g.invoice_number.set(label="Invoice No.")
g.status.set(renderer=forms.renderers.EnumFieldRenderer(self.enum.PURCHASE_STATUS)) g.status.set(renderer=forms.renderers.EnumFieldRenderer(self.enum.PURCHASE_STATUS))
def configure_grid(self, g): def configure_grid(self, g):
@ -129,6 +130,7 @@ class PurchaseView(MasterView):
g.buyer, g.buyer,
g.date_ordered, g.date_ordered,
g.date_received, g.date_received,
g.invoice_number,
g.status, g.status,
], ],
readonly=True) readonly=True)