{
    "keyColumn": "ct_id",
    "detailHeaderColumnPrefix": "Credits: ",
    "detailHeaderColumns": [
        "smb_account_id"
    ],
    "orderBy": {
        "ct_id": "ASC"
    },
    "listColumns": [
        "smb_account_id",
        "ct_credit_amount",
        "ct_created_on",
		"ct_creditvalue",
		"ct_current_user_credit"
    ],
    "showColumns": [
        "smb_account_id",
        "ct_credit_amount",
        "ct_created_on",
		"ct_creditvalue",
		"ct_current_user_credit"
    ],
    "detailColumns": [
        "smb_account_id",
        "ct_credit_amount",
        "ct_created_on" ,
		"ct_creditvalue",
		"ct_current_user_credit"

    ],
    "columns": {
        "ct_id": {
            "name": "ID",
            "sortable": "true",
            "editoptions": {
                "type": "hidden"
            }
        },
        "smb_account_id": {
            "name": "Business Account",
            "sortable": "true",
			"searchable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Account",
                "class": "textbox",
                "validations": [
                    "required"
                ]
            },
            "external": "true",
            "externalOptions": {
                "externalTable": "tbl_smb_account",
                "externalColumn": "smb_acc_id",
                "externalShowColumn": "smb_name"
            },
			 "popupoptions": {
                "type": "popup",
                "customaction": "Cmshelper::getSmbPopupUrlFromCredits"
            }
        },
        "ct_credit_amount": {
            "name": "Amount ($)",
            "sortable": "true"
        },
		 "ct_creditvalue": {
            "name": "Credit Value",
            "sortable": "true"
        },
        "ct_current_user_credit": {
            "name": "User Credit",
            "sortable": "true"
        },

        "ct_created_on": {
            "name": "Date",
            "sortable": "true",
            "dbFormat": "datetime",
            "displayFormat": "m/d/Y"
        }
    },
    "opertations": [
        "view"
    ],
	  "report": {
        "reportTitle": "Credits",
        "columns": [
            "smb_account_id",
       		"ct_credit_amount",
        	"ct_created_on" 
        ],
        "dateColumn": "ct_created_on"
    }
}