sell product changes
This commit is contained in:
@@ -51,4 +51,15 @@ class Currency extends \common\models\BaseFitnessActiveRecord
|
||||
'updated_at' => Yii::t('common/currency', 'Updated At'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $money
|
||||
* @param common\models\Currency $currency
|
||||
* */
|
||||
public static function applyCurrency( $money,$currency ) {
|
||||
$result = $money / $currency;
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user