mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 13:41:47 +00:00
Merge the stock exceptions into the existing app-wide erpnext/exceptions.py (under a '# stock' section) instead of a separate erpnext/stock/exceptions.py, matching the established convention. stock_controller still re-exports them for backward compatibility; services import from erpnext.exceptions. Verified: ledger snapshots, quality inspection suite, stock_entry batch-expiry stay green.
48 lines
741 B
Python
48 lines
741 B
Python
import frappe
|
|
|
|
|
|
# accounts
|
|
class PartyFrozen(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class InvalidAccountCurrency(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class InvalidCurrency(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class PartyDisabled(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class InvalidAccountDimensionError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class MandatoryAccountDimensionError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class ReportingCurrencyExchangeNotFoundError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
# stock
|
|
class QualityInspectionRequiredError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class QualityInspectionRejectedError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class QualityInspectionNotSubmittedError(frappe.ValidationError):
|
|
pass
|
|
|
|
|
|
class BatchExpiredError(frappe.ValidationError):
|
|
pass
|