---
id: change/bcapps/10376
type: change
title: "#10376 [Main] Fix unbalanced G/L when a Credit Memo is applied to a rejected/redraw…"
summary: Fixed an issue where applying a sales credit memo to a rejected or redrawn bill in the Spanish (Cartera) version caused the Rejected Bills Account to become unbalanced due to duplicate posting.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:24.556Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dd61f9a59abb5d965451d39d1511933926e50b37
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10376
    title: "microsoft/BCApps#10376: [Main] Fix unbalanced G/L when a Credit Memo is applied to a rejected/redraw…"
    date: "2026-08-27"
    commit: dd61f9a59abb5d965451d39d1511933926e50b37
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10376
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10376
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T21:51:00Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 105
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/12
    page: codeunit/12
    type: codeunit
    id: 12
    name: Gen. Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647259
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10376 [Main] Fix unbalanced G/L when a Credit Memo is applied to a rejected/redraw…

> Fixed an issue where applying a sales credit memo to a rejected or redrawn bill in the Spanish (Cartera) version caused the Rejected Bills Account to become unbalanced due to duplicate posting.

[Pull request](https://github.com/microsoft/BCApps/pull/10376) · merged into `main` (BC30) on 2026-08-27 by Shikhverma · 2 files (+105 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Credit memos applied to rejected bills now post the Rejected Bills Account reclassification only once instead of twice
- Prevents duplicate posting by skipping application posting in PostDtldCustApplicationEntry when PostReceivableDocs already handles the rejected bill
- Ensures the Rejected Bills Account clears correctly and transactions remain balanced
- Includes test coverage for the cartera redraw scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 12 "Gen. Jnl.-Post Line"](../../objects/codeunit/12.md), Base Application (ES layer): modified

## Context

- Work items: AB#647259
- Labels: Team: Finance
- Systems: finance

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).
