From 592907d7ebbf7b7eb8e9c98de4e5c99799103a13 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 5 Feb 2022 12:33:08 -0500 Subject: [PATCH] LP#1929749: tweak LI worksheet code - ensure that line item details and formulas are correctly fleshed - add CSS for table styling Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts | 8 +++++--- Open-ILS/src/eg2/src/styles.css | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts index 21c2a13ab0..3fabcffdf8 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/worksheet.component.ts @@ -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) diff --git a/Open-ILS/src/eg2/src/styles.css b/Open-ILS/src/eg2/src/styles.css index 04630f8d65..4e623be461 100644 --- a/Open-ILS/src/eg2/src/styles.css +++ b/Open-ILS/src/eg2/src/styles.css @@ -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; -- 2.11.0