private static void CreatePRQuantityOnHandUpdateProductRequiredTotal(InventoryItemId triggerItemId, InventoryItemId outputItemId)
        {
            CreateInventoryPostingRule inventoryPostingRule_12 = new CreateInventoryPostingRule();

            inventoryPostingRule_12.InventoryPostingRuleId = InventoryPostingRuleIds.QuantityOnHandUpdateProductRequiredTotal;
            inventoryPostingRule_12.TriggerInventoryItemId = triggerItemId;
            inventoryPostingRule_12.OutputInventoryItemId  = outputItemId;
            inventoryPostingRule_12.TriggerAccountName     = ReflectUtils.GetPropertyName <IInventoryItemStateCreated>(e => e.OnHandQuantity);//"QuantityOnHand";
            inventoryPostingRule_12.OutputAccountName      = InventoryPostingRuleIds.OutputAccountNameRequiredQuantity;
            inventoryPostingRule_12.IsOutputNegated        = true;
            inventoryPostingRule_12.Active    = true;
            inventoryPostingRule_12.CommandId = Guid.NewGuid().ToString();
            inventoryPostingRuleApplicationService.When(inventoryPostingRule_12);
        }
        private static void CreatePRQuantityInTransitUpdateProductSellableTotal(InventoryItemId triggerItemId, InventoryItemId outputItemId)
        {
            CreateInventoryPostingRule inventoryPostingRule_6 = new CreateInventoryPostingRule();

            inventoryPostingRule_6.InventoryPostingRuleId = InventoryPostingRuleIds.QuantityInTransitUpdateProductSellableTotal;
            inventoryPostingRule_6.TriggerInventoryItemId = triggerItemId;
            inventoryPostingRule_6.OutputInventoryItemId  = outputItemId;
            inventoryPostingRule_6.TriggerAccountName     = ReflectUtils.GetPropertyName <IInventoryItemStateCreated>(e => e.InTransitQuantity);//"QuantityInTransit";
            inventoryPostingRule_6.OutputAccountName      = InventoryPostingRuleIds.OutputAccountNameSellableQuantity;
            inventoryPostingRule_6.IsOutputNegated        = false;
            inventoryPostingRule_6.Active    = true;
            inventoryPostingRule_6.CommandId = Guid.NewGuid().ToString();
            inventoryPostingRuleApplicationService.When(inventoryPostingRule_6);
        }