---
id: change/bcapps/12985
type: change
title: "#12985 [Master] - Bug 654115: [Expense Agent] Cannot submit report with a non-refundable Employee Paid line: 'nothing to refund' blocks release, report stuck in draft"
summary: Fixes an issue where expense reports with non-refundable employee paid lines couldn't be submitted due to a 'nothing to refund' error that blocked the release process.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit expense preview post mgt.
  - codeunit expense report-post
  - codeunit release exp. report document
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-04T00:58:40.704Z"
  flags: []
generated:
  at: "2026-11-05T00:14:20.359Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 592256e88b2ae0601ba87421fc1d164672e583fd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12985
    title: "microsoft/BCApps#12985: [Master] - Bug 654115: [Expense Agent] Cannot submit report with a non-refundable Employee Paid line: 'nothing to refund' blocks release, report stuck in draft"
    date: "2026-11-03"
    commit: 592256e88b2ae0601ba87421fc1d164672e583fd
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6997
    - object/codeunit/6987
    - object/codeunit/6984
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-submit-report
      title: Create and Submit Expense Reports
      label: possibly related
      why: Documents creating and submitting expense reports including validation and review.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-post-reports
      title: Post Expense Reports in Business Central
      label: possibly related
      why: Explains posting approved expense reports to general ledger and reimbursement processing.
      by: model
number: 12985
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12985
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-03T05:11:18Z"
author: v-rohangarg20
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 261
  deletions: 14
  al: 3
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/6997
    page: codeunit/6997
    type: codeunit
    id: 6997
    name: Expense Preview Post Mgt.
    app: ExpenseAgent
    status: modified
  - key: codeunit/6987
    page: codeunit/6987
    type: codeunit
    id: 6987
    name: Expense Report-Post
    app: ExpenseAgent
    status: modified
  - key: codeunit/6984
    page: codeunit/6984
    type: codeunit
    id: 6984
    name: Release Exp. Report Document
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 654115
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12985 [Master] - Bug 654115: [Expense Agent] Cannot submit report with a non-refundable Employee Paid line: 'nothing to refund' blocks release, report stuck in draft

> Fixes an issue where expense reports with non-refundable employee paid lines couldn't be submitted due to a 'nothing to refund' error that blocked the release process.

[Pull request](https://github.com/microsoft/BCApps/pull/12985) · merged into `main` (BC30) on 2026-11-03 by v-rohangarg20 · 5 files (+261 -14), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Users can now release and submit expense reports containing non-refundable employee paid lines
- The validation that blocked submission for non-refundable lines has been corrected
- Additional test cases ensure the fix handles various expense report scenarios
- Changes in post management and release logic prevent the erroneous error message
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6997 "Expense Preview Post Mgt."](../../objects/codeunit/6997.md), ExpenseAgent: modified
- [Codeunit 6987 "Expense Report-Post"](../../objects/codeunit/6987.md), ExpenseAgent: modified
- [Codeunit 6984 "Release Exp. Report Document"](../../objects/codeunit/6984.md), ExpenseAgent: modified

## Context

- Work items: AB#654115
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Create and Submit Expense Reports](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-submit-report) — possibly related: Documents creating and submitting expense reports including validation and review. (model-linked)
- [Post Expense Reports in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-post-reports) — possibly related: Explains posting approved expense reports to general ledger and reimbursement processing. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
