# Job

# Automatic creation of Planning Line from Sales Invoice

This feature lets you invoice a project (job) directly from a manually entered sales invoice (or credit memo), without first creating the project planning lines. When the document is posted, Business Central automatically creates the matching billable planning line and links it to the sales document line.


On the lines of the **Sales Invoice** (lines subpage), the **Project No.** and **Project Task No.** columns become editable. If they are not visible, add them by personalizing the page.


| Field | Description |
|---|---|
| Project No. | Project to which the invoice line is charged. |
| Project Task No. | Project task to which the line is charged. Required when a project is specified. |


1. Create a new sales invoice (or credit memo) and fill in the header as usual.
2. Enter lines of type **Item**, **Resource** or **G/L Account**.
3. On each line to be charged to the project, fill in **Project No.** and **Project Task No.**.
4. Post the document.


- A project task can only be specified on lines of type Item, Resource or G/L Account; other types raise an error.
- On posting, for each line with a project that is not yet linked to a planning line, a new project planning line is created on the specified task, with:
  - line type **Billable** and planning date equal to the document posting date;
  - the same type, number, description, location, quantity, unit of measure, unit price, line discount % and general product posting group as the sales line.
- The new planning line is linked to the sales document, so it is already shown as invoiced in the project.
- The check that the bill-to customer matches the project customer is skipped for automatically created lines.

# Sales posting from G/L

In Business Central, general journal lines linked to a job always create job ledger entries of type **Usage** (costs). This module lets you choose the job entry type to create, so that job **revenues (sales)** can also be posted directly from the general ledger.


Open the **Job G/L Journal** page. In the lines, before the **Job No.** field, the new **Job Entry Type** field is available.


| Field | Description |
|---|---|
| Job Entry Type | Type of job entry created by the line: **Usage** (cost) or **Sale** (revenue). |


1. Open the **Job G/L Journal**.
2. Fill in the line as usual (account, amount, etc.).
3. Set **Job Entry Type** to **Sale** to post a revenue, or leave **Usage** for a cost.
4. Enter **Job No.**, **Job Task No.** and **Job Quantity**.
5. Post.


- The job entry created on posting uses the type set on the line.
- When a job quantity is entered, unit amounts are calculated from the line amount excluding VAT, converted to the job currency, divided by the quantity:
  - with type **Usage**, the value becomes the **Unit Cost** and the **Unit Price** is set to zero;
  - with type **Sale**, the value becomes the **Unit Price** and the **Unit Cost** is set to zero.

# Handle Entry Type in Job Journal

In the Business Central **Job Journals** page the **Entry Type** of the lines is normally set automatically (Usage) and is not shown on the page. This feature adds the field to the journal lines and makes it editable, so users can choose the type of entry to post for each line.


1. Open the **Job Journals** page.
2. The **Entry Type** field is hidden by default: use **Personalize** (or **Show/hide columns**) to add it to the lines. The field is placed after **Document No.**


| Field | Description |
|---|---|
| Entry Type | Type of job ledger entry created by the line: **Usage** (consumption of resources, items or G/L accounts on the job) or **Sale** (billable/revenue amount on the job). The value can be edited directly on the line. |


1. Enter the job journal line as usual (job, task, type, no., quantity, etc.).
2. In the **Entry Type** field select **Usage** or **Sale** according to the entry to create.
3. Post the journal: job ledger entries are created with the type specified on the line.