-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete an account #7812
Comments
Hmm. What you're also saying here is that the "can I delete this account" check forgets to check some of the foreign keys. If the account is used in a part, it shouldn't be offering to delete the account. Thanks for reporting! |
What you say is reasonable but my problem stemmed from not being able to
delete the part because of a different problem (was that #7811?).
…On Fri, 15 Dec 2023, 21:52 Erik Huelsmann, ***@***.***> wrote:
Hmm. What you're also saying here is that the "can I delete this account"
check forgets to check some of the foreign keys. If the account is used in
a part, it shouldn't be offering to delete the account.
Thanks for reporting!
—
Reply to this email directly, view it on GitHub
<#7812 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AMS2F7WDFJCFGIJI2K3RO7TYJQTWDAVCNFSM6AAAAABATD6IMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXGY3TOMBZGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
That's correct: you couldn't delete the part and the part was using the account. So: the When #7811 is fixed (and your setup updated) and you delete the part, then you should be able successfully to remove the account. |
@howardlowndes 1.11.6 was released earlier today, with this fix included. |
Version
1.11.4
What browsers are you seeing the problem on?
This problem isn't browser related
What happened?
Trying to delete an account item that was previously an Inventory summary account (but is no longer) throws the following error.
`23503: ERROR: update or delete on table "account" violates foreign key constraint "parts_inventory_accno_id_fkey" on table "parts"
DETAIL: Key (id)=(22) is still referenced from table "parts".
CONTEXT: SQL statement "DELETE FROM account WHERE id = in_id"
PL/pgSQL function account__delete(integer) line 17 at SQL statement
dbversion: 1.11.4, company: PlayAMS`
What should have happened?
This is probably as a result of the error reported in #7811 not allowing a part to be deleted
The text was updated successfully, but these errors were encountered: