kartik-v / yii2-money

An advanced money mask input for Yii 2.0 styled for Bootstrap 3
http://demos.krajee.com/money
Other
27 stars 21 forks source link

displaying from model is off by factor of 100 #8

Closed akorinek closed 9 years ago

akorinek commented 9 years ago

I have this field in my activeform: <?= $form->field($model, 'rate')->widget(MaskMoney::classname()) ?> The database field is decimal(5,2), the value in that row is 85.00. The value displayed is 0.85 $. Creating a new value with the widget works though, just the update seems to be off.

kartik-v commented 9 years ago

There is an issue with core plugin when using with suffix. Its been reported to the plugin author. Till that is resolved avoid using suffix and use only prefix.