Skip to content

Instantly share code, notes, and snippets.

@abdellani
Created January 12, 2023 05:31
Show Gist options
  • Save abdellani/4ae748bd891ae99e81fa2f509c65e8cc to your computer and use it in GitHub Desktop.
Save abdellani/4ae748bd891ae99e81fa2f509c65e8cc to your computer and use it in GitHub Desktop.
api_result
{
"data": [
{
"producer": "Fred's Farm",
"product": "Garlic",
"variant": "1g",
"quantity": 20,
"total_units": "0.02",
"curr_cost_per_unit": "20.0",
"total_cost": "400.0"
},
{
"producer": "",
"product": "",
"variant": "TOTAL",
"quantity": 20,
"total_units": "0.02",
"curr_cost_per_unit": "",
"total_cost": "400.0"
},
{
"producer": "Freddy's Farm Shop",
"product": "Fuji Apple",
"variant": "1g",
"quantity": 1,
"total_units": "0.001",
"curr_cost_per_unit": "5.0",
"total_cost": "5.0"
},
{
"producer": "",
"product": "",
"variant": "TOTAL",
"quantity": 1,
"total_units": "0.001",
"curr_cost_per_unit": "",
"total_cost": "5.0"
},
{
"producer": "Fredo's Farm Hub",
"product": "Carrots",
"variant": "1g",
"quantity": 2,
"total_units": "0.002",
"curr_cost_per_unit": "3.0",
"total_cost": "6.0"
},
{
"producer": "",
"product": "",
"variant": "TOTAL",
"quantity": 2,
"total_units": "0.002",
"curr_cost_per_unit": "",
"total_cost": "6.0"
},
{
"producer": "prod2",
"product": "prod2",
"variant": "",
"quantity": 1,
"total_units": "1.0",
"curr_cost_per_unit": "10.0",
"total_cost": "10.0"
},
{
"producer": "",
"product": "",
"variant": "TOTAL",
"quantity": 1,
"total_units": "1.0",
"curr_cost_per_unit": "",
"total_cost": "10.0"
},
{
"producer": "producer 1",
"product": "product 1",
"variant": "1kg",
"quantity": 4,
"total_units": "4.0",
"curr_cost_per_unit": "100.0",
"total_cost": "400.0"
},
{
"producer": "producer 1",
"product": "product 2",
"variant": "1kg",
"quantity": 2,
"total_units": "2.0",
"curr_cost_per_unit": "10.0",
"total_cost": "20.0"
},
{
"producer": "",
"product": "",
"variant": "TOTAL",
"quantity": 6,
"total_units": "6.0",
"curr_cost_per_unit": "",
"total_cost": "420.0"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment