[asyncSupportsEmptyTermClick]="true"
[required]="true" [readOnly]="!charge.isnew() && !charge.ischanged()"
[idlQuerySort]="{acqf: 'year DESC, code'}"
- [idlQueryAnd]="{active: 't'}">
+ [idlQueryAnd]="{org: owners, active: 't'}">
</eg-combobox>
<span *ngIf="charge.fund_debit() && charge.fund_debit().fund() !== charge.fund()">
<br>
<div class="flex-2 p-2">
<span *ngIf="!charge.isnew() && !charge.ischanged()">{{charge.estimated_cost() | currency}}</span>
<input *ngIf="charge.isnew() || charge.ischanged()" type="number" min="0" class="form-control"
- i18n-placeholder placeholder="Esimated Cost..." [required]="true"
+ i18n-placeholder placeholder="Estimated Cost..." [required]="true"
[ngModel]="charge.estimated_cost()" (ngModelChange)="charge.estimated_cost($event)"/>
<span *ngIf="charge.fund_debit()">
<br>
import {Subscription} from 'rxjs';
import {Router, ActivatedRoute, ParamMap} from '@angular/router';
import {IdlService, IdlObject} from '@eg/core/idl.service';
+import {OrgService} from '@eg/core/org.service';
import {AuthService} from '@eg/core/auth.service';
import {NetService} from '@eg/core/net.service';
import {EventService} from '@eg/core/event.service';
canModify = false;
autoId = -1;
poSubscription: Subscription;
+ owners: number[];
@ViewChild('disencumberChargeDialog') disencumberChargeDialog: DisencumberChargeDialogComponent;
private evt: EventService,
private auth: AuthService,
private pcrud: PcrudService,
+ private org: OrgService,
public poService: PoService
) {}
this.showBody = this.po().po_items().length > 0;
this.canModify = this.po().order_date() ? false : true;
});
+
+ this.owners = this.org.ancestors(this.auth.user().ws_ou(), true);
}
ngOnDestroy() {