From c61e8b4b5ef7067d660e8caab0a6d39847fa5646 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 6 Apr 2015 17:33:26 -0400 Subject: [PATCH] LP#1380803 Update PO summary amounts Refresh the PO summary amounts (spent, encumbered, estimated) each time an amount-changing event occurs. These include changing the lineitem price, adding/removing a direct charge, and adding/removing copies via the copy grid. Note that adding/removing copies via the batch-updater alread causes a page refresh, which updates the summary amounts. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/acq/po/view_po.js | 3 --- 1 file changed, 3 deletions(-) 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 96aff6abfd..53989cc2da 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 @@ -341,9 +341,6 @@ function renderPo() { setSummaryAmounts(); dojo.byId("acq-po-view-total-li").innerHTML = PO.lineitem_count(); - dojo.byId("acq-po-view-total-enc").innerHTML = PO.amount_encumbered().toFixed(2); - dojo.byId("acq-po-view-total-spent").innerHTML = PO.amount_spent().toFixed(2); - dojo.byId("acq-po-view-total-estimated").innerHTML = PO.amount_estimated().toFixed(2); dojo.byId("acq-po-view-state").innerHTML = po_state; // TODO i18n if(PO.order_date()) { -- 2.11.0