close #466 Fixed: Bill Payment Problem

This commit is contained in:
cuneytsenturk
2018-08-30 13:08:31 +03:00
parent 37f9fbe622
commit 3589a0b5fc
6 changed files with 19 additions and 4 deletions

View File

@ -101,4 +101,9 @@ class BillPayment extends Model
return $this->getMedia('attachment')->last();
}
public function getDivideConvertedAmount($format = false)
{
return $this->divide($this->amount, $this->currency_code, $this->currency_rate, $format);
}
}