Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
14| Name | Data Type | Length | Description |
|---|---|---|---|
| @accion | varchar | 10 | |
| @id_pedido_fidelitas | int | 4 | |
| @item | tinyint | 1 | |
| @cod_producto | varchar | 4 | |
| @texto_factura_1 | varchar | 30 | |
| @texto_factura_2 | varchar | 20 | |
| @unidades | int | 4 | |
| @importe_unidad | decimal | 9 | |
| @importe_unidades_item | decimal | 9 | |
| @porc_dto_item | decimal | 5 | |
| @importe_dto_item | decimal | 9 | |
| @importe_iva_item | decimal | 9 | |
| @importe_neto_item | decimal | 9 | |
| @importe_con_iva_b | decimal | 9 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
CREATE OR ALTER PROCEDURE dbo.fide_detail_tango_
@accion varchar(10),
@id_pedido_fidelitas int,
@item tinyint,
@cod_producto varchar(4),
@texto_factura_1 varchar(30),
@texto_factura_2 varchar(20),
@unidades int,
@importe_unidad decimal(12, 4),
@importe_unidades_item decimal(12, 4),
@porc_dto_item decimal(5, 2),
@importe_dto_item decimal(12, 4),
@importe_iva_item decimal(12, 4),
@importe_neto_item decimal(12, 4),
@importe_con_iva_b decimal(12, 4)
AS
BEGIN
SET NOCOUNT ON;
if @accion = 'insert'
begin
INSERT INTO fide_detail_tango
(id_pedido_fidelitas,
item,
cod_producto,
texto_factura_1,
texto_factura_2,
unidades,
importe_unidad,
importe_unidades_item,
porc_dto_item,
importe_dto_item,
importe_iva_item,
importe_neto_item,
importe_con_iva_b,
procesado
)
VALUES
(
@id_pedido_fidelitas,
@item,
@cod_producto,
@texto_factura_1,
@texto_factura_2,
@unidades,
@importe_unidad,
@importe_unidades_item,
@porc_dto_item,
@importe_dto_item,
@importe_iva_item,
@importe_neto_item,
@importe_con_iva_b,
'I'
)
end
END
GO
GO
-- =============================================
CREATE OR ALTER PROCEDURE dbo.fide_detail_tango_
@accion varchar(10),
@id_pedido_fidelitas int,
@item tinyint,
@cod_producto varchar(4),
@texto_factura_1 varchar(30),
@texto_factura_2 varchar(20),
@unidades int,
@importe_unidad decimal(12, 4),
@importe_unidades_item decimal(12, 4),
@porc_dto_item decimal(5, 2),
@importe_dto_item decimal(12, 4),
@importe_iva_item decimal(12, 4),
@importe_neto_item decimal(12, 4),
@importe_con_iva_b decimal(12, 4)
AS
BEGIN
SET NOCOUNT ON;
if @accion = 'insert'
begin
INSERT INTO fide_detail_tango
(id_pedido_fidelitas,
item,
cod_producto,
texto_factura_1,
texto_factura_2,
unidades,
importe_unidad,
importe_unidades_item,
porc_dto_item,
importe_dto_item,
importe_iva_item,
importe_neto_item,
importe_con_iva_b,
procesado
)
VALUES
(
@id_pedido_fidelitas,
@item,
@cod_producto,
@texto_factura_1,
@texto_factura_2,
@unidades,
@importe_unidad,
@importe_unidades_item,
@porc_dto_item,
@importe_dto_item,
@importe_iva_item,
@importe_neto_item,
@importe_con_iva_b,
'I'
)
end
END
GO
Depends On
1Used By
No items found