|
id
|
bigint(20) unsigned
|
|
|
|
|
voucher_number
|
varchar(50)
|
|
|
|
|
voucher_type_id
|
bigint(20)
|
|
|
0
|
|
entry_mode
|
enum
|
-- |
|
|
|
entry_status
|
enum
|
-- |
|
DRAFT
|
|
source_sales_id
|
int(11)
|
|
|
|
|
source_proforma_id
|
int(11)
|
|
|
|
|
source_quotation_id
|
int(10) unsigned
|
|
|
|
|
source_delivery_note_id
|
int(10)
|
|
|
|
|
source_sales_order_id
|
int(11)
|
|
|
|
|
source_subsidy_id
|
int(11)
|
|
|
|
|
proforma_status_deleted
|
enum
|
-- |
|
N
|
|
quotation_moved_status_deleted
|
varchar(20)
|
|
|
|
|
delivery_note_type
|
enum
|
-- |
|
|
|
sales_channel
|
varchar(50)
|
|
|
|
|
sales_person_id
|
int(10) unsigned
|
|
|
|
|
voucher_date
|
date
|
|
|
|
|
confirm_decline_date
|
date
|
|
|
|
|
voucher_time
|
time
|
|
|
|
|
due_date
|
date
|
|
|
|
|
ledger_id
|
int(10) unsigned
|
|
|
|
|
order_no
|
varchar(50)
|
|
|
|
|
party_cat_id
|
int(11)
|
|
|
0
|
|
invoice_amount
|
decimal(12,2) unsigned
|
|
|
|
|
price
|
decimal(10,2)
|
|
|
0.00
|
|
subsidy_scheme_id
|
tinyint(4)
|
|
|
|
|
subsidy_scheme_discount
|
decimal(10,2)
|
|
|
0.00
|
|
pri_discount
|
decimal(10,2)
|
|
|
0.00
|
|
proportionate_discount
|
decimal(10,2)
|
|
|
0.00
|
|
additional_discount
|
decimal(10,2)
|
|
|
0.00
|
|
total_discount
|
decimal(10,2)
|
|
|
|
|
discount_coupon_code
|
varchar(50)
|
|
|
|
|
applied_discount_category
|
enum
|
-- |
|
|
|
applied_discount_category_id
|
int(11)
|
|
|
|
|
subsidy_diff_amt
|
decimal(12,2)
|
|
|
|
|
item_tax_amout
|
decimal(10,2)
|
|
|
0.00
|
|
add_charges_fixed_tax_amount
|
decimal(10,2)
|
|
|
0.00
|
|
add_charges_proportionate_tax_amount
|
decimal(10,2)
|
|
|
0.00
|
|
total_tax_amount
|
decimal(10,2)
|
|
|
0.00
|
|
tds_amount
|
decimal(10,2)
|
|
|
0.00
|
|
freight_charges
|
decimal(10,2)
|
|
|
0.00
|
|
add_charges
|
decimal(10,2)
|
|
|
0.00
|
|
sgst_amount
|
decimal(10,2)
|
|
|
0.00
|
|
cgst_amount
|
decimal(10,2)
|
|
|
0.00
|
|
igst_amount
|
decimal(10,2)
|
|
|
0.00
|
|
cess_amount
|
decimal(10,2)
|
|
|
0.00
|
|
payment_status
|
enum
|
-- |
|
Pending
|
|
narration
|
text
|
|
|
|
|
additional_discount_remarks
|
longtext
|
|
|
|
|
discount_details
|
longtext
|
|
|
|
|
receiver_name
|
varchar(100)
|
|
|
|
|
receiver_contact_number
|
varchar(20)
|
|
|
|
|
branch_id
|
int(11)
|
|
|
|
|
user_id
|
bigint(20) unsigned
|
|
|
|
|
modified_user_id
|
bigint(20) unsigned
|
|
|
|
|
finance_year_id
|
bigint(20) unsigned
|
|
|
|
|
delete_status
|
tinyint(1)
|
|
|
0
|
|
is_cancelled
|
enum
|
-- |
|
N
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|
|
updated_at
|
datetime
|
|
|
|
|
round_off
|
decimal(12,2)
|
|
|
|
|
einvoice_status
|
enum
|
-- |
|
PENDING
|
|
ewaybill_status
|
enum
|
-- |
|
PENDING
|
|
posting_status
|
enum
|
-- |
|
Pending
|
|
decline_reason
|
longtext
|
|
|
|
|
confirm_reason
|
longtext
|
|
|
|