Overview
  • Namespace
  • Class

Namespaces

  • rpf
    • api
      • module
    • extension
      • module
    • system
      • module

Classes

  • extension
  • extensionModule
  • invoiceTextExport
  • mailExport

Class invoiceTextExport

Class invoiceTextExport

This class provides methods to list all orders, each with customer-name, turnover per month and turnover per year. Additionally it's able to show the invoice-address, the tariff and all positions, each with turnover per month.

It is build to provide a copy-and-paste interface for all dispositions to bill the rp2-data in an external program.

rpf\system\module
Extended by rpf\extension\extensionModule
Extended by rpf\extension\invoiceTextExport
Namespace: rpf\extension
Package: system\extension
Copyright: 1601.production siegler&thuemmler ohg
Author: Andreas Doebeling ad@1601.com
Link: https://github.com/ADoebeling
Link: http://xing.doebeling.de
Link: https://www.1601.com
Located at extension/module/invoiceTextExport.php

Methods summary

public
# __construct( rpf\extension\extension & $system )

Overrides

rpf\system\module::__construct
public
# setFormat( string $name, string $value )

Set format-pattern

Set format-pattern

Parameters

$name
$value
public array
# getAllOrders( )

Returns all orders

Returns all orders

Returns

array
[ $ordNr[ customerDisplayName, priceMonth, priceYear)
public array
# getAddress( string $ordNr )

Returns the Invoice-Address as formatted string.

Returns the Invoice-Address as formatted string.

Parameters

$ordNr

Returns

array
public array
# getTariff( string $ordNr )

Returns the ordered tariff (Doesn't takes care of validity period)

Returns the ordered tariff (Doesn't takes care of validity period)

Parameters

$ordNr

Returns

array
[name, desc, priceFormatted]

Throws

Exception
public array
# getDomains( string $ordNr )

Returns the ordered domains (Doesn't takes care of validity period)

Returns the ordered domains (Doesn't takes care of validity period)

Parameters

$ordNr

Returns

array
[ title, amount, priceFormatted, item[ name, priceFormatted ] ]
public array
# getAddOns( string $ordNr )

Returns the ordered AddOns (Doesn't takes care of validity period)

Returns the ordered AddOns (Doesn't takes care of validity period)

Parameters

$ordNr

Returns

array
[ $pronr[ title, name, amount, desc, priceFormatted ] ]
public array
# getCertificates( string $ordNr )

Returns the ordered certificates (Doesn't takes care of validity period)

Returns the ordered certificates (Doesn't takes care of validity period)

Parameters

$ordNr

Returns

array
[ $type[ $domain[ title, amount, desc, priceFormatted, item[ name, priceFormatted ] ] ] ]
public array
# getExchangeAccounts( string $ordNr )

Returns the ordered exchange-accounts (Doesn't takes care of evaluation/validity period)

Returns the ordered exchange-accounts (Doesn't takes care of evaluation/validity period)

Parameters

$ordNr

Returns

array
[ type[ name, amount, desc, priceFormatted, item[ name, priceFormatted ] ] ]
public static string
# getEuroFormatted( float|integer $price, string $zeroString = 'Inklusive' )

Formats float into 12.345,67 � and integer into 12.345,- � Returns $zeroString if price is NULL

Formats float into 12.345,67 � and integer into 12.345,- � Returns $zeroString if price is NULL

Parameters

$price
$zeroString
= Inklusive

Returns

string
(12.345,67 �|12.345,- �|Inklusive)
public static string
# getPriceFormatted( float $price, float $priceDefault = NULL, string $activeAccounting = 1, string $patternDiscount,…, boolean $activeAccounting,… )

Formats $price and $priceDefault as invoice-string

Formats $price and $priceDefault as invoice-string

Parameters

$price
$priceDefault
$activeAccounting
$patternZero
$patternDiscount,…
$activeAccounting,…

Returns

string
(12.345,67 �|12.345,- �|12.345,67 � // Abzgl. 1.345,- � Rabatt)

Methods inherited from rpf\system\module

addModule(), getApi(), getException(), getExtension(), getModule()

API documentation generated by ApiGen