LP#1929749: tweak LI worksheet code
authorGalen Charlton <gmc@equinoxOLI.org>
Sat, 5 Feb 2022 17:33:08 +0000 (12:33 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sat, 5 Feb 2022 17:33:08 +0000 (12:33 -0500)
- ensure that line item details and formulas are
  correctly fleshed
- add CSS for table styling

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts
Open-ILS/src/eg2/src/styles.css

index 21c2a13..3fabcff 100644 (file)
@@ -57,10 +57,12 @@ export class LineitemWorksheetComponent implements OnInit, AfterViewInit {
                 flesh_cancel_reason: true,
                 flesh_li_details: true,
                 flesh_fund: true,
-                flesh_li_details_copy: true,
-                flesh_li_details_location: true,
+                flesh_copies: true,
+                flesh_location: true,
+                flesh_copy_location: true,
+                flesh_call_number: true,
                 flesh_li_details_receiver: true,
-                distribution_formulas: true
+                flesh_formulas: true
             }
         ).toPromise()
         .then(li => this.lineitem = li)
index 04630f8..4e623be 100644 (file)
@@ -278,6 +278,16 @@ body>.dropdown-menu {z-index: 2100;}
   background-color: rgb(247, 247, 247);
 }
 
+/**
+ * Similar to the CSS above for the search form, set some
+ * CSS for the line item worksheet. Ordinarily would be
+ * preferable to just add the CSS to the worksheet component,
+ * but untl a well-supported alternative to ng-deep comes along...
+ */
+#worksheet-outlet thead th { font-weight: bold; background-color: #ccc; text-align: center; border-bottom: 1px #000 solid; border-right: 1px #000 solid; padding: 0 
+6px; }
+#worksheet-outlet tbody td { text-align: left; vertical-align: top; border: 1px #999 inset; padding: 0 2px; }
+
 /* style for negative monetary values */
 .negative-money-amount {
     color: red;