INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XCTPRDV','count_widget_preostanek_ddv','SCNIVED','getPreostanekDDV','','count/invoices','count','Permission to retrieve preostanek DDV','EXE','',1,false,false,NULL);
     
INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XCTDOH','count_widget_dohodnina','SCNIVED','getDohodnina','','count/invoices','count','Permission to retrieve dohodnina','EXE','',1,false,false,NULL);


ALTER TABLE public.count_invoices ADD service_date date NULL;
ALTER TABLE public.count_invoices ADD service_due date NULL;

