refs #451 Invoice create added item price mask

This commit is contained in:
cuneytsenturk
2018-08-17 17:10:23 +03:00
parent 33673def5b
commit 17b582796d
13 changed files with 636 additions and 276 deletions

View File

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