I am trying to clean up our menu items and deleting old items that we no longer sell. I have waited until the last sales of the items have passed our historical date range set for retention and I have been able to delete all items that were never posted as wasted items. I get the following error when trying to delete any item that was posted to a wasted item check.
Key violation.
[Sybase][ODBC Driver]{Adaptive Server Anywhere]Primary key for row in table 'mi_def' is referenced by foreign key
General SQL error.
'CFK2PM_WASTE_DTL' in table 'pm_waste_dtl'
Our historical totals are set for 396 days and when I run a Wasted Item Report with a start date of 11/22/2003 (when we opened) through 11/22/2013 none of the items I am trying to delete show up on the report.
Is there a waste detail that needs to be purged? If so, how do I do that? If not, any ideas of how to delete the items?
Key violation.
[Sybase][ODBC Driver]{Adaptive Server Anywhere]Primary key for row in table 'mi_def' is referenced by foreign key
General SQL error.
'CFK2PM_WASTE_DTL' in table 'pm_waste_dtl'
Our historical totals are set for 396 days and when I run a Wasted Item Report with a start date of 11/22/2003 (when we opened) through 11/22/2013 none of the items I am trying to delete show up on the report.
Is there a waste detail that needs to be purged? If so, how do I do that? If not, any ideas of how to delete the items?