system.kanoa.item.deleteItemPeriod
Description
Deletes an item period in KanoaOPS.Syntax
deleteItemPeriod(itemPeriodId, userId)- int itemPeriodId - The ID of the item period to be deleted.
- int userId - The ID of the user making the deletion.
- (int) Number of records modified
- (str) Error message if deletion fails
Code Examples
# Example Usage:
records_modified, error_msg = system.kanoa.item.deleteItemPeriod(itemPeriodId=123, userId=456)
if error_msg:
print(f"Deletion failed: {error_msg}")
else:
print(f"Successfully deleted {records_modified} records.")