Description
Properties
| Name | Value |
|---|---|
| Collation | SQL_Latin1_General_CP1_CI_AS |
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Schema Bound | False |
| Created | 9/11/2017 10:56:41 |
| Last Modified | 9/11/2017 10:56:41 |
Columns
| Key | Name | Description |
|---|---|---|
| gab_id | ||
| detail_in_id | ||
| mode_source_gab | ||
| mode_source_name_2 | ||
| info | ||
| doc_no | ||
| doc_date | ||
| receive_no | ||
| receive_date | ||
| quantity_sisa | ||
| qty_out | ||
| qty_plan | ||
| ms_item_custom_no | ||
| ms_item_base_no | ||
| part_no | ||
| part_name | ||
| uom | ||
| mode_source | ||
| mode_source_name | ||
| ms_item_id | ||
| id_source_header | ||
| ori_detail_in_id | ||
| ms_type_id | ||
| gab_mode_source | ||
| mode_source_2 | ||
| status_id | ||
| allow_to_production | ||
| mandatory_car_line | ||
| allow_to_scrap | ||
| allow_to_repair | ||
| allow_to_selling |
SQL Script
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
create view dbo.vw_ms_memo_detail_suplly_source_stock
---XencX---with encryption
as
SELECT
'0_' + cast(ms_in_item_detail_id as varchar(255)) as gab_id
, ms_in_item_detail_id as detail_in_id
,'STOCK' as mode_source_gab
, mode_source_name_2
, car as info
, bc_no as doc_no
, bc_date as doc_date
, receive_no
, receive_date
, quantity_sisa
, qty_out
, qty_plan
, ms_item_custom_no
, ms_item_base_no
, part_no
, part_name
, uom
, mode_source
, mode_source_name
, ms_item_id
, id_source_header
, ori_ms_in_item_detail_id as ori_detail_in_id
, ms_type_id
, cast(0 as int) gab_mode_source
, mode_source_2
, status_id
, allow_to_production
, mandatory_car_line
, allow_to_scrap
, allow_to_repair
, allow_to_selling
FROM vw_ms_item_in_detail
GO
GO
create view dbo.vw_ms_memo_detail_suplly_source_stock
---XencX---with encryption
as
SELECT
'0_' + cast(ms_in_item_detail_id as varchar(255)) as gab_id
, ms_in_item_detail_id as detail_in_id
,'STOCK' as mode_source_gab
, mode_source_name_2
, car as info
, bc_no as doc_no
, bc_date as doc_date
, receive_no
, receive_date
, quantity_sisa
, qty_out
, qty_plan
, ms_item_custom_no
, ms_item_base_no
, part_no
, part_name
, uom
, mode_source
, mode_source_name
, ms_item_id
, id_source_header
, ori_ms_in_item_detail_id as ori_detail_in_id
, ms_type_id
, cast(0 as int) gab_mode_source
, mode_source_2
, status_id
, allow_to_production
, mandatory_car_line
, allow_to_scrap
, allow_to_repair
, allow_to_selling
FROM vw_ms_item_in_detail
GO