LP1904036 Lint
authorBill Erickson <berickxx@gmail.com>
Tue, 16 Mar 2021 14:53:30 +0000 (10:53 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:26 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts
Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts
Open-ILS/src/eg2/src/app/staff/circ/patron/surveys.component.ts
Open-ILS/src/eg2/src/app/staff/share/billing/billing-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/billing/billing.service.ts
Open-ILS/src/eg2/src/app/staff/share/billing/credit-card-dialog.component.ts

index ad6e7d9..a87bc67 100644 (file)
@@ -257,7 +257,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
             return {
                 payment : owedSelected,
                 change : amt - owedSelected
-            }
+            };
         }
 
         return {payment : amt, change : 0};
@@ -411,7 +411,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
         // Reset...
         this.entries.forEach(row => row.paymentPending = 0);
 
-        var amount = this.pendingPayment();
+        let amount = this.pendingPayment();
         let done = false;
 
         this.billGrid.context.rowSelector.selected().forEach(index => {
@@ -473,7 +473,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
 
         payments.forEach(payment => {
             const entry =
-                this.entries.filter(entry => entry.xact.id() === payment[0])[0];
+                this.entries.filter(e => e.xact.id() === payment[0])[0];
 
             context.payments.push({
                 amount: payment[1],
@@ -549,7 +549,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
             return this.pcrud.search('mb', {xact: xactId}, {}, {authoritative: true})
             .pipe(tap(billing => {
                 if (billing.voided() === 'f') {
-                    cents += billing.amount() * 100
+                    cents += billing.amount() * 100;
                     billIds.push(billing.id());
                 }
             }));
index 847b1e6..545f09a 100644 (file)
@@ -9,7 +9,7 @@ import {StoreService} from '@eg/core/store.service';
 import {CircService, CircDisplayInfo} from '@eg/staff/share/circ/circ.service';
 
 export interface BillGridEntry extends CircDisplayInfo {
-    xact: IdlObject // mbt
+    xact: IdlObject; // mbt
     billingLocation?: string;
     paymentPending?: number;
 }
index b34af19..94727dc 100644 (file)
@@ -68,7 +68,7 @@ export class PatronSurveyResponsesComponent implements OnInit, AfterViewInit {
                     const oneSurvey: any = {responses: []};
                     Object.keys(collection[sid]).forEach(qid => {
                         oneSurvey.survey = collection[sid][qid].survey();
-                        oneSurvey.responses.push(collection[sid][qid])
+                        oneSurvey.responses.push(collection[sid][qid]);
                     });
                     this.surveys.push(oneSurvey);
                 });
index 36dac62..a460b00 100644 (file)
@@ -128,7 +128,7 @@ export class AddBillingDialogComponent
         let xactId;
         promise.then(id => {
             xactId = id;
-            return this.createBill(id)
+            return this.createBill(id);
         })
         .then(billId => this.close({xactId: xactId, billId: billId}));
     }
index be12932..52ca1e5 100644 (file)
@@ -11,17 +11,17 @@ import {BibRecordService, BibRecordSummary} from '@eg/share/catalog/bib-record.s
 import {AudioService} from '@eg/share/util/audio.service';
 
 export interface CreditCardPaymentParams {
-    where_process?: 0 | 1,
-    approval_code?: string,
-    expire_month?: number,
-    expire_year?: number,
-    billing_first?: string,
-    billing_last?: string,
-    billing_address?: string,
-    billing_city?: string,
-    billing_state?: string,
-    billing_zip?: string,
-    note?: string
+    where_process?: 0 | 1;
+    approval_code?: string;
+    expire_month?: number;
+    expire_year?: number;
+    billing_first?: string;
+    billing_last?: string;
+    billing_address?: string;
+    billing_city?: string;
+    billing_state?: string;
+    billing_zip?: string;
+    note?: string;
 }
 
 @Injectable()
index 4240fa3..aae5750 100644 (file)
@@ -71,7 +71,7 @@ export class CreditCardDialogComponent
                     this.supportsExternal = true;
                     this.args.where_process = 1;
                 }
-            })
+            });
         });
     }