Accounting Apex API Developer Reference

c2g.CODASalesInvoiceAttachEmailController

global with sharing class CODASalesInvoiceAttachEmailController

The controller class associated with codaSalesCreditNoteStandardAttachEmail global component, which is used for generating sales invoice pdf that can be sent by email or visualized as a document. This controller can be used by a custom component.

Date

2016

Methods

setInvoiceAttr

global void setInvoiceAttr(c2g__codaInvoice__c invoice)

Set invoice and reset invoice lines

Input Parameters

Name Type Description
invoice c2g__codaInvoice__c The invoice for which we want to generate the pdf

getInvoiceAttr

global c2g__codaInvoice__c getInvoiceAttr()

Get invoice

Return Value

The invoice for which we want to generate the pdf

getInvoice

global c2g__codaInvoice__c getInvoice()

Get invoice

Return Value

The invoice loaded

getFormattedInvoiceNetTotal

global string getFormattedInvoiceNetTotal()

getFormattedInvoiceTaxTotal

global string getFormattedInvoiceTaxTotal()

getFormattedInvoiceWithholdingTotal

global string getFormattedInvoiceWithholdingTotal()

getFormattedInvoiceTotal

global string getFormattedInvoiceTotal()

getOwnerCompany

global c2g__codaCompany__c getOwnerCompany()

Get invoice owner company

Return Value

The company that owns the invoice for which we want to generate the pdf

getQRAttachment

global Id getQRAttachment()

Get QR Code Attachment on Sales Invoice

Return Value

The Id of the QR Code Attachment

getCompanyRecordType

global RecordType getCompanyRecordType()

Get invoice owner company record type

Return Value

The record type of thecompany that owns the invoice for which we want to generate the pdf (VAT,SUT,GST)

getInvoiceCurrency

global c2g__codaAccountingCurrency__c getInvoiceCurrency()

Get invoice currency

Return Value

The currency of the invoice for which we want to generate the pdf

getInvoiceAccount

global Account getInvoiceAccount()

Get invoice account

Return Value

The account of the invoice for which we want to generate the pdf

getInvoiceGroupingReference

global c2g__codaGroupingReference__c getInvoiceGroupingReference()

Get invoice grouping reference

Return Value

The grouping reference of the invoice for which we want to generate the pdf

getInvoiceLineItems

global c2g__codaInvoiceLineItem__c[] getInvoiceLineItems()

Get invoice lines

Return Value

The lines of the invoice for which we want to generate the pdf

getInvoiceInstallLineItems

global c2g__codaInvoiceInstallmentLineItem__c[] getInvoiceInstallLineItems()

Get invoice installment lines

Return Value

The installment lines of the invoice for which we want to generate the pdf

getFont

global String getFont()

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.