From: Jason Stephenson Date: Mon, 10 Sep 2018 20:09:26 +0000 (-0400) Subject: LP 1772053: Cleanup Dan's code. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=146940f97270a4bc5348c39e8da856f092bb175e;p=evergreen%2Fpines.git LP 1772053: Cleanup Dan's code. Mostly whitespace cleanup, but I did restore a line or two that appear to have been accidentally deleted. Signed-off-by: Jason Stephenson Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 index 73cde2d72d..807a26b5cf 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 @@ -28,15 +28,15 @@ Total Billed: {{xact.summary.total_owed | currency}} - + Total Paid: {{xact.summary.total_paid | currency}} - + Balance: {{xact.summary.balance_owed | currency}} - +
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 49234278cd..ee9fc588bf 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -513,15 +513,15 @@ function($scope , $q , egCore , ngToast) { id : 1, xact_start : new Date().toISOString(), xact_finish : new Date().toISOString(), - call_number : { - label : "spindler", - prefix : "biography", - suffix : "Closed Stacks", - owning_lib : { - name : "Mineola Public Library", - shortname : "Mineola" - } - }, + call_number : { + label : "spindler", + prefix : "biography", + suffix : "Closed Stacks", + owning_lib : { + name : "Mineola Public Library", + shortname : "Mineola" + } + }, summary : { xact_type : 'circulation', last_billing_type : 'Overdue materials', diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js index 2ccac2314a..539fe6cc69 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js @@ -623,19 +623,18 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, xact_start : xact.xact_start(), } if (xact.circulation()) { - newXact.copy_barcode = xact.circulation().target_copy().barcode(), + newXact.copy_barcode = xact.circulation().target_copy().barcode(); newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title(); newXact.call_number = { label : xact.circulation().target_copy().call_number().label(), - prefix : xact.circulation().target_copy().call_number().prefix().label(), - suffix : xact.circulation().target_copy().call_number().suffix().label(), + prefix : xact.circulation().target_copy().call_number().prefix().label(), + suffix : xact.circulation().target_copy().call_number().suffix().label(), owning_lib : { - name : xact.circulation().target_copy().call_number().owning_lib().name(), - shortname : xact.circulation().target_copy().call_number().owning_lib().shortname() + name : xact.circulation().target_copy().call_number().owning_lib().name(), + shortname : xact.circulation().target_copy().call_number().owning_lib().shortname() } } } - xacts.push(newXact); } ); @@ -1157,15 +1156,15 @@ function($scope, $q , egCore , patronSvc , billSvc , egPromptDialog , $location xact_start : xact.xact_start(), } if (xact.circulation()) { - newXact.copy_barcode = xact.circulation().target_copy().barcode(), - newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title() + newXact.copy_barcode = xact.circulation().target_copy().barcode(); + newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title(); newXact.call_number = { label : xact.circulation().target_copy().call_number().label(), - prefix : xact.circulation().target_copy().call_number().prefix().label(), - suffix : xact.circulation().target_copy().call_number().suffix().label(), + prefix : xact.circulation().target_copy().call_number().prefix().label(), + suffix : xact.circulation().target_copy().call_number().suffix().label(), owning_lib : { - name : xact.circulation().target_copy().call_number().owning_lib().name(), - shortname : xact.circulation().target_copy().call_number().owning_lib().shortname() + name : xact.circulation().target_copy().call_number().owning_lib().name(), + shortname : xact.circulation().target_copy().call_number().owning_lib().shortname() } } } diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index fb9072bbbe..95105465bf 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js @@ -315,14 +315,11 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc , print_data.circulations.push({ circ : egCore.idl.toHash(co.circ), copy : egCore.idl.toHash(co.acp), + call_number : egCore.idl.toHash(co.acn), // Wrong? + owning_lib : egCore.idl.toHash(co.aou), // Wrong? title : co.title, author : co.author }); - // Flesh selected fields of this circulation - print_data.circulations[0].copy.call_number = - egCore.idl.toHash(co.acn); - print_data.circulations[0].copy.owning_lib = - egCore.ils.toHash(co.aou); }; }); diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index 15849f6e02..6bed816ee3 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -713,6 +713,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl return egCore.pcrud.retrieveAll('ccs', {}, {atomic : true}).then( function(list) { egCore.env.absorbList(list, 'ccs'); + copy.status(egCore.env.ccs.map[copy.status()]); } ); }