</eg-grid-toolbar-action>
<eg-grid-toolbar-action label="View EDI Messages" i18n-label (onClick)="displayEdiMessages($event)" [disableOnRows]="notOneSelectedRow">
</eg-grid-toolbar-action>
+ <eg-grid-column [filterable]="false" [sortable]="false" i18n-label label="Is Default?" path="_is_default" datatype="bool"></eg-grid-column>
</eg-grid>
<ng-container *ngIf="viewEdiMessages">
.then(str => this.toast.danger(str));
},
() => {
- this.providerRecord.refreshCurrent(),
- this.summarize.emit(this.provider.id());
+ this.providerRecord.refreshCurrent().then(
+ () => {
+ this.providerEdiAccountsGrid.reload();
+ this.summarize.emit(this.provider.id());
+ }
+ );
}
);
});
{}
).pipe(map(acqpro => {
const provider = new ProviderRecord(acqpro);
+ acqpro.edi_accounts().forEach(acct => {
+ acct['_is_default'] = false;
+ if (acqpro.edi_default()) {
+ if (acct.id() === acqpro.edi_default().id()) {
+ acct['_is_default'] = true;
+ }
+ }
+ });
this.currentProvider = provider;
this.checkIfCanDelete(provider);
return provider;