Accounting

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()

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

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

© Copyright 2009–2017 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.