Updates to Product Model, product updates, enable pricing update, improved formating of product services
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Models\Product;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
use App\Interfaces\ProductItem;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Service\Domain as ServiceDomain;
|
||||
use App\Models\Supplier\Domain as SupplierDomain;
|
||||
|
||||
@@ -31,6 +32,8 @@ final class Domain extends Type implements ProductItem
|
||||
// The model that is referenced when this product is ordered
|
||||
protected string $order_model = ServiceDomain::class;
|
||||
|
||||
// When comparing billing/pricing/charging, what metric to normalise to
|
||||
const DefaultBill = Invoice::BILL_YEARLY;
|
||||
// The model that the supplier supplies
|
||||
const SupplierModel = SupplierDomain::class;
|
||||
|
||||
|
Reference in New Issue
Block a user