Revision history [back]
اولا يجب عليك تقعيل الخيار "السماح بتغيير سياسة استعمال المواقع اذا وجدت حركة علي المخزن" بإعدادات ال Supply Chain الذي يسمح بتعديل استخدام المواقع بعد عمل حركات علي المخزن ثم قم بتعريف المواقع بعدها قم باختيار موقع في كل الحركات القديمة و كطريقة أسهل لعمل هذا قم بتعريف موقع افتراضي للمخزن و عمل إعادة حفظ لكل السندات القديمة و سيقوم النظام باستعمال الموقع الافتراضي اليا مع الحفظ و الاستعلام التالي يساعدك في حصر السندات التي علي مخازن لها مواقع و لكن السند نفسه بدون موقع
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
اولا يجب عليك تقعيل الخيار "السماح بتغيير سياسة استعمال المواقع اذا وجدت حركة علي المخزن"
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
اولا يجب عليك تقعيل
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
اولا يجب عليك تقعيل الاوبشن الذي يسمح بتعديل استخدام المواقع
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
اولا يجب عليك تقعيل الاوبشن
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
Refer to Reprocessing Transactions guide Use the following query
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
Use the following query
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
Refer to Reprocessing Transactions guide
Use the following query
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
Refer to Reprocessing Transactions guide
Use the following query
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
Refer to Reprocessing Transactions guide
Use the following query
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as h
as
h
with x as (
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockTransfer h
left join StockTransferLine l on h.id = l.stockTransfer_id
left join WareLocator wl on wl.warehouse_id = l.toWarehouse_id
where wl.id is not null and l.toLocator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockIssue h
left join StockIssueLine l on h.id = l.stockIssue_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct h.entityType,h.id,h.code,wl.warehouse_id from StockReceipt h
left join StockReceiptLine l on h.id = l.stockReceipt_id
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null
union all
select distinct l.originType,l.originId,l.originCode,wl.warehouse_id from ReservationTransLine l
left join WareLocator wl on wl.warehouse_id = l.warehouse_id
where wl.id is not null and l.locator_id is null)
select distinct h.entityType,h.id,h.code from x as
h