mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix partially refunded status
This commit is contained in:
parent
df55785df9
commit
6098700823
@ -142,7 +142,7 @@ class RefundPayment
|
|||||||
*/
|
*/
|
||||||
private function setStatus()
|
private function setStatus()
|
||||||
{
|
{
|
||||||
if ($this->refund_data['amount'] == $this->payment->amount) {
|
if ($this->total_refund == $this->payment->amount) {
|
||||||
$this->payment->status_id = Payment::STATUS_REFUNDED;
|
$this->payment->status_id = Payment::STATUS_REFUNDED;
|
||||||
} else {
|
} else {
|
||||||
$this->payment->status_id = Payment::STATUS_PARTIALLY_REFUNDED;
|
$this->payment->status_id = Payment::STATUS_PARTIALLY_REFUNDED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user