Fixed Paypal IPN and other minor items
This commit is contained in:
@@ -69,7 +69,7 @@ class Model_Payment extends ORM_OSB {
|
||||
foreach ($this->items('ALLOC') as $pio)
|
||||
$result -= $pio->alloc_amt;
|
||||
|
||||
return $format ? Currency::display($result) : $result;
|
||||
return $format ? Currency::display($result) : Currency::round($result);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,7 +81,7 @@ class Model_Payment extends ORM_OSB {
|
||||
foreach ($this->items('CREDIT') as $pio)
|
||||
$result += $pio->alloc_amt*-1;
|
||||
|
||||
return $format ? Currency::display($result) : $result;
|
||||
return $format ? Currency::display($result) : Currency::round($result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user