Methods

__construct()

__construct() 

init_invoice()

init_invoice() 

init_lineitem()

init_lineitem() 

create_new_invoice()

create_new_invoice(  $invoice_data,   $line_items = array()) 

Parameters

$invoice_data
$line_items

convert_pii_data()

convert_pii_data(  $alternative_data) 

Parameters

$alternative_data

add_line_item()

add_line_item(  $line_item_data) 

Parameters

$line_item_data

update_invoice()

update_invoice(  $invoice_data,   $line_items = array()) 

Parameters

$invoice_data
$line_items

update_line_item()

update_line_item(  $line_item_data) 

Parameters

$line_item_data

check_line_item_data()

check_line_item_data(  $line_item_data) 

Parameters

$line_item_data

getInvoice()

getInvoice() 

getLineItem()

getLineItem() 

commitNewInvoice()

commitNewInvoice() 

commitLineItem()

commitLineItem() 

commitUpdateInvoice()

commitUpdateInvoice() 

commitUpdateLineItem()

commitUpdateLineItem() 

deleteLineItemById()

deleteLineItemById(  $line_item_id) 

Parameters

$line_item_id

get_invoice_booking_number()

get_invoice_booking_number(  $contract_uid) 

Parameters

$contract_uid

b2b_transaction_is_vat_to_be_charged()

b2b_transaction_is_vat_to_be_charged() 

set_vat_charging_flag()

set_vat_charging_flag() 

mark_invoice_paid()

mark_invoice_paid() 

mark_invoice_pending()

mark_invoice_pending() 

mark_invoice_unpaid()

mark_invoice_unpaid() 

mark_invoice_cancelled()

mark_invoice_cancelled() 

mark_invoice_issued()

mark_invoice_issued() 

get_line_items_balance()

get_line_items_balance() 

get_invoice_id_by_contract_uid()

get_invoice_id_by_contract_uid(  $contract_uid) 

Parameters

$contract_uid

create_pii_buyer()

create_pii_buyer(  $alternative_data = false) 

Parameters

$alternative_data

create_pii_seller()

create_pii_seller() 

generate_invoice_number()

generate_invoice_number()