|
id
|
int(10) unsigned
|
|
|
|
|
company_id
|
int(10) unsigned
|
|
|
0
|
|
branch_id
|
int(10) unsigned
|
|
|
0
|
|
reorder_run_id
|
int(10) unsigned
|
|
|
0
|
|
reorder_item_id
|
int(10) unsigned
|
|
|
0
|
|
item_id
|
int(10) unsigned
|
|
|
0
|
|
vendor_ledger_id
|
int(10) unsigned
|
|
|
0
|
|
required_qty
|
decimal(15,3)
|
|
|
0.000
|
|
allocated_qty
|
decimal(15,3)
|
|
|
0.000
|
|
rate
|
decimal(15,4)
|
|
|
0.0000
|
|
discount_percent
|
decimal(8,3)
|
|
|
0.000
|
|
tax_percent
|
decimal(8,3)
|
|
|
0.000
|
|
base_amount
|
decimal(15,2)
|
|
|
0.00
|
|
discount_amount
|
decimal(15,2)
|
|
|
0.00
|
|
tax_amount
|
decimal(15,2)
|
|
|
0.00
|
|
net_amount
|
decimal(15,2)
|
|
|
0.00
|
|
allocation_type
|
enum
|
-- |
|
auto
|
|
allocation_reason
|
varchar(255)
|
|
|
|
|
priority_rank
|
int(10) unsigned
|
|
|
0
|
|
source_rate_id
|
int(10) unsigned
|
|
|
0
|
|
source_mapping_id
|
int(10) unsigned
|
|
|
0
|
|
po_created_status
|
tinyint(1)
|
|
|
0
|
|
purchase_order_id
|
int(10) unsigned
|
|
|
0
|
|
status
|
enum
|
-- |
|
allocated
|
|
is_active
|
tinyint(1)
|
|
|
1
|
|
delete_status
|
tinyint(1)
|
|
|
0
|
|
created_by
|
int(10) unsigned
|
|
|
0
|
|
updated_by
|
int(10) unsigned
|
|
|
0
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|
|
updated_at
|
datetime
|
|
|
|