|
|
|
|
|
|
|
|
$payment->amount = number_format($payment->amount, 2); |
|
|
$payment->amount = number_format($payment->amount, 2); |
|
|
|
|
|
|
|
|
$posts = \Yii::$app->request->post(); |
|
|
$posts = \Yii::$app->request->post(); |
|
|
if(isset($posts['Payment']['date_transaction'])) { |
|
|
|
|
|
|
|
|
if(isset($posts['Payment']['date_transaction']) && $posts['Payment']['date_transaction']) { |
|
|
$posts['Payment']['date_transaction'] = date('Y-m-d', strtotime(str_replace('/', '-', $posts['Payment']['date_transaction']))); |
|
|
$posts['Payment']['date_transaction'] = date('Y-m-d', strtotime(str_replace('/', '-', $posts['Payment']['date_transaction']))); |
|
|
} |
|
|
} |
|
|
|
|
|
|