Version 5.0.0 beta 5
This commit is contained in:
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() )
|
||||
|
||||
Reference in new issue
Block a user