_edit

Edit a Supplier record.

Parameters

id

The ID of the Supplier to be edited.

name

The name of the Supplier to be edited.

contact_name

The contact name for the Supplier to be edited.

account_number

The account number of the Supplier to be edited.

tax_id

The tax id of the Supplier to be edited.

email

The email of the Supplier to be edited.

phone

The phone number of the Supplier to be edited.

website

The website URL of the Supplier to be edited.

street_address1

The first line of the Suppliers address to be edited.

street_address2

The second line of the Suppliers address to be edited.

town

The town of the Supplier to be edited.

county

The county of the Supplier to be edited.

country

The country code of the Supplier to be edited, eg. United Kingdon - GBR

postcode

The postcode of the Supplier to be edited.

notes

Notes for the Supplier to be edited.

on_hold

Yes - 1 No - 0

Example

FM_api('Supplier_edit', ['id' => '4',
                       'name' => 'Supplier 1',
												 'contact_name' => 'mary',
												 'account_number' => '12',
												 'tax_id' => '20',
												 'email' =>  'Supplier@email.com',
												 'phone' => '53234234',
												 'website' => 'www.testsupplier.co.uk',
												 'street_address1' => '62 Miltown St',
												 'street_address2' => 'Burren',
												 'town' => 'Warrrenpoint',
												 'county' => 'Down',
												 'country' => 'GBR',
												 'postcode' => 'BT343PU',
												 'notes' => 'Test Note',
												 'on_hold' => '0'
												 ]));

Result

On Success

{"ok":1}

Last updated