LP#1942220: show invoice links only if order was activated
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 19:40:59 +0000 (14:40 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 19:40:59 +0000 (14:40 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.html

index 23e07b8..bf01a4c 100644 (file)
         <span class="material-icons small mr-1">event_note</span>
         <span>Notes ({{po().notes().length}})</span>
       </a>
+      <ng-container *ngIf="po().order_date()"> <!-- show invoice actions only if order was activated -->
       <span class="pl-2 pr-2" i18n> | </span>
       <a [queryParams]="{f: 'acqpo:id', val1: poId}" class="label-with-material-icon"
         routerLink="/staff/acq/search/invoices">
         <span class="material-icons small mr-1">receipt</span>
         <span i18n>Create Invoice</span>
       </a>
+      </ng-container> <!-- show invoice actions -->
       <span class="pl-2 pr-2" i18n> | </span>
       <a routerLink="./edi" i18n>EDI Messages ({{ediMessageCount}})</a>
       <span class="pl-2 pr-2" i18n> | </span>