fix bug: report time record (rollback code group)

This commit is contained in:
Warunee Tamkoo 2026-01-09 15:53:23 +07:00
parent 0239f22e40
commit f0334c69fc

View file

@ -6174,7 +6174,7 @@ export class OrganizationDotnetController extends Controller {
// group by ancestorDNA แล้วเลือก create_at ล่าสุด
const grouped = new Map<string, PosMasterHistory>();
for (const item of profile) {
const key = `${item.profileId}`;
const key = `${item.ancestorDNA}`;
if (!grouped.has(key)) {
grouped.set(key, item);
} else {