Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -117,7 +117,7 @@ abstract class _Purchase extends \IPS\nexus\Invoice\Item
{
$where[] = array( 'ps_cancelled=0' );
}
return new \IPS\Patterns\ActiveRecordIterator( \IPS\Db::i()->select( '*', 'nexus_purchases', $where ), 'IPS\nexus\Purchase' );
}
@@ -260,6 +260,17 @@ abstract class _Purchase extends \IPS\nexus\Invoice\Item
{
return TRUE;
}
/**
* Purchase can be renewed?
*
* @param \IPS\nexus\Purchase $purchase The purchase
* @return boolean
*/
public static function canBeRenewed( \IPS\nexus\Purchase $purchase )
{
return TRUE;
}
/**
* Can Renew Until
@@ -341,6 +352,18 @@ abstract class _Purchase extends \IPS\nexus\Invoice\Item
}
/**
* On expire soon
* If returns TRUE, the normal expire warning email will not be sent
*
* @param \IPS\nexus\Purchase $purchase The purchase
* @return void
*/
public static function onExpireWarning( \IPS\nexus\Purchase $purchase )
{
return FALSE;
}
/**
* On Purchase Expired
*