fix sort posMasterNo
This commit is contained in:
parent
6642f395f0
commit
019bdfcd1d
1 changed files with 4 additions and 1 deletions
|
|
@ -1497,7 +1497,10 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild4Id = org.id;
|
||||
posMaster.orgRevisionId = org.orgRevisionId;
|
||||
}
|
||||
}
|
||||
}
|
||||
const allPosMasterNo = posMasters.map(posMaster => posMaster.posMasterNo);
|
||||
const maxPosMasterNo = Math.max(...allPosMasterNo);
|
||||
posMaster.posMasterNo = maxPosMasterNo + 1;
|
||||
posMaster.createdUserId = request.user.sub;
|
||||
posMaster.createdFullName = request.user.name;
|
||||
posMaster.lastUpdateUserId = request.user.sub;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue