From 58322c271bb6f179d67cebacb4fa34bbc6d5c666 Mon Sep 17 00:00:00 2001 From: Karm Soni Date: Thu, 14 Aug 2025 12:01:45 +0530 Subject: [PATCH] refactor: remove `last_scanned_warehouse` field from python --- erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py | 1 - erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 1 - erpnext/buying/doctype/purchase_order/purchase_order.py | 1 - erpnext/selling/doctype/quotation/quotation.py | 1 - erpnext/selling/doctype/sales_order/sales_order.py | 1 - erpnext/stock/doctype/delivery_note/delivery_note.py | 1 - erpnext/stock/doctype/material_request/material_request.py | 1 - erpnext/stock/doctype/purchase_receipt/purchase_receipt.py | 1 - erpnext/stock/doctype/stock_entry/stock_entry.py | 1 - .../stock/doctype/stock_reconciliation/stock_reconciliation.py | 1 - 10 files changed, 10 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 232bb3040a5..0da88a42b91 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -139,7 +139,6 @@ class PurchaseInvoice(BuyingController): is_subcontracted: DF.Check items: DF.Table[PurchaseInvoiceItem] language: DF.Data | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None mode_of_payment: DF.Link | None named_place: DF.Data | None diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 2f10130fef0..b2c87545800 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -147,7 +147,6 @@ class SalesInvoice(SellingController): is_return: DF.Check items: DF.Table[SalesInvoiceItem] language: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None loyalty_amount: DF.Currency loyalty_points: DF.Int diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 93c3865073b..b7da5fc8945 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -107,7 +107,6 @@ class PurchaseOrder(BuyingController): is_subcontracted: DF.Check items: DF.Table[PurchaseOrderItem] language: DF.Data | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None named_place: DF.Data | None naming_series: DF.Literal["PUR-ORD-.YYYY.-"] diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 6dfd670c833..81b0867cba7 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -74,7 +74,6 @@ class Quotation(SellingController): incoterm: DF.Link | None items: DF.Table[QuotationItem] language: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None lost_reasons: DF.TableMultiSelect[QuotationLostReasonDetail] named_place: DF.Data | None diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index b69fdecfa80..b6891930e42 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -122,7 +122,6 @@ class SalesOrder(SellingController): is_internal_customer: DF.Check items: DF.Table[SalesOrderItem] language: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None loyalty_amount: DF.Currency loyalty_points: DF.Int diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.py b/erpnext/stock/doctype/delivery_note/delivery_note.py index e84c06c0190..ae2c9dae53f 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.py +++ b/erpnext/stock/doctype/delivery_note/delivery_note.py @@ -87,7 +87,6 @@ class DeliveryNote(SellingController): issue_credit_note: DF.Check items: DF.Table[DeliveryNoteItem] language: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None lr_date: DF.Date | None lr_no: DF.Data | None diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py index 1e9801059a6..a67d44b3860 100644 --- a/erpnext/stock/doctype/material_request/material_request.py +++ b/erpnext/stock/doctype/material_request/material_request.py @@ -43,7 +43,6 @@ class MaterialRequest(BuyingController): customer: DF.Link | None items: DF.Table[MaterialRequestItem] job_card: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None material_request_type: DF.Literal[ "Purchase", diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index ac83eede043..c38d3aa17f0 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py @@ -87,7 +87,6 @@ class PurchaseReceipt(BuyingController): is_subcontracted: DF.Check items: DF.Table[PurchaseReceiptItem] language: DF.Data | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None lr_date: DF.Date | None lr_no: DF.Data | None diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 3899799de1b..3602ee8997a 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -114,7 +114,6 @@ class StockEntry(StockController): is_return: DF.Check items: DF.Table[StockEntryDetail] job_card: DF.Link | None - last_scanned_warehouse: DF.Link | None letter_head: DF.Link | None naming_series: DF.Literal["MAT-STE-.YYYY.-"] outgoing_stock_entry: DF.Link | None diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 165d403d661..5f5501ac33e 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -46,7 +46,6 @@ class StockReconciliation(StockController): difference_amount: DF.Currency expense_account: DF.Link | None items: DF.Table[StockReconciliationItem] - last_scanned_warehouse: DF.Link | None naming_series: DF.Literal["MAT-RECO-.YYYY.-"] posting_date: DF.Date posting_time: DF.Time