@@ 67-79 (lines=13) @@ | ||
64 | ]; |
|
65 | } |
|
66 | ||
67 | public function attributeLabels() |
|
68 | { |
|
69 | return array_merge(parent::attributeLabels(), [ |
|
70 | 'sum' => Yii::t('hipanel', 'Sum'), |
|
71 | 'type' => Yii::t('hipanel', 'Type'), |
|
72 | 'quantity' => Yii::t('hipanel', 'Quantity'), |
|
73 | 'label' => Yii::t('hipanel', 'Description'), |
|
74 | 'time' => Yii::t('hipanel', 'Time'), |
|
75 | 'object_id' => Yii::t('hipanel', 'Object Id'), |
|
76 | 'order_id' => Yii::t('hipanel', 'Order'), |
|
77 | 'is_payed' => Yii::t('hipanel:finance', 'Is payed?'), |
|
78 | ]); |
|
79 | } |
|
80 | ||
81 | public function markAsNotNew() |
|
82 | { |
@@ 240-252 (lines=13) @@ | ||
237 | } |
|
238 | } |
|
239 | ||
240 | public function attributeLabels() |
|
241 | { |
|
242 | return [ |
|
243 | 'client_id' => Yii::t('hipanel', 'Client'), |
|
244 | 'time' => Yii::t('hipanel', 'Time'), |
|
245 | 'currency' => Yii::t('hipanel', 'Currency'), |
|
246 | 'sum' => Yii::t('hipanel:finance', 'Sum'), |
|
247 | 'label' => Yii::t('hipanel', 'Description'), |
|
248 | 'type' => Yii::t('hipanel', 'Type'), |
|
249 | 'quantity' => Yii::t('hipanel', 'Quantity'), |
|
250 | 'object_id' => Yii::t('hipanel', 'Object'), |
|
251 | ]; |
|
252 | } |
|
253 | ||
254 | public function getIsNewRecord() |
|
255 | { |