Invoice class
Invoice
Invoice object used to store issued invoices
Parent class
Inherits from object
Constructors
- (int resourceId "Resource id of existing invoice") - Get existing invoice
- (string name "Name of the invoice", int parentResourceId "Resource id of the resource the invoice is stored under", int earningUserResourceId "Resource id of the user that is attributed the invoice", DateTime invoiceDay "Day of invoicing", DateTime dueDay "Day of payment due") - Create new invoice
Methods
- Empty Save() - Save the Invoice and LedgerEntries
- (From object) string ToString() - The string representation of the object.
Properties
- bool AddressedToCustomer { get; set; } - True if addressed to the customer
- bool AddressedToNone { get; set; } - True if addressed to noone
- bool AddressedToRepresentative { get; set; } - True if addressed to the representative
- number Amount { get; } - Sum of amount of ledgers
- int AttentionToUserResourceId { get; set; } - Resource id of the user that is sent the invoice
- DateTime CreatedDate { get; } - Date of creation
- int CurrencyId { get; } - Id of the currency used for invoicing
- int CustomerGroupResourceId { get; set; } - Resource id of the group that is the customer
- DateTime DeletedDate { get; } - Deleted date if deleted
- DateTime DueDay { get; set; } - Day of invoicing
- int EarningUserResourceId { get; set; } - Resource id of the user that is attributed the invoice
- DateTime InvoiceDay { get; set; } - Day of invoicing
- string InvoiceNumber { get; set; } - Invoice Id that the customer can reference
- CompatibilityArray LedgerEntries { get; } - List of ledgers
- DateTime ModifiedDate { get; } - Date last modification
- string Name { get; set; } - Name of the Invoice, same as InvoiceNumber
- string ObjectTypeName { get; } - The name of the type of object.
- bool Paid { get; } - True if was paid
- DateTime PaidDate { get; set; } - Date the invoice was paid
- int ParentResourceId { get; set; } - Resource id of the resource the invoice is stored under
- string Reference { get; set; } - Invoice Id that the customer can reference
- int ResourceId { get; } - Resource id of the invoice
- int ResourceTemplateResourceId { get; set; } - Resource id of the resource template used. 0 to use default
- bool Submitted { get; set; } - Get/Set if invoice is submitted yet or not
- DateTime SubmittedDate { get; set; } - Date of submission
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.