Class mgntRatioExport
class mgntRatioExport
Calculates the contribution margin 1 - 5 of all products managed in the rp2. Supports CSV-Export and in future mysql-storage
selling price - external costs = cm1
personal costs = cm2
overheads direct (server infrastructure, ...)
- overheads indirect (costs for other free-of-charge products) = cm3
x sales volume - discounts = CM4 (overall)
- costs for unbilled products of this type
- indirect overhead-credit for unbilled products of this type = CM5
- rpf\extension\module\extensionModule
- rpf\extension\module\mgntRatioExport
Package: system\extension
Copyright: 1601.production siegler&thuemmler ohg
License: - http://creativecommons.org/licenses/by-sa/4.0/
Author: Andreas Doebeling ad@1601.com
Version: 0.1.151021_dev_1ad
Link: https://www.xing.com/profile/Andreas_Doebeling/
Link: https://github.com/ADoebeling
Located at extension/module/mgntRatioExport.php
Methods summary
public
|
|
public
|
|
protected
|
#
calcOverall( )
Adds the sum of count, turnover, systemPoints, ... and stores them to $this->sum[$type][$name][turnoverRegular] = X |
protected
|
#
calcOverallOverhead( )
Shares the overhead-costs to each product by systemPoints and stores them to $this->sum[$type][$name][overheadCosts|overheadCostsBilled|...] = X |
protected
|
#
calcOverallContributionMargin( )
Calculates the contribution-margin for all products and stores them to $this->sum[$type][$name][cmX] = Y |
protected
|
#
calcProducts( )
Calculates the benefits and costs for every single product based on $this->sum and stores them to $this->product[$type][$name][externalCosts|...] = X |
protected
|
|
public
|
|
public
string
|
|
public static
string
|
|
public
|
|
public
|
#
sendDownloadCsv( string $filename = NULL, string $source = 'ge' )
Send application/csv-header and starts downloading the csv |