×

Internal Types

The internal types (enum) are distinct types of named constants, which declare static information and are used throughout the application.
Topal defines internal types which are used for e.g. Creditor/debtor invoices are PersonRole, TransactionType, PostingType and payType.
 
Internal Types (Topal types)
 
    
    class InternalTypes
    {

        public enum payType
        {
            All = -1,
            None = 0, 
            ESR = 1,
            RoterESBank = 2,
            RoterESPost = 3,
            RoterESTreuhand = 4,
            LSV = 5,
            Manual = 6,
            Postmandant = 7,
            Fremdwaehrung = 8,
            IBAN = 9, 
            SEPA =10,
            QR=11
        };

        public enum PostingType
        {
            Compound = 1,
            Invoice = 2,
            Payment = 3,
            WriteOff = 4,
            Discount = 5,
            Fee = 6,
            Difference = 7,
            SubPosting = 8
        };

        public enum PersonRole
        {
            Party = 1,
            Debtor = 2,
            Creditor = 3
        };

        public enum TransactionType {
            None = 0,
            Simple = 1,
            Compound = 2,
            Invoice = 3,
            Payment = 4
        };
    }
    
  
    
class PersonRole(Enum):
    """
    Internal Types Enum PersonRole
    """
    party = 1
    debtor = 2
    creditor = 3

class PostingType(Enum):
    """
    Internal Types Enum PostingType
    """
    compound = 1
    invoice = 2
    payment = 3
    writeoff = 4
    discount = 5
    fee = 6
    difference = 7
    subposting = 8

class TransactionType(Enum):
    """
    Internal Types Enum TransactionType
    """
    none = 0
    simple = 1
    compound = 2
    invoice = 3
    payment = 4

class payType(Enum):
    """
    Internal Types Enum payType
    """    
            All = -1
            Non = 0  
            ESR = 1
            RoterESBank = 2
            RoterESPost = 3
            RoterESTreuhand = 4
            LSV = 5
            Manual = 6
            Postmandant = 7
            Fremdwaehrung = 8
            IBAN = 9
            SEPA =10
            QR=11