_jobCreate

Creates a job for a Goods received note

Parameters

grn_id

The ID of the Goods received note to be given a job

job_id

The ID of the created job

Example

=FM_api('GoodsReceivedNote_jobCreate',[
  'grn_id'=>'7',
  'job_id'=>'32041'
  ]
);

Results

On Success

{"ok":1,"id":32041}

On Failure

If there's no 'grn_id' parameter provided

{"error":"no goods received note id specified"}

If the 'grn_id' parameter given does not match the ID of any Goods received notes.

{"error":"goods received note does not exist"}

If the selected Goods received note has no items recorded

{"error":"no line items recorded for this goods received note"}

Last updated