Skip to content

Commit

Permalink
feat: Updated stock/models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Apr 18, 2024
1 parent e55c6c3 commit 5ca8d56
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions stock/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
from django.db import models

class StockListModel(models.Model):
"""
Represents a list of stock items in the inventory.
Fields:
- goods_code: Unique code for the goods.
- goods_desc: Description of the goods.
- goods_qty: Total quantity of goods available.
- onhand_stock: Quantity of stock available on hand.
- can_order_stock: Quantity of stock that can be ordered.
- ordered_stock: Quantity of stock that has been ordered.
- inspect_stock: Quantity of stock under inspection.
- hold_stock: Quantity of stock on hold.
"""
goods_code = models.CharField(max_length=255, verbose_name="Goods Code")
goods_desc = models.CharField(max_length=255, verbose_name="Goods Description")
goods_qty = models.BigIntegerField(default=0, verbose_name="Total Qty")
Expand Down Expand Up @@ -30,6 +43,23 @@ class Meta:
ordering = ['-id']

class StockBinModel(models.Model):
"""
Represents a bin within the stock inventory, containing specific goods.
Fields:
- bin_name: Name of the bin.
- goods_code: Unique code for the goods stored in the bin.
- goods_desc: Description of the goods in the bin.
- goods_qty: Total quantity of goods in the bin.
- pick_qty: Quantity of goods picked from the bin.
- picked_qty: Quantity of goods that have been picked from the bin.
- bin_size: Size of the bin.
- bin_property: Property of the bin (e.g., Damage, Inspection, Holding).
- t_code: Transaction code associated with the bin.
- openid: Identifier for the user associated with the bin.
- create_time: Time when the bin was created.
- update_time: Last time the bin was updated.
"""
bin_name = models.CharField(max_length=255, verbose_name="Bin Name")
goods_code = models.CharField(max_length=255, verbose_name="Goods Code")
goods_desc = models.CharField(max_length=255, verbose_name="Goods Description")
Expand Down

0 comments on commit 5ca8d56

Please sign in to comment.