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

@@ -46,7 +46,16 @@ class _sendInvoiceWarnings extends \IPS\Task
foreach ( new \IPS\Patterns\ActiveRecordIterator( $select, 'IPS\nexus\Purchase' ) as $purchase )
{
$agreementId = ( $purchase->billing_agreement AND !$purchase->billing_agreement->canceled ) ? $purchase->billing_agreement->id : 0;
$groupedPurchases[ $purchase->member->member_id ][ $agreementId ][ $purchase->renewal_currency ][ $purchase->id ] = $purchase;
if ( $purchase->onExpireWarning() )
{
$purchase->invoice_warning_sent = 1;
$purchase->save();
}
else
{
$groupedPurchases[ $purchase->member->member_id ][ $agreementId ][ $purchase->renewal_currency ][ $purchase->id ] = $purchase;
}
}
/* Loop */
@@ -59,7 +68,7 @@ class _sendInvoiceWarnings extends \IPS\Task
{
$email = NULL;
/* Create a temporary invoice (we're not going to save this) so that we knkow what the charges will be */
/* Create a temporary invoice (we're not going to save this) so that we know what the charges will be */
$invoice = new \IPS\nexus\Invoice;
foreach ( $purchases as $purchase )
{