Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add InventorySupplyTree #57

Merged
merged 2 commits into from
Oct 17, 2023
Merged

add InventorySupplyTree #57

merged 2 commits into from
Oct 17, 2023

Conversation

devhawk
Copy link
Collaborator

@devhawk devhawk commented Sep 5, 2023

Fixes #54

@devhawk
Copy link
Collaborator Author

devhawk commented Sep 5, 2023

Example Output:

[
    {
        "product": {
            "id": "Q16682389",
            "desc": "Oatmeal raisin cookie"
        },
        "type": "made",
        "party": "Rob's Dessert Kitchen",
        "design": "Vanishing Oatmeal Raisin Cookies",
        "bom": [
            {
                "product": {
                    "id": "Q1208221",
                    "desc": "rolled oats"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q93189",
                    "desc": "egg"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q117208399",
                    "desc": "Shipping supply"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q28165",
                    "desc": "cinnamon"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q11190742",
                    "desc": "brown sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q117207909",
                    "desc": "food storage bag"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q4409456",
                    "desc": "white sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q34172",
                    "desc": "butter"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q95388739",
                    "desc": "all-purpose flour"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q10749869",
                    "desc": "vanilla extract"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q13186",
                    "desc": "raisin"
                },
                "type": "inventory"
            }
        ]
    },
    {
        "product": {
            "id": "Q16682389",
            "desc": "Oatmeal raisin cookie"
        },
        "type": "made",
        "party": "Tim's Tasty Treats Kitchen",
        "design": "Vanishing Oatmeal Raisin Cookies",
        "bom": [
            {
                "product": {
                    "id": "Q93189",
                    "desc": "egg"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q11190742",
                    "desc": "brown sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q13186",
                    "desc": "raisin"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q117207909",
                    "desc": "food storage bag"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q4409456",
                    "desc": "white sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q1208221",
                    "desc": "rolled oats"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q34172",
                    "desc": "butter"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q95388739",
                    "desc": "all-purpose flour"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q28165",
                    "desc": "cinnamon"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q10749869",
                    "desc": "vanilla extract"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q117208399",
                    "desc": "Shipping supply"
                },
                "type": "inventory"
            }
        ]
    },
    {
        "product": {
            "id": "Q16682389",
            "desc": "Oatmeal raisin cookie"
        },
        "type": "made",
        "party": "James Kitchen",
        "design": "Vanishing Oatmeal Raisin Cookies",
        "bom": [
            {
                "product": {
                    "id": "Q93189",
                    "desc": "egg"
                },
                "type": "supplied",
                "party": "Generic Grocery"
            },
            {
                "product": {
                    "id": "Q11190742",
                    "desc": "brown sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q117207909",
                    "desc": "food storage bag"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q4409456",
                    "desc": "white sugar"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q34172",
                    "desc": "butter"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q95388739",
                    "desc": "all-purpose flour"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q13186",
                    "desc": "raisin"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q10749869",
                    "desc": "vanilla extract"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q117208399",
                    "desc": "Shipping supply"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q28165",
                    "desc": "cinnamon"
                },
                "type": "inventory"
            },
            {
                "product": {
                    "id": "Q1208221",
                    "desc": "rolled oats"
                },
                "type": "inventory"
            }
        ]
    }
]

@devhawk devhawk merged commit 83591fa into main Oct 17, 2023
3 checks passed
@devhawk devhawk deleted the devhawk/issue54 branch October 17, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need inventory supply tree type
1 participant