Description
Properties
| Name | Value |
|---|---|
| File Collation | |
| File Group | |
| Filestream File Group | |
| Is Partitioned | False |
| Partitioned Column | |
| Partition Scheme | |
| File Groups | |
| Filestream Partition Scheme | |
| Filestream File Groups | |
| Heap | True |
| Full Text Catalog | |
| Full Text | |
| Compression | NONE |
| Row Count (~) | 289 |
| Created | 1/10/2024 11:47:06 AM |
| Last Modified | 1/10/2024 11:47:06 AM |
Columns
26| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id_registro | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| cliente | int | 4 | 10 | 0 | True |
False |
False |
|||||
| producto | int | 4 | 10 | 0 | False |
False |
False |
|||||
| producto_no_se_factura | bit | 1 | 1 | 0 | False |
False |
False |
|||||
| tipo_facturacion | char | 1 | 0 | 0 | False |
False |
False |
(M) Mensual masiva (P) Prepago - se factura por demada (E) Especial (por ejemplo cuotas) | ||||
| prod_codigo_factura | varchar | 10 | 0 | 0 | False |
False |
False |
|||||
| Lista_PrecioEspecial_Cuotas | char | 1 | 0 | 0 | False |
False |
False |
|||||
| lista_precios | int | 4 | 10 | 0 | False |
False |
False |
|||||
| precio_especial_tipo | char | 1 | 0 | 0 | False |
False |
False |
P - Tarifa plana / S - Cargo minimo y excedentes / N - por cantidad consumida | ||||
| precio_especial_moneda | varchar | 3 | 0 | 0 | False |
False |
False |
|||||
| precio_especial | decimal | 9 | 18 | 2 | False |
False |
False |
|||||
| precio_especial_excedentes | decimal | 9 | 18 | 2 | False |
False |
False |
|||||
| cantidad_cuotas | int | 4 | 10 | 0 | False |
False |
False |
|||||
| moneda_cuotas | varchar | 3 | 0 | 0 | False |
False |
False |
|||||
| valor_cuota | decimal | 9 | 18 | 2 | False |
False |
False |
|||||
| cuotas_cobradas | int | 4 | 10 | 0 | False |
False |
False |
|||||
| bonificacion_porcentaje | decimal | 5 | 5 | 2 | False |
False |
False |
|||||
| bonificacion_desde | date | 3 | 10 | 0 | False |
False |
False |
|||||
| bonificacion_hasta | date | 3 | 10 | 0 | False |
False |
False |
|||||
| fecha_ultimo_cierre | date | 3 | 10 | 0 | False |
False |
False |
|||||
| fecha_ultima_factura | date | 3 | 10 | 0 | False |
False |
False |
|||||
| visible | bit | 1 | 1 | 0 | False |
False |
False |
|||||
| created | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| created_by | int | 4 | 10 | 0 | False |
False |
False |
|||||
| modified | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| modifed_by | int | 4 | 10 | 0 | False |
False |
False |
SQL Script
Copy
CREATE TABLE dbo.clientes_condiciones_facturacion (
id_registro int IDENTITY,
cliente int NOT NULL,
producto int NULL,
producto_no_se_factura bit NULL,
tipo_facturacion char(1) NULL,
prod_codigo_factura varchar(10) NULL,
Lista_PrecioEspecial_Cuotas char(1) NULL,
lista_precios int NULL,
precio_especial_tipo char(1) NULL,
precio_especial_moneda varchar(3) NULL,
precio_especial decimal(18, 2) NULL,
precio_especial_excedentes decimal(18, 2) NULL,
cantidad_cuotas int NULL,
moneda_cuotas varchar(3) NULL,
valor_cuota decimal(18, 2) NULL,
cuotas_cobradas int NULL,
bonificacion_porcentaje decimal(5, 2) NULL,
bonificacion_desde date NULL,
bonificacion_hasta date NULL,
fecha_ultimo_cierre date NULL,
fecha_ultima_factura date NULL,
visible bit NULL,
created datetime NULL,
created_by int NULL,
modified datetime NULL,
modifed_by int NULL
)
ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty N'MS_Description', N'(M) Mensual masiva (P) Prepago - se factura por demada (E) Especial (por ejemplo cuotas)', 'SCHEMA', N'dbo', 'TABLE', N'clientes_condiciones_facturacion', 'COLUMN', N'tipo_facturacion'
GO
EXEC sys.sp_addextendedproperty N'MS_Description', N'P - Tarifa plana / S - Cargo minimo y excedentes / N - por cantidad consumida', 'SCHEMA', N'dbo', 'TABLE', N'clientes_condiciones_facturacion', 'COLUMN', N'precio_especial_tipo'
GO
id_registro int IDENTITY,
cliente int NOT NULL,
producto int NULL,
producto_no_se_factura bit NULL,
tipo_facturacion char(1) NULL,
prod_codigo_factura varchar(10) NULL,
Lista_PrecioEspecial_Cuotas char(1) NULL,
lista_precios int NULL,
precio_especial_tipo char(1) NULL,
precio_especial_moneda varchar(3) NULL,
precio_especial decimal(18, 2) NULL,
precio_especial_excedentes decimal(18, 2) NULL,
cantidad_cuotas int NULL,
moneda_cuotas varchar(3) NULL,
valor_cuota decimal(18, 2) NULL,
cuotas_cobradas int NULL,
bonificacion_porcentaje decimal(5, 2) NULL,
bonificacion_desde date NULL,
bonificacion_hasta date NULL,
fecha_ultimo_cierre date NULL,
fecha_ultima_factura date NULL,
visible bit NULL,
created datetime NULL,
created_by int NULL,
modified datetime NULL,
modifed_by int NULL
)
ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty N'MS_Description', N'(M) Mensual masiva (P) Prepago - se factura por demada (E) Especial (por ejemplo cuotas)', 'SCHEMA', N'dbo', 'TABLE', N'clientes_condiciones_facturacion', 'COLUMN', N'tipo_facturacion'
GO
EXEC sys.sp_addextendedproperty N'MS_Description', N'P - Tarifa plana / S - Cargo minimo y excedentes / N - por cantidad consumida', 'SCHEMA', N'dbo', 'TABLE', N'clientes_condiciones_facturacion', 'COLUMN', N'precio_especial_tipo'
GO
Depends On
1- Fidelitas