         self.controller = controller
         self.model = model
         labelId.text = model.firebasePurchaseId
+        
+        if model.originalStatus == FDatabaseModelPurchase.Status.active
+        {
+            preventDeletion()
+        }
+        else
+        {
+            allowDeletion()
+        }
     }
 }

            self,
            action:#selector(actionDelete(sender:)),
            for:UIControlEvents.touchUpInside)
        
        let labelId:UILabel = UILabel()
        labelId.isUserInteractionEnabled = false

        controller?.deletePurchase(item:model)
    }
    
    //MARK: private
    
    private func allowDeletion()
    {
        buttonDelete.isUserInteractionEnabled = true
        buttonDelete.alpha = kAlphaDeletable
    }
    
    private func preventDeletion()
    {
        buttonDelete.isUserInteractionEnabled = false
        buttonDelete.alpha = kAlphaNotDeletable
    }
    
    //MARK: public
    
    func config(controller:CAdminPurchases, model:MAdminPurchasesItem)
