LP#1942220: (follow-up) tweak PO create form
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 20:04:10 +0000 (15:04 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 20:04:10 +0000 (15:04 -0500)
Display the checkbox for creating assets only if
the PO is being created from one or more line items

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/po/create.component.html

index 90faf97..d484d7b 100644 (file)
@@ -30,7 +30,7 @@
       Prepayment Required
     </label>
   </div>
-  <div class="form-group form-check">
+  <div class="form-group form-check" *ngIf="lineitems.length">
     <input type="checkbox" class="form-check-input" 
       [(ngModel)]="createAssets" id="create-assets">
     <label class="form-check-label" for="create-assets" i18n>