Version 5.0.0 beta 5

This commit is contained in:
Neo committed 2025-12-19 17:04:22 -08:00
1 parent 2f24f9de48
commit 57d9db6ce2
218 files changed
+5331 -7416

No files matched your search

@@ -41,6 +41,7 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
/**
* Invoice Abstract Item Interface
*
*/
abstract class Item
{
@@ -115,6 +116,11 @@ abstract class Item
* @brief Application
*/
public static string $application = '';
/**
* @brief Type
*/
public static string $type = '';
/**
* @brief Commission percentage
@@ -85,14 +85,14 @@ class Renewal extends Item
$obj->tax = $purchase->renewals->tax;
$obj->quantity = $cycles;
$obj::$application = $purchase->app;
$obj->type = $purchase->type;
$obj::$type = $purchase->type;
$obj->id = $purchase->id;
if ( $purchase->pay_to )
{
$obj->payTo = $purchase->pay_to;
$obj->commission = $purchase->commission;
$obj->fee = $purchase->fee;
$obj->commission = $purchase->commission ?? 0;
$obj->fee = $purchase->fee ?? 0;
}
if ( $renewalPaymentMethodIds = $purchase->renewalPaymentMethodIds() )
@@ -396,19 +396,6 @@ class Item extends ContentItem implements Embeddable
return array( 'p_id', 'p_base_price', 'p_reviews', 'p_discounts', 'p_renew_options', 'p_tax', 'p_stock', 'p_initial_term' );
}
/**
* Get URL from index data
*
* @param array $indexData Data from the search index
* @param array $itemData Basic data about the item. Only includes columns returned by item::basicDataColumns()
* @param string|NULL $action Action
* @return Url
*/
public static function urlFromIndexData( array $indexData, array $itemData, ?string $action = NULL ) : Url
{
return Url::internal( "app=nexus&module=store&controller=product&id={$indexData['index_item_id']}", 'front', 'store_product', Member::loggedIn()->language()->addToStack( 'nexus_package_' . $indexData['index_item_id'], FALSE, array( 'seotitle' => TRUE ) ) );
}
/**
* Query to get additional data for search result / stream view