# START DD crm4/parametro
delete from ddfield where module = 'crm4' and (`window` = 'parametro' or `window` is null or `window` = '');
delete from ddform where module = 'crm4' and `window` = 'parametro';
insert into ddform( `name`,  `title`,  `module`,  `dbtable`,  `window`,  `dbwhere`,  `orderby`,  `onsave`,  `ondelete`,  `onsave_php`,  `ondelete_php`,  `props`) values(  'parmetro',  'Parámetro',  'crm4',  'params',  'parametro',  '',  '',  '',  '',  '',  '',  '');
insert into ddfield( `form`,  `module`,  `name`,  `title`,  `type`,  `relation`,  `dbcol`,  `list`,  `sqltransform`,  `window`,  `size`,  `defaultvalue`,  `info`,  `props`,  `numero`) values(  'parmetro',  'crm4',  'platform',  'Plataforma',  'combo',  'crm4.plataforma',  'platform',  '',  '',  'parametro',  '',  '',  '',  '',  '1');
insert into ddfield( `form`,  `module`,  `name`,  `title`,  `type`,  `size`,  `decimals`,  `relation`,  `info`,  `dbcol`,  `list`,  `sqltransform`,  `window`,  `defaultvalue`,  `props`,  `numero`) values(  'parmetro',  'crm4',  'nombre',  'Nombre',  'text',  '100',  '',  '',  '',  'nombre',  'onlist',  '',  'parametro',  '',  '',  '2');
insert into ddfield( `form`,  `module`,  `name`,  `title`,  `type`,  `dbcol`,  `list`,  `sqltransform`,  `window`,  `size`,  `props`,  `numero`) values(  'parmetro',  'crm4',  'tipo',  'Tipo',  'combo',  'tipo',  'undefined',  '',  'parametro',  '20',  'undefined',  '3');
insert into ddfield( `form`,  `module`,  `name`,  `type`,  `relation`,  `dbcol`,  `list`,  `sqltransform`,  `size`,  `window`,  `numero`) values(  'parmetro',  'crm4',  'explicacion',  'textarea',  '',  'explicacion',  'undefined',  '',  '1',  'parametro',  '4');
insert into ddfield( `form`,  `module`,  `name`,  `type`,  `relation`,  `dbcol`,  `list`,  `sqltransform`,  `size`,  `window`,  `numero`) values(  'parmetro',  'crm4',  'action',  'textarea',  '',  'action',  'undefined',  '',  '1',  'parametro',  '5');
# END DD crm4/parametro

# START DD crm4/leads
delete from ddfield where module = 'crm4' and (`window` = 'leads' or `window` is null or `window` = '');
delete from ddform where module = 'crm4' and `window` = 'leads';
# END DD crm4/leads

