SupplierInvoiceHandler

This class contains the functions to perform the following:

Retrieve:

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

api
package simPROAPI
subpackage Invoice
author Nathan Muir, Daniel Sanders [add other contributors]
version 2011-08-22

 Methods

SupplierInvoiceInsert

Insert(int $CompanyID, int $OrderID, array $SupplierInvoiceDetails) : int
Static
<?php
$SupplierInvoiceDetails =
array(
"SupplierInvoiceNo"=>"",
"PackingSlipNo"=>"",
"DateIssued"=>"Y-m-d",
"PrivateNotes"=>"",
"StockItems"=>array(
"StockItemID"=>0,
"Quantity"=>0,
"AmountExTax"=>0,
"AmountIncTax"=>0
);
?>

Parameters

$CompanyID

int

the company id

$OrderID

int

the order id

$SupplierInvoiceDetails

array

an associative array of invoice information

Returns

int

SupplierInvoiceRetrieve

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

This function retrieves a receipt with a specific ID

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

Parameters

$CompanyID

int

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

$ReceiptNo

int

The Receipt Number to retrieve

Returns

array

SupplierInvoiceRetrieveList

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

This function retrieves details on the provided list of receipt numbers

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

Parameters

$CompanyID

int

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

$ReceiptNos

array

list of Receipt Numbers to retrieve.

Returns

array

SupplierInvoiceSearchInvoice

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

This function searches for supplier invoices with a specific supplier invoice number

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

Parameters

$CompanyID

int

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

$InvoiceNo

string

The Supplier Invoice Number

Returns

array