---
title: "Codeunit 1005 Job Calculate Batches"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1005-job-calculate-batches/
type: codeunit
id: 1005
name: "Job Calculate Batches"
app: "Base Application"
namespace: Microsoft.Projects.Project.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1005-job-calculate-batches/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1005 Job Calculate Batches

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1005-job-calculate-batches/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Projects.Project.Journal |
| Versions | 17-28 |
| Source file | Projects/Project/Journal/JobCalculateBatches.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SplitLines | (var Record Job Task) | Integer | public | 17-28 | - | - |
| TransferToPlanningLine | (var Record Job Ledger Entry, Integer) | - | public | 17-28 | - | - |
| ChangePlanningDates | (Record Job Task, Boolean, Boolean, DateFormula, Date, Date, Date) | - | public | 17-28 | - | - |
| ChangeCurrencyDates | (Record Job Task, Boolean, Boolean, DateFormula, Date, Date, Date) | - | public | 17-28 | - | - |
| ChangeDatesEnd | () | - | public | 17-28 | - | - |
| CreateJT | (Record Job Planning Line) | - | public | 17-28 | - | - |
| InitDiffBuffer | () | - | public | 17-28 | - | - |
| PostDiffBuffer | (Code[20], Date, Code[10], Code[10]) | - | public | 17-28 | - | - |
| BatchError | (Date, Code[20]) | - | public | 17-28 | - | - |
| EndCreateInvoice | (Integer) | - | public | 17-28 | - | - |
| CalculateActualToBudget | (var Record Job, Record Job Task, var Record Job Difference Buffer, var Record Job Difference Buffer, Option) | - | public | 17-28 | - | - |
| GetCurrencyCode | (var Record Job, Option, Option) | Text[50] | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeJobPlanningLineInsert | (var Record Job Planning Line) | 17-28 | - | - |
| Integration event | OnBeforePostDiffBuffer | (var Record Job Difference Buffer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeTransferToPlanningLine | (var Record Job Ledger Entry) | 17-28 | - | - |
| Integration event | OnCreateJTOnBeforeAssigneJobDiffBuffer2 | (var Record Job Difference Buffer, Record Job Planning Line) | 17-28 | - | - |
| Integration event | OnPostDiffBufferOnAfterInsertJobJnlLine | (var Record Job Journal Line, var Record Job Difference Buffer) | 17-28 | - | - |
| Integration event | OnPostDiffBufferOnBeforeModify | (var Record Job Ledger Entry, var Record Job Difference Buffer) | 17-28 | - | - |
| Integration event | OnChangeCurrencyDatesOnBeforeJobPlanningLineModify | (var Record Job Planning Line) | 21-28 | - | - |
| Integration event | OnChangePlanningDatesOnBeforeJobPlanningLineModify | (var Record Job Planning Line) | 21-28 | - | - |
| Integration event | OnPostDiffBufferOnAfterSetFilters | (var Record Job Ledger Entry, var Record Job Difference Buffer) | 22-28 | - | - |
| Integration event | OnBeforeCreateJT | (var Boolean, Record Job Planning Line) | 22-28 | - | - |
| Integration event | OnBeforeInsertDiffBuffer | (var Record Job Ledger Entry, var Record Job Planning Line, var Record Job Difference Buffer, Option, Option) | 22-28 | - | - |
| Integration event | OnAfterInsertDiffBuffer | (var Record Job Ledger Entry, var Record Job Planning Line, var Record Job Difference Buffer, Option, Option) | 22-28 | - | - |
| Integration event | OnChangeCurrencyDatesOnBeforeChangeCurrencyDate | (var Record Job Planning Line, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeEndCreateInvoice | (var Integer, var Boolean) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
