fix: check for bank account permission when updating balance (#56016)

* fix: check for bank account permission when updating balance

* fix: add company to bank balance doctype
This commit is contained in:
Nikhil Kothari
2026-06-16 22:53:55 +05:30
committed by GitHub
parent a32c784084
commit 4e2a10e496
4 changed files with 24 additions and 3 deletions

View File

@@ -33,6 +33,16 @@ export const getErrorMessages = (error?: FrappeError | null): ParsedErrorMessage
}
})
// @ts-expect-error - some errors have _error_message
if (error?._error_message) {
eMessages.push({
// @ts-expect-error - some errors have _error_message
message: error?._error_message,
title: "Error",
indicator: "red"
})
}
if (eMessages.length === 0) {
// Get the message from the exception by removing the exc_type
const indexOfFirstColon = error?.exception?.indexOf(':')