Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • AbstractInvoiceItems
  • InvoiceDataItems
  • InvoiceItems

Interfaces

  • InvoiceItemsInterface
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class AbstractInvoiceItems

Abstract builder for invoice items

Blesta\Core\Pricing\Presenter\Items\Invoice\AbstractInvoiceItems implements Blesta\Core\Pricing\Presenter\Items\Invoice\InvoiceItemsInterface uses Blesta\Core\Pricing\MetaItem\Meta

Direct known subclasses

Blesta\Core\Pricing\Presenter\Items\Invoice\InvoiceDataItems, Blesta\Core\Pricing\Presenter\Items\Invoice\InvoiceItems
Abstract
Namespace: Blesta\Core\Pricing\Presenter\Items\Invoice
Package: blesta\core\Pricing\Presenter\Items\Invoice
Copyright: Copyright (c) 2019, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Pricing/Presenter/Items/Invoice/AbstractInvoiceItems.php
Methods summary
public
# __construct( Blesta\Core\Pricing\PricingFactory $pricingFactory, Blesta\Items\ItemFactory $itemFactory, Blesta\Items\Item\ItemInterface $settings, Blesta\Items\Collection\ItemCollection $taxes = null, Blesta\Items\Item\ItemInterface $options = null )

Init

Init

Parameters

$pricingFactory
An instance of the PricingFactory
$itemFactory
An instance of the ItemFactory
$settings
An item containing a set of settings
$taxes
A collection of items representing taxes
$options
An item containing a set of custom options
protected An
# makeMetaItemPrices( array $items )

Creates a list of MetaItemPrices from a set of items

Creates a list of MetaItemPrices from a set of items

Parameters

$items

An array of items that each must contain: - price The price of the item - qty The quantity count of the item - key The item's key - description The item's description - meta Meta information about the item (optional)

Returns

An
array of MetaItemPrice objects representing each item
protected array
# setTaxes( array $itemPrices )

Updates the given MetaItemPrices to assign taxes

Updates the given MetaItemPrices to assign taxes

Parameters

$itemPrices
An array of MetaItemPrices to assign taxes for

Returns

array
The MetaTaxPrices with taxes assigned
Methods inherited from Blesta\Core\Pricing\Presenter\Items\Invoice\InvoiceItemsInterface
build()
Methods used from Blesta\Core\Pricing\MetaItem\Meta
getMeta(), getMetaFromCollection()
Properties summary
protected Instance $pricingFactory

of PricingFactory

of PricingFactory

#
protected Instance $itemFactory

of ItemFactory

of ItemFactory

#
protected Blesta\Items\Collection\ItemCollection $discounts

A set of discounts

A set of discounts

#
protected Blesta\Items\Item\ItemInterface $options

Custom options

Custom options

#
protected Blesta\Items\Item\ItemInterface $settings

Settings

Settings

#
protected Blesta\Items\Collection\ItemCollection $taxes

A set of taxes

A set of taxes

#
Blesta API documentation generated by ApiGen