Skip to content

Commit

Permalink
fix(acquisition): extract pid on return order
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Feb 15, 2024
1 parent 9c442e2 commit 4d0fe08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { Observable, Subscription } from 'rxjs';
import { map } from 'rxjs/operators';
import { AcqOrderHistoryVersion, AcqOrderHistoryVersionResponseInterface, AcqOrderStatus, IAcqOrder } from '../../../classes/order';
import { OrderEmailFormComponent } from '../order-email-form/order-email-form.component';
import { extractIdOnRef } from '@rero/ng-core';

@Component({
selector: 'admin-acquisition-order-detail-view',
Expand Down Expand Up @@ -142,6 +143,9 @@ export class OrderDetailViewComponent implements DetailRecord, OnInit, OnDestroy
modalRef.content.closeDialog.subscribe((close: boolean) => modalRef.hide());
modalRef.content.recordChange.subscribe((order: IAcqOrder) => {
if (this.order.pid === order.pid) {
if (order.vendor.$ref) {
order.vendor.pid = extractIdOnRef(order.vendor.$ref);
}
this.order = order;
}
});
Expand Down
4 changes: 2 additions & 2 deletions projects/shared/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
},
"angularCompilerOptions": {
"compilationMode": "partial"
"compilationMode": "full"
}
}

0 comments on commit 4d0fe08

Please sign in to comment.