2020-11-30 17.14.sql 656 B

123456789101112131415161718192021
  1. USE [befri_Goldhoo]
  2. GO
  3. /****** Object: View [Discount].[V_DiscountAccDetail] Script Date: 2020/11/30 17:14:41 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE VIEW [Discount].[V_DiscountAccDetail]
  9. AS
  10. SELECT dad.DiscountAccDetailId, dad.TableName, dad.VoucherLineId, dad.OperationType, dad.WarehouseId,
  11. dad.InventoryId, i.InventoryNumber, i.InventoryName, dad.IncreasedQty, dad.DecreasedQty, dad.DiscountCoef,
  12. dad.AccountedOn, dad.Description, i.DeliveryCycle
  13. FROM Discount.DiscountAccDetail AS dad INNER JOIN
  14. basedata.Inventory AS i ON i.InventoryId = dad.InventoryId
  15. GO