SupplierCreditHandler

This class contains the functions to perform the following:

Retrieve:

  • Supplier Invoice Credit(s)
Update:
  • Supplier Invoice Credit Flag

api
package simPROAPI
subpackage Invoice
author Nathan Muir
version 2011-07-28

 Methods

SupplierCreditRetrieve

Retrieve(int $CompanyID, int $CreditNo) : array
Static

This function retrieves a credit with a specific number

uses \SupplierCreditHandler::RetrieveList()
used_by \AccPayInvoiceHandler::Retrieve()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$CreditNo

int

The Credit Number to retrieve

Returns

array

SupplierCreditRetrieveList

RetrieveList(int $CompanyID, array $CreditNos) : array
Static

This function retrieves details on the provided list of credit numbers

used_by \SupplierCreditHandler::Search()
used_by \SupplierCreditHandler::SearchInvoice()
used_by \SupplierCreditHandler::Retrieve()
used_by \AccPayInvoiceHandler::RetrieveExport()
used_by \AccPayInvoiceHandler::RetrieveList()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$CreditNos

array

list of Credit Numbers to retrieve.

Returns

array

SupplierCreditSearchInvoice

SearchInvoice(int $CompanyID, string $InvoiceNo) : array
Static

This function searches for supplier credits with a specific credit invoice number

uses \SupplierCreditHandler::RetrieveList()
used_by \AccPayInvoiceHandler::SearchInvoice()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$InvoiceNo

string

The Supplier Credit Reference Number

Returns

array