public override void When(PhysicalInventoryCommands.DocumentAction c) { if (c.Value == DocumentAction.Complete) { var PhysicalInventory = AssertDocumentStatus(c.DocumentNumber, DocumentStatusIds.Drafted); // todo //var inventoryItemEntries = CompletePhysicalInventoryCreateInventoryItemEntries(PhysicalInventory); //CreateOrUpdateInventoryItems(inventoryItemEntries); base.When(c); } else if (c.Value == DocumentAction.Reverse) { var srcPhysicalInventory = AssertDocumentStatus(c.DocumentNumber, DocumentStatusIds.Completed); // todo //var reversalPhysicalInventoryInfo = CreateReversalPhysicalInventoryAndCompleteAndClose(c, srcPhysicalInventory); //ReverseUpdateSourcePhysicalInventory(c, reversalPhysicalInventoryInfo); ////base.When(c); } else { base.When(c); } }
public void When(PhysicalInventoryCommands.DocumentAction c) { throw new NotImplementedException();//todo }