This commit is contained in:
2021-03-20 16:51:17 -03:00
parent 845077d2a0
commit 53a519ffbd
7 changed files with 175 additions and 8 deletions

View File

@ -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;
}
}