mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
feat(Customer): add table Supplier Numbers
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
"language",
|
"language",
|
||||||
"column_break_45",
|
"column_break_45",
|
||||||
"customer_details",
|
"customer_details",
|
||||||
|
"supplier_numbers",
|
||||||
"dashboard_tab",
|
"dashboard_tab",
|
||||||
"contact_and_address_tab",
|
"contact_and_address_tab",
|
||||||
"address_contacts",
|
"address_contacts",
|
||||||
@@ -597,6 +598,13 @@
|
|||||||
"fieldtype": "Read Only",
|
"fieldtype": "Read Only",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"label": "Last Name"
|
"label": "Last Name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Supplier numbers assigned by the customer",
|
||||||
|
"fieldname": "supplier_numbers",
|
||||||
|
"fieldtype": "Table",
|
||||||
|
"label": "Supplier Numbers",
|
||||||
|
"options": "Supplier Number At Customer"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icon": "fa fa-user",
|
"icon": "fa fa-user",
|
||||||
@@ -610,7 +618,7 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2025-03-05 10:01:47.885574",
|
"modified": "2025-04-27 12:01:29.549008",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Customer",
|
"name": "Customer",
|
||||||
@@ -696,4 +704,4 @@
|
|||||||
"states": [],
|
"states": [],
|
||||||
"title_field": "customer_name",
|
"title_field": "customer_name",
|
||||||
"track_changes": 1
|
"track_changes": 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,10 +35,11 @@ class Customer(TransactionBase):
|
|||||||
AllowedToTransactWith,
|
AllowedToTransactWith,
|
||||||
)
|
)
|
||||||
from erpnext.accounts.doctype.party_account.party_account import PartyAccount
|
from erpnext.accounts.doctype.party_account.party_account import PartyAccount
|
||||||
from erpnext.selling.doctype.customer_credit_limit.customer_credit_limit import (
|
from erpnext.selling.doctype.customer_credit_limit.customer_credit_limit import CustomerCreditLimit
|
||||||
CustomerCreditLimit,
|
|
||||||
)
|
|
||||||
from erpnext.selling.doctype.sales_team.sales_team import SalesTeam
|
from erpnext.selling.doctype.sales_team.sales_team import SalesTeam
|
||||||
|
from erpnext.selling.doctype.supplier_number_at_customer.supplier_number_at_customer import (
|
||||||
|
SupplierNumberAtCustomer,
|
||||||
|
)
|
||||||
from erpnext.utilities.doctype.portal_user.portal_user import PortalUser
|
from erpnext.utilities.doctype.portal_user.portal_user import PortalUser
|
||||||
|
|
||||||
account_manager: DF.Link | None
|
account_manager: DF.Link | None
|
||||||
@@ -83,6 +84,7 @@ class Customer(TransactionBase):
|
|||||||
sales_team: DF.Table[SalesTeam]
|
sales_team: DF.Table[SalesTeam]
|
||||||
salutation: DF.Link | None
|
salutation: DF.Link | None
|
||||||
so_required: DF.Check
|
so_required: DF.Check
|
||||||
|
supplier_numbers: DF.Table[SupplierNumberAtCustomer]
|
||||||
tax_category: DF.Link | None
|
tax_category: DF.Link | None
|
||||||
tax_id: DF.Data | None
|
tax_id: DF.Data | None
|
||||||
tax_withholding_category: DF.Link | None
|
tax_withholding_category: DF.Link | None
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"actions": [],
|
||||||
|
"allow_rename": 1,
|
||||||
|
"creation": "2025-04-27 11:59:08.238924",
|
||||||
|
"doctype": "DocType",
|
||||||
|
"editable_grid": 1,
|
||||||
|
"engine": "InnoDB",
|
||||||
|
"field_order": [
|
||||||
|
"company",
|
||||||
|
"supplier_number"
|
||||||
|
],
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"fieldname": "company",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"in_list_view": 1,
|
||||||
|
"label": "Company",
|
||||||
|
"options": "Company"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "supplier_number",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"in_list_view": 1,
|
||||||
|
"label": "Supplier Number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grid_page_length": 50,
|
||||||
|
"index_web_pages_for_search": 1,
|
||||||
|
"istable": 1,
|
||||||
|
"links": [],
|
||||||
|
"modified": "2025-04-27 12:00:04.890068",
|
||||||
|
"modified_by": "Administrator",
|
||||||
|
"module": "Selling",
|
||||||
|
"name": "Supplier Number At Customer",
|
||||||
|
"owner": "Administrator",
|
||||||
|
"permissions": [],
|
||||||
|
"row_format": "Dynamic",
|
||||||
|
"sort_field": "creation",
|
||||||
|
"sort_order": "DESC",
|
||||||
|
"states": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
|
||||||
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
# import frappe
|
||||||
|
from frappe.model.document import Document
|
||||||
|
|
||||||
|
|
||||||
|
class SupplierNumberAtCustomer(Document):
|
||||||
|
# begin: auto-generated types
|
||||||
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from frappe.types import DF
|
||||||
|
|
||||||
|
company: DF.Link | None
|
||||||
|
parent: DF.Data
|
||||||
|
parentfield: DF.Data
|
||||||
|
parenttype: DF.Data
|
||||||
|
supplier_number: DF.Data | None
|
||||||
|
# end: auto-generated types
|
||||||
|
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user