/*****Sales Posting*******/

Invoice
=======
id
invoice_no
invoice_date
customer_id
currency
exchange_rate
lead_owner_id//id of user
project_id
sales_group
payment_terms
grand_total
total_tax_amount
total_discount
round_off_amount
posted
tax_type
is_direct_invoice
order_id
delivery_ids

InvoiceItem
===========
net_amount
cost_rate
quantity
product_id
description
tax_vat_amount
deduction_percentage
deduction_amount

User
====
connected_employee_id
branch_id
company_id

Employee
========
department

PurchaseInvoice
=======
id
invoice_no
invoice_date
customer_id
currency
exchange_rate
crm_user_id//id of user
project_id
invoice_type
////sales_group
payment_terms
grand_total
total_tax_amount
total_discount
round_off_amount
posted
is_direct_invoice
tax_type



PurchasingInvoiceItem
===========================
purchasing_invoice_id
unit
tax_amount
net_amount
deduction_percentage
deduction_amount

-------------------added by indhu 22-12-2022-----------------------------------
----------------------------------------Credit Note----------------------------------------------------------------

Creditnote
===========================
id
file_id
invoice_id
customer_id
project_id
credited_amount
total_tax_amount
currency
exchange_rate
credited_date
tax_type

CreditnoteItem
===========================
creditnote_id
product_id
unit
quantity
rate
tax_vat_amount
net_amount

----------------------------------------Debit Note----------------------------------------------------------------

Purchasingdebitnote
===========================
id
file_id
purchasing_invoice_id
crm_user_id
vendor_id
debited_amount
total_tax_amount
currency
exchange_rate
debited_date
tax_type

PurchasingdebitnoteItem
===========================
purchasing_debitnote_id
product_id
unit
purchased_quantity
rate
tax_vat_amount
net_amount
----------------------------------------Goods Issue----------------------------------------------------------------

InventoryGoodsIssue
===========================
id
file_id
project_id
goods_issue_date
reference
customer_id

InventoryGoodsIssueItem
===========================
inventory_goods_issue_id
product_id
picked_qty
rate
----------------------------------------Goods Receipt----------------------------------------------------------------
InventoryGoodsReceipt
===========================
id
file_id
project_id
goods_receipt_date
reference
customer_id


InventoryGoodsReceiptItem
===========================
inventory_goods_receipt_id
product_id
picked_qty
rate
