From 337398def679f841d7ec0af6fb56ab2b9bf674e6 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 22 Jun 2010 17:58:31 +0000 Subject: [PATCH] Acq: make the PO summary pane less monstrously vertical; add PO history link git-svn-id: svn://svn.open-ils.org/ILS/trunk@16779 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/css/skin/default/acq.css | 2 + Open-ILS/web/js/ui/default/acq/po/view_po.js | 19 +++-- Open-ILS/web/templates/default/acq/po/view.tt2 | 101 +++++++++++++++---------- 3 files changed, 78 insertions(+), 44 deletions(-) diff --git a/Open-ILS/web/css/skin/default/acq.css b/Open-ILS/web/css/skin/default/acq.css index b8c5fe660..72d1c578a 100644 --- a/Open-ILS/web/css/skin/default/acq.css +++ b/Open-ILS/web/css/skin/default/acq.css @@ -245,3 +245,5 @@ span[name="bib_origin"] img { vertical-align: middle; } #acq-po-item-table-controls { margin-top: 8px; } #acq-litpager-controls[disabled="true"] { color: #ccc; } + +.acq-po-info th { text-align: right; } diff --git a/Open-ILS/web/js/ui/default/acq/po/view_po.js b/Open-ILS/web/js/ui/default/acq/po/view_po.js index 4e4d769e5..a9dd76592 100644 --- a/Open-ILS/web/js/ui/default/acq/po/view_po.js +++ b/Open-ILS/web/js/ui/default/acq/po/view_po.js @@ -85,7 +85,8 @@ function AcqPoNoteTable() { }; this.updatePoNotesCount = function() { - dojo.byId("acq-po-view-notes").innerHTML = PO.notes().length; + dojo.byId("acq-po-view-notes").innerHTML = + "(" + PO.notes().length + ")"; }; this.updatePoNotes = function(newNote) { @@ -297,7 +298,7 @@ function prepareInvoiceFeatures() { if (!invoiceLinkDialogManager) invoiceLinkDialogManager = new InvoiceLinkDialogManager("po", PO); - openils.Util.show("acq-po-view-invoices", "table-row"); + openils.Util.show("acq-po-invoice-stuff", "table-cell"); } function renderPo() { @@ -319,13 +320,15 @@ function renderPo() { dojo.byId("acq-po-view-cancel-reason"), dojo.byId("acq-po-cancel-label") ); - dojo.byId("acq-po-view-notes").innerHTML = PO.notes().length; + // dojo.byId("acq-po-view-notes").innerHTML = PO.notes().length; + poNoteTable.updatePoNotesCount(); - if(PO.state() == "pending") { - openils.Util.show("acq-po-activate", "table-row"); + if (PO.state() == "pending") { checkCouldActivatePo(); if (PO.lineitem_count() > 1) openils.Util.show("acq-po-split"); + } else { + dojo.byId("acq-po-activate-checking").innerHTML = localeStrings.NO; } // XXX we probably don't *always* need to do this... @@ -335,6 +338,12 @@ function renderPo() { ); poItemTable.show(); + dojo.attr( + "acq-po-view-history", "href", + oilsBasePath + "/acq/po/history/" + PO.id() + ); + openils.Util.show("acq-po-view-history", "inline"); + prepareInvoiceFeatures(); } diff --git a/Open-ILS/web/templates/default/acq/po/view.tt2 b/Open-ILS/web/templates/default/acq/po/view.tt2 index f9fbb832d..6ff5b21ae 100644 --- a/Open-ILS/web/templates/default/acq/po/view.tt2 +++ b/Open-ILS/web/templates/default/acq/po/view.tt2 @@ -5,64 +5,55 @@
-
- Purchase Order -
- - - - - - - - - - + Purchase Order +
ID
Name
Provider
Total Lineitems
Total Estimated$
Total Encumbered$
Total Spent$
Status
Prepayment Required?
- + + + + + + + + - + + + - + + + - - + + + + - - - - + + + + + + + + + + + + + + +
IDPrepayment Required?
NameActivatable? - - + +
NotesProviderNotes
EDI MessagesTotal LineitemsEDI Messages
Total Estimated$History - - +
Total Encumbered$Invoicing
Total Spent$ + + +
Status + +
-- 2.11.0