Accounting Apex API Developer Reference

c2g.CODASalesCreditNoteAttachEmailController

global with sharing class CODASalesCreditNoteAttachEmailController

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

Date

2016

Methods

setCreditNoteAttr

global void setCreditNoteAttr(c2g__codaCreditNote__c creditNote)

Set credit note and reset credit note lines

Input Parameters

Name Type Description
creditNote c2g__codaCreditNote__c The credit note for which we want to generate the pdf

getCreditNote

global c2g__codaCreditNote__c getCreditNote()

Get credit note

Return Value

The credit note loaded

getFormattedCreditNoteNetTotal

global string getFormattedCreditNoteNetTotal()

getFormattedCreditNoteTaxTotal

global string getFormattedCreditNoteTaxTotal()

getFormattedCreditNoteWithholdingTotal

global string getFormattedCreditNoteWithholdingTotal()

getFormattedCreditNoteTotal

global string getFormattedCreditNoteTotal()

getOwnerCompany

global c2g__codaCompany__c getOwnerCompany()

Get credit note owner company

Return Value

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

getCompanyRecordType

global RecordType getCompanyRecordType()

Get credit note owner company record type

Return Value

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

getCreditNoteCurrency

global c2g__codaAccountingCurrency__c getCreditNoteCurrency()

Get credit note currency

Return Value

The currency of the credit note for which we want to generate the pdf

getCreditNoteAccount

global Account getCreditNoteAccount()

Get credit note account

Return Value

The account of the credit note for which we want to generate the pdf

getCreditNoteLineItems

global c2g__codaCreditNoteLineItem__c[] getCreditNoteLineItems()

Get credit note lines

Return Value

The lines of the credit note for which we want to generate the pdf

getFont

global String getFont()

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