Skip to content

System allows creating multiple Credit Notes for the same Sales Order #51608

@ravibharathi656

Description

@ravibharathi656

Information about bug

Issue

The system allows creating two Credit Notes for a single Sales Order, which should not be permitted. This results in duplicate credits against the same transaction.

Steps to Reproduce

  1. Create a Sales Order (SO)
  2. Create a Delivery Note (DN) from the Sales Order
  3. Create a Sales Invoice (SI) from the Delivery Note
  4. From the Sales Invoice, create a Credit Note, then save and submit it
  5. Go back to the Delivery Note. Create a Sales Return from the Delivery Note by enabling Issue Credit Note
  6. Save and submit the Sales Return note that the system creates another Credit Note during the Sales Return process

Cause

During Credit Note creation from Sales Return, the system skips return validation because the Return Against field is not set.

Module

accounts

Version

ERPNext - develop

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Metadata

Metadata

Labels

accountsbuginternalIssue or PR created by an internal or closely related member of Frappe.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions