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

[UPDATE] Include stock_detail_id in GetStockDetail #48

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

jedipw
Copy link
Member

@jedipw jedipw commented Sep 30, 2024

Request URL

http://localhost:8000/api/stock/getStockDetail?recipe_id=1

Response body

{
  "status": 200,
  "message": "Success",
  "data": {
    "stock_name": "Cake1",
    "stock_url": null,
    "quantity": 1,
    "lst": 10,
    "selling_price": 100,
    "stock_less_than": 3,
    "stock_details": [
      {
        "stock_detail_id": "1",
        "created_at": "2024-09-30T15:34:48Z",
        "lst_status": "red",
        "quantity": 1,
        "sell_by_date": "30/09/2024"
      }
    ]
  }
}

@jedipw jedipw self-assigned this Sep 30, 2024
@jedipw jedipw changed the title [UPDATE] schema.prisma to include stock_detail_id [UPDATE] Include stock_detail_id in GetStockDetail Sep 30, 2024
@KNattawat89 KNattawat89 merged commit f64ab0c into main Oct 2, 2024
1 check passed
@jedipw jedipw deleted the return_stock_detail_id branch October 5, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants