feat: available qty at company in sales transactions

This commit is contained in:
Rohit Waghchaure
2024-11-21 15:45:32 +05:30
parent cc571aca8f
commit d8b9aef14f
9 changed files with 112 additions and 16 deletions

View File

@@ -24,6 +24,10 @@
"uom",
"conversion_factor",
"stock_qty",
"available_quantity_section",
"actual_qty",
"column_break_ylrv",
"company_total_stock",
"section_break_16",
"price_list_rate",
"base_price_list_rate",
@@ -71,7 +75,6 @@
"prevdoc_docname",
"item_balance",
"projected_qty",
"actual_qty",
"col_break4",
"stock_balance",
"item_tax_rate",
@@ -461,9 +464,10 @@
"report_hide": 1
},
{
"allow_on_submit": 1,
"fieldname": "actual_qty",
"fieldtype": "Float",
"label": "Actual Qty",
"label": "Qty (Warehouse)",
"no_copy": 1,
"print_hide": 1,
"read_only": 1,
@@ -669,12 +673,31 @@
"fieldtype": "Currency",
"label": "Distributed Discount Amount",
"options": "currency"
},
{
"fieldname": "available_quantity_section",
"fieldtype": "Section Break",
"label": "Available Quantity"
},
{
"fieldname": "column_break_ylrv",
"fieldtype": "Column Break"
},
{
"allow_on_submit": 1,
"fieldname": "company_total_stock",
"fieldtype": "Float",
"label": "Qty (Company)",
"no_copy": 1,
"print_hide": 1,
"read_only": 1,
"report_hide": 1
}
],
"idx": 1,
"istable": 1,
"links": [],
"modified": "2024-06-02 06:21:09.508680",
"modified": "2024-11-24 14:18:43.952844",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation Item",

View File

@@ -27,6 +27,7 @@ class QuotationItem(Document):
blanket_order: DF.Link | None
blanket_order_rate: DF.Currency
brand: DF.Link | None
company_total_stock: DF.Float
conversion_factor: DF.Float
customer_item_code: DF.Data | None
description: DF.TextEditor | None

View File

@@ -79,11 +79,14 @@
"against_blanket_order",
"blanket_order",
"blanket_order_rate",
"available_quantity_section",
"actual_qty",
"column_break_jpky",
"company_total_stock",
"manufacturing_section_section",
"bom_no",
"planning_section",
"projected_qty",
"actual_qty",
"ordered_qty",
"planned_qty",
"production_plan_qty",
@@ -637,7 +640,7 @@
"allow_on_submit": 1,
"fieldname": "actual_qty",
"fieldtype": "Float",
"label": "Actual Qty",
"label": "Qty (Warehouse)",
"no_copy": 1,
"print_hide": 1,
"print_width": "70px",
@@ -912,12 +915,30 @@
"fieldtype": "Currency",
"label": "Distributed Discount Amount",
"options": "currency"
},
{
"allow_on_submit": 1,
"fieldname": "company_total_stock",
"fieldtype": "Float",
"label": "Qty (Company)",
"no_copy": 1,
"print_hide": 1,
"read_only": 1
},
{
"fieldname": "column_break_jpky",
"fieldtype": "Column Break"
},
{
"fieldname": "available_quantity_section",
"fieldtype": "Section Break",
"label": "Available Quantity"
}
],
"idx": 1,
"istable": 1,
"links": [],
"modified": "2024-06-02 06:13:40.597947",
"modified": "2024-11-21 13:21:29.743474",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order Item",

View File

@@ -30,6 +30,7 @@ class SalesOrderItem(Document):
blanket_order_rate: DF.Currency
bom_no: DF.Link | None
brand: DF.Link | None
company_total_stock: DF.Float
conversion_factor: DF.Float
customer_item_code: DF.Data | None
delivered_by_supplier: DF.Check