Invoice Document Amendment

This commit is contained in:
glovetleong
2021-04-29 00:33:25 +08:00
parent 69eccb2d9c
commit 590021bde9
12 changed files with 326 additions and 81 deletions
+2
View File
@@ -60,6 +60,8 @@ class Transaction extends AbstractModel implements Documentable
{
if($this->booking()->first()->fix_currency_id !== 1) {
$currency_rate = $this->currency()->first()->rates()->where('payment_method_type', $this->payment_method)->first();
dd($this->payment_method);
return number_format($this->original_amount / $currency_rate->selling, 2);
}
return $this->original_amount;