mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 18:48:11 +00:00
mile
This commit is contained in:
@@ -57,10 +57,10 @@ export class LastMileService {
|
||||
'last_mile',
|
||||
records.map((r) => r.id),
|
||||
);
|
||||
const byId = new Map<string, { number: string; status: string }>();
|
||||
const byId = new Map<string, { id: string; number: string; status: string }>();
|
||||
for (const inv of invoices) {
|
||||
if (!byId.has(inv.sourceId)) {
|
||||
byId.set(inv.sourceId, { number: inv.invoiceNumber, status: String(inv.status) });
|
||||
byId.set(inv.sourceId, { id: inv.id, number: inv.invoiceNumber, status: String(inv.status) });
|
||||
}
|
||||
}
|
||||
for (const r of records) {
|
||||
|
||||
Reference in New Issue
Block a user