Skip to main content

Feature #449 — WO: PR No. field should be read-only after search

Issue: #449 Reporter: Kang-Supreeya Date: 2026-02-18 Priority: Medium Type: Enhancement


Description

เจ้าของงาน: สร้างงาน > ช่อง PR.No ไม่ควรแก้ไขได้

When Work Owner creates a new project by searching for a PR number (e.g., PR001) and it is not found, clicking "Create New" carries the PR number into the project registration form. Two issues:

  1. The "เลขที่ใบขอซื้อ" (Purchase Requisition Number) field appears separately even though "PR No. (ถ้ามี)" already contains the same value
  2. The "PR No. (ถ้ามี)" field should be read-only to prevent editing after being populated from search

Location

Work Owner > สร้างงาน > ขึ้นทะเบียนโครงงาน

Screenshots

Feature #449 Screenshot 1

Feature #449 Screenshot 2

Current vs Desired

AspectCurrentDesired
PR No. fieldEditable after searchRead-only (locked)
Duplicate PR fieldBoth "PR No." and "เลขที่ใบขอซื้อ" shownRemove duplicate or merge

Acceptance Criteria

  • PR No. field is read-only when populated from search
  • No duplicate PR number fields on the form