コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1412 ビュー

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 ............

関連投稿 返信 ビュー 活動
0
10月 24
1473
0
4月 24
1997
1
2月 24
6554
0
9月 23
2047
1
11月 21
2097