Skip to content

[Bug]: Credit Balance Not Updating Properly After Partial Usage #269

@zaidd29

Description

@zaidd29

Issue Search Confirmation

  • I have searched existing open and closed issues and this is not a duplicate

Bug Description

Issue: Credit Balance Not Updating Properly After Partial Usage

Current Behavior:
Once part of the credit balance is used, the remaining balance is not displayed during the next invoice checkout.

Steps to Reproduce

Scenario:

  1. Sales Invoice created with full payment.
  2. Customer returned items, and the return amount was added to the customer's credit balance.
  3. While creating the next invoice, the correct credit balance is visible during checkout.
  4. After using part of the credit amount in the new invoice, the remaining credit balance is not showing in subsequent invoices.

Expected Behavior

Expected Behavior:
After partial utilization of customer credit balance, the remaining unused balance should continue to appear correctly in the next transactions.

Actual Behavior

Expected Behavior:
After partial utilization of customer credit balance, the remaining unused balance should continue to appear correctly in the next transactions.

Screenshots / Screen Recordings

Image

Browser Console Errors

POS Next Version

1.13.0 (Latest)

Exact Version (if known)

No response

Frappe Framework Version

15.107.2

ERPNext Version

v15.107.0

Browser

Chrome

Browser Version

e4234234

Operating System

Ubuntu/Debian Linux

Deployment Type

Self-hosted (Production)

Bug Frequency

Always (100% reproducible)

Offline Mode

No - Online mode only

Additional Context

No response

Server Logs (if applicable)

Pre-submission Checklist

  • I have provided screenshots showing the issue
  • I have included my application version information
  • I have provided clear steps to reproduce the issue
  • I have checked browser console for errors and included them if present

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions