Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1445 มุมมอง

I have models: Contract and Incident. 

In Incident form, I have button Send to Create and Send incident form. 

When click Send button:

- Successfully: Check Room has Contract is Active -> Create Incident form + Change state to In Progress + Send noti.

- Failed: Check Room has not contract or Contract is Draft -> Not allow create Incident form + Show error message ( ValidationError("NotFoundAnywhereContractWithStateActive")) 


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Please help me ~~

อวตาร
ละทิ้ง
ผู้เขียน

Help me, please ............

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 24
1480
0
เม.ย. 24
2033
1
ก.พ. 24
6580
0
ก.ย. 23
2084
1
พ.ย. 21
2123