72 lines
2.1 KiB
SQL
72 lines
2.1 KiB
SQL
SELECT
|
|
[Id]
|
|
,[ReleaseNumber]
|
|
,[CustomerReleaseNumber]
|
|
,[ReleaseState]
|
|
,[LineItemId]
|
|
,[BlanketOrderId]
|
|
,[DeliveryState]
|
|
,[ReleaseConfirmationState]
|
|
,[PlanningState]
|
|
,[OrderDate]
|
|
,cast([DeliveryDate] as datetime2) as DeliveryDate
|
|
,[LoadingDate]
|
|
,[Quantity]
|
|
,[DeliveredQuantity]
|
|
,[DeliveredQuantityTradeUnits]
|
|
,[DeliveredQuantityLoadingUnits]
|
|
,[PackagingId]
|
|
,[PackagingHumanReadableId]
|
|
,[PackagingDescription]
|
|
,[MainMaterialId]
|
|
,[MainMaterialHumanReadableId]
|
|
,[MainMaterialDescription]
|
|
,[AdditionalInformation1]
|
|
,[AdditionalInformation2]
|
|
,[D365SupplierLot]
|
|
,[TradeUnits]
|
|
,[LoadingUnits]
|
|
,[Trucks]
|
|
,[LoadingToleranceType]
|
|
,[UnderdeliveryDeviation]
|
|
,[OverdeliveryDeviation]
|
|
,[ArticleAccountRequirements_ArticleExact]
|
|
,[ArticleAccountRequirements_CustomerExact]
|
|
,[ArticleAccountRequirements_PackagingExact]
|
|
,[ArticleAccountRequirements_MainMaterialExact]
|
|
,[PriceLogicType]
|
|
,[AllowProductionLotMixing]
|
|
,[EnforceStrictPicking]
|
|
,[SalesPrice]
|
|
,[Currency]
|
|
,[QuantityUnit]
|
|
,[SalesPriceRemark]
|
|
,[DeliveryConditionId]
|
|
,[DeliveryConditionHumanReadableId]
|
|
,[DeliveryConditionDescription]
|
|
,[PaymentTermsId]
|
|
,[PaymentTermsHumanReadableId]
|
|
,[PaymentTermsDescription]
|
|
,[Remark]
|
|
,[DeliveryAddressId]
|
|
,[DeliveryAddressHumanReadableId]
|
|
,[DeliveryAddressDescription]
|
|
,[DeliveryStreetName]
|
|
,[DeliveryAddressZip]
|
|
,[DeliveryCity]
|
|
,[DeliveryCountry]
|
|
,[ReleaseDiscount]
|
|
,[CustomerArtNo]
|
|
,[LineItemHumanReadableId]
|
|
,[LineItemArticle]
|
|
,[LineItemArticleWeight]
|
|
,[LineItemQuantityType]
|
|
,[TotalPrice]
|
|
,[Add_User]
|
|
,[Add_Date]
|
|
,[Upd_User]
|
|
,cast([Upd_Date] as dateTime) as Upd_Date
|
|
,[VatRate]
|
|
,[ArticleAlias]
|
|
FROM [test1_AlplaPROD2.0_Reporting].[reporting_order].[Release] (nolock)
|
|
where format([Upd_Date], 'yyyy-MM-dd HH:mm:ss') > [dateCheck] |