Magento Certified Developer GuideCategory: 9. SalesWhat are the roles of the total models in the context of the invoice object
Manish Prakash Staff asked 2 years ago

Total Models are used in invoice as well to calculate invoice total.

public function collectTotals()
    {
        foreach ($this->getConfig()->getTotalModels() as $model) {
            $model->collect($this);
        }
        return $this;
    }

These are defined in ‘global/sales/order_invoice’