Merged PR 1466: #3741 Fix History Order Details correctly Display the buyerNumber as customer...

#3741 Fix History Order Details correctly Display the buyerNumber as customerNumber
This commit is contained in:
Nino Righi
2023-01-12 15:57:56 +00:00
committed by Lorenz Hilpert
parent d5c17b08cc
commit a03c6fe0cb

View File

@@ -66,12 +66,13 @@ export class CustomerOrderItemCardComponent implements OnInit, OnDestroy {
]
.filter((i) => !!i)
.join(', ');
const customerNumber = this.order.buyer?.buyerNumber;
const history = await this._omsService.getHistory(orderItemSubsetId).pipe(takeUntil(this._onDestroy$), take(1)).toPromise();
if (!!history) {
if (history.length > 0) {
const data: HistoryData = {
customerName,
customerNumber: String(orderItemSubsetId),
customerNumber,
history: history,
};