Skip to main content
Attachment Logic
Marsha Galicia avatar
Written by Marsha Galicia
Updated over 2 weeks ago

The new logic introduces a more sophisticated structure to represent documents, particularly invoices or receipts. It breaks down the document into various sections, each with specific properties, providing a comprehensive view of the document's content.

Key Properties:

XDIAttachmentLines Properties
These represent specific line items on a document:

  • Description: A brief explanation of the item or service.

  • UnitCost: Cost per unit of the item or service.

  • Quantity: Number of units purchased or provided.

  • AmountPayable: Total cost for the line item (UnitCost × Quantity).

  • TaxPayable: Tax amount applicable to the line item.

  • TaxAmountType: Type of tax applied (e.g., GST, VAT).

XDIAttachment Properties
This class captures the full scope of the document, categorized into different sections:

Amount Facts

  • Subtotal: Total before tax.

  • TaxAmount: Total tax applied.

  • TotalAmount: Grand total after tax.

  • FreightAmount: Shipping or freight costs, if applicable.

  • CurrencyCode: Currency used in the document (e.g., USD).

Bank Facts

  • BranchNumber: Bank branch code.

  • AccountHolder: Name of the account holder.

  • AccountNumber: Bank account number.

Date Facts

  • IssueDate: Date the document was issued.

  • DueDate: Payment deadline.

  • PaymentDate: Date the payment was made.

Identifier Facts

  • Code: Internal code for the document.

  • DocumentType: Type of document (e.g., "Invoice").

  • ReferenceNumber: Unique reference number for tracking.

  • AmountDue: Remaining balance.

Owner Facts

  • OwnerName: Name of the document owner.

  • OwnerTaxNumber: Owner’s tax identification number.

  • OwnerCountryCode: Country code of the owner.

Summary Facts

  • DocumentDescription: A summary of the document’s purpose.

  • WordCount: Total word count in the document.

Supplier Facts

  • SupplierName: Name of the supplier.

  • SupplierAddress: Supplier’s address.

  • SupplierTaxNumber: Supplier’s tax ID.

Lines

  • Lines: Array of XDIAttachmentLines objects, representing individual line items.

Did this answer your question?