This commit is contained in:
3
docs/8.0/ayanova/docs/form-vendor.md
Normal file
3
docs/8.0/ayanova/docs/form-vendor.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# VENDOR-EDIT Placeholder
|
||||||
|
|
||||||
|
This is a placeholder page for sections that are not written yet
|
||||||
@@ -154,6 +154,12 @@ namespace AyaNova.Biz
|
|||||||
await ValidateCanDelete(dbObject);
|
await ValidateCanDelete(dbObject);
|
||||||
if (HasErrors)
|
if (HasErrors)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
//todo: delete contacts and customer notes
|
||||||
|
//see workorder* collections and delete for transactional inclusion etc
|
||||||
|
//Will need to possibly display refintegrity error from the *linked* object delete attemp, i.e. Contact for here
|
||||||
|
//so should test that out so that it flows to the UI so user understands they can't delete the Customer due to a Contact having links to other objects
|
||||||
|
|
||||||
ct.Customer.Remove(dbObject);
|
ct.Customer.Remove(dbObject);
|
||||||
await ct.SaveChangesAsync();
|
await ct.SaveChangesAsync();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user