This commit is contained in:
parent
21bef607a1
commit
b110575136
1 changed files with 1 additions and 1 deletions
|
|
@ -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.ancestorDNA}`;
|
||||
const key = `${item.shortName}-${item.posMasterNo}`;
|
||||
if (!grouped.has(key)) {
|
||||
grouped.set(key, item);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue