# NDT Request – PT Request Date Test Data This document lists **weld_logs** rows where the mobile app can successfully save **PT Request Date** (backend validation allows new request). ## Validation rule (backend) - **Blocked** if the joint has `welding_date` set. - **Blocked** if the joint has **any** `*_request_no` set (VT, RT, UT, PT, MT, PMI, PWHT, HT, Ferrite). - **Allowed** only when `welding_date` is empty and all request numbers are empty. ## Test records (eligible for PT request date) All of these have `welding_date = null` and all `*_request_no` fields empty. | ID | ISO Number | Joint | Spool | Line Number | |----|-------------------------|-------|---------|------------------------| | 75 | IA-80-AH01JL-FA00.100 | 5 | SPL-0001| IA-80-AH01JL-FA00.100 | | 82 | IA-80-AH01JL-FA00.100 | 10 | SPL-0002| IA-80-AH01JL-FA00.100 | | 88 | IA-80-AH01JL-FA00.100 | 16 | SPL-0003| IA-80-AH01JL-FA00.100 | | 90 | IA-80-AH01JL-FA00.100 | 18 | SPL-0003| IA-80-AH01JL-FA00.100 | | 94 | IA-80-AH01JL-FA00.100 | 22 | SPL-0003| IA-80-AH01JL-FA00.100 | ## Recommended test row - **ID: 75** - **ISO Number:** IA-80-AH01JL-FA00.100 - **Joint:** 5 - **Spool:** SPL-0001 ## How to test in the app 1. Open **NDT Request** on the mobile app. 2. Use filters if needed: **ISO No** = `IA-80-AH01JL-FA00.100`, **Joint No** = `5`, **Spool No** = `SPL-0001` (or scroll to find Line `IA-80-AH01JL-FA00.100`, Joint 5, Spool SPL-0001). 3. Open the row (ID 75). 4. Set **PT** → **Request Date** (e.g. 05/02/2026) and optionally **NDT company**. 5. Save. 6. In DB, confirm: `weld_logs.pt_request_date` for `id = 75` is updated. ```sql SELECT id, iso_number, no_of_the_joint_as_per_as_built_survey, spool_number, pt_request_date, pt_request_no FROM weld_logs WHERE id = 75; ``` ## Note The record you tried earlier (ISO: kw-300-AH03JS-FA00.100-HC, Joint: 29, Spool: SPL0009) is likely **rejected** by the backend because that joint has `welding_date` set and/or at least one `*_request_no` set. Use one of the rows above to verify that PT request date is saved correctly.