add contract started_at field
This commit is contained in:
@@ -284,9 +284,14 @@ class ContractController extends Controller {
|
||||
throw new Exception ( "Az oldal nem található" );
|
||||
}
|
||||
|
||||
|
||||
$model = new ContractForm ( [
|
||||
'customer' => $customer
|
||||
] );
|
||||
|
||||
$model->started_at = date(date('Y.m.d'));
|
||||
|
||||
|
||||
$model->fillOut ();
|
||||
|
||||
if ($model->load ( Yii::$app->request->post () ) && $model->validate ()) {
|
||||
|
||||
Reference in New Issue
Block a user