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
if error_msg: print(f"Deletion failed: {error_msg}") else: print(f"Successfully deleted {records_modified} records.")