     private weak var labelId:UILabel!
     private weak var fieldName:UITextField!
     private weak var fieldPurchaseId:UITextField!
+    private weak var buttonDelete:UIButton!
+    private let kAlphaDeletable:CGFloat = 1
+    private let kAlphaNotDeletable:CGFloat = 0.3
     
     override init(frame:CGRect)
     {

        self.controller = controller
        self.model = model
        labelId.text = model.firebasePurchaseId
    }
}

        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)
