# \_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"}
```
