This commit is contained in:
adisak 2026-04-02 14:18:08 +07:00
parent 34e8ec8434
commit da6fd7a396
2 changed files with 12 additions and 9 deletions

View file

@ -1451,7 +1451,8 @@ export class PositionController extends Controller {
}),
);
if (posMaster.orgRevision?.orgRevisionIsCurrent == true) {
// ถ้าไม่ใช่ตำแหน่งนั่งทับ (isSit = false) ถึงจะอัพเดทตำแหน่งในทะเบียนประวัติ
if (posMaster.orgRevision?.orgRevisionIsCurrent == true && !posMaster.isSit) {
const _position = requestBody.positions.find((p) => p.positionIsSelected == true);
if (_position) {
const current_holderId: any = posMaster.current_holderId;