Sources
This commit is contained in:
@ -79,4 +79,10 @@ class Currency extends Model {
|
||||
$result = Value::add($this->factory, $arr);
|
||||
return $result;
|
||||
}
|
||||
public function addSource($info) {
|
||||
$arr = (array) $info;
|
||||
$arr['currency_id'] = (int) $this->id;
|
||||
$result = Source::add($this->factory, $arr);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user