Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

@@ -1726,6 +1726,7 @@ class _Invoice extends \IPS\Patterns\ActiveRecord
public function markPaid( \IPS\Member $member = NULL )
{
$return = NULL;
$memberCreated = FALSE;
if ( $this->status !== static::STATUS_PAID )
{
@@ -1734,6 +1735,7 @@ class _Invoice extends \IPS\Patterns\ActiveRecord
{
if ( $this->guest_data )
{
$memberCreated = TRUE;
$return = $this->createAccountForGuest();
}
else
@@ -2086,7 +2088,13 @@ class _Invoice extends \IPS\Patterns\ActiveRecord
$extra['setByID'] = $member->member_id;
$extra['date'] = time();
}
/* Update member total spend */
if ( $memberCreated )
{
$this->member->recountTotalSpend();
}
/* Save */
$this->status_extra = $extra;
$this->save();