This commit is contained in:
@@ -168,43 +168,9 @@ CURRENTLY DOING: Cleanup with untranslated error string when attempting to dele
|
||||
Remove translation await code from gzform as it's not going to work that way and assume all errors come with pre-translated or do not require a fetch
|
||||
all stock error number validation codes errors should nto need to fetch as be prefetched so no need for async for that particualr purpose
|
||||
|
||||
At server add standard *biz function to Translate(key) to replace the long winded one in ValidateCanDelete that is available to *all* biz objects
|
||||
Then go into every validate save and validate delete and look for lt keys and replace with this pre-translate call to Translate(key)
|
||||
Finally the error display for a referential integrity error on delete is ugly, confusing and has too much shit going on
|
||||
clean it up to a one liner that clearly mixes in the object name with the error however that has to happen.
|
||||
just want to see a clean list of all the types of objects it's linked to
|
||||
|
||||
How it would look with ErrorDBForeignKeyViolation method:
|
||||
---
|
||||
Validation error
|
||||
ErrorAPI2200
|
||||
Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Inventory transaction"
|
||||
Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Part"
|
||||
Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Unit"
|
||||
Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: User"
|
||||
---
|
||||
|
||||
Validation error
|
||||
ErrorAPI2200
|
||||
This object is linked to others and can not be changed this way [2208] - "Part"
|
||||
This object is linked to others and can not be changed this way [2208] - "Unit"
|
||||
This object is linked to others and can not be changed this way [2208] - "Inventory transaction"
|
||||
This object is linked to others and can not be changed this way [2208] - "User"
|
||||
|
||||
|
||||
|
||||
|
||||
PartByWarehouseInventory part stock taking view and list
|
||||
todo: make the adjustments list item the partinventorytransactions list
|
||||
todo: make the partinventory just be the partinventory reconcilliation stock taking thing
|
||||
|
||||
EDIT form for partinventory item openobjecthyandler should open up to event log history of entry, not entry form since it is not editable anyway
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
todo: LT:NoType
|
||||
modify datagrid to handle LT: in text fields (needs to cache values it finds)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user