SAL, W, Z: Derive Attributes

Derived attributes of classes with “SAL,” “W,” “Z”

For a list of all Derived Attributes, see Derived Attributes.

ClearedExpense

charged
Boolean charged = true

Service charged

MinutesExt
integer verrMinutesExt
Conversion date
DateTime
  • Charged service: The date is calculated from the invoice so that all services have the same conversion date.
  • Rechnung.bis , if any.
  • Other: Rechnung.datum , if any.
  • If no date found: inherited from project entry.Conversion date.
Currency
AWARDS

Rechnung.waehrung , if set.

ValueExt
VtcCurrency

verrValueExt

downpayment

AmountOpen
VtcCurrency
  • Sum of net outstanding amounts. If downpayment is net, it is the same as BetragOffen , otherwise on a pro rata basis based on gross amount.
  • If not isNetto : Conversion of Internal Amounts (gross)
    • if GrossAmount <> 0: InternalAmountOpen.AsCurrency / GrossAmount.AsCurrency * NetAmount.AsCurrency
    • Otherwise: 0.
  • If: isNetto : InternalAmountOpen.
Gross amount
VtcCurrency
  • If: IsNetto : Net input, plus VAT amount:
    Gross amount = amount + VAT amount
  • If: isNetto = false: gross input, already equals gross amount: gross
    amount = amount
Gross AmountOpen
VtcCurrency
  • Sum of gross amounts outstanding. If downpayment gross, it is the same as BetragOffen , otherwise on a pro rata basis based on net amount.
  • If: isNetto : Conversion of amounts (net):
    • if NetAmount <> 0: InternalAmountOpen / NetAmount * GrossAmount
    • Otherwise: 0.
  • If not isNetto : InternalAmountOpen.
InternalAmountOpen
VtcCurrency
  • Run through all LinkObjects invoice advance, add up the amounts already settled and subtract these numbers from NettoBetrag or Bruttobetrag . In the case of gross advances: InternBetragOffen gross, net in the case of net advances.
  • If: Vorschuss.isNetto : Sum of advance paymentlink.AmountNet
  • If: Vorschuss.isBrutto : Total advance link.AmountGross
VAT amount
VtcCurrency
  • If: isNetto : VAT Amount calculated on net amount:
RoundCurrency(amount * VAT rate / 100)
  • Other: Calculate VAT amount of gross:
RoundCurrency(amount * (1 – (1 / (1 + (VAT rate / 100)))))))
Net Amount
VtcCurrency
  • If: isNetto : net input, already equals net amount: net amount = amount
  • If: isNetto = false: gross input, deduct VAT amount: net amount = amount – VAT amount
Charged
Boolean Downpayments shall be regarded as charged if they are invoiced on a settled invoice or if they are charged on at least one charged invoice.
Imprest account
VtcString
  • If: verrechnet and verrVorschussKonto set: verrVorschussKonto .
  • Other: xVorschussKonto , if set.
  • Other: projekt.VorschussKonto , if any.

currency

Course
float

Sets itself the current course (now).

payment

Account
VtcString
  • Falls gebucht , we take the account from the locally stored xAccount: Account = xAccount.
  • Falls nicht gebucht : Take account of payment type: Type.Account, if available.

Netherlands

United Kingdom