LP 1772053: Cleanup Dan's code.
authorJason Stephenson <jason@sigio.com>
Mon, 10 Sep 2018 20:09:26 +0000 (16:09 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 19 Aug 2020 15:29:42 +0000 (11:29 -0400)
Mostly whitespace cleanup, but I did restore a line or two that appear
to have been accidentally deleted.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index 73cde2d..807a26b 100644 (file)
       <tr valign="top">
         <td>Total Billed:</td>
         <td>{{xact.summary.total_owed | currency}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>Total Paid:</td>
         <td>{{xact.summary.total_paid | currency}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td><b>Balance:</b></td>
         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
-      </tr> 
+      </tr>
     </table>
   </div><!-- ng-repeat -->
 <hr/>
index 4923427..ee9fc58 100644 (file)
@@ -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',
index 2ccac23..539fe6c 100644 (file)
@@ -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()
                         }
                     }
                 }
index fb9072b..9510546 100644 (file)
@@ -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);
             };
         });
 
index 15849f6..6bed816 100644 (file)
@@ -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()]);
             }
         );
     }