mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
refactor: remove Posting Date and Posting Time columns from SRE
This commit is contained in:
@@ -10,8 +10,6 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"item_code",
|
"item_code",
|
||||||
"warehouse",
|
"warehouse",
|
||||||
"posting_date",
|
|
||||||
"posting_time",
|
|
||||||
"column_break_elik",
|
"column_break_elik",
|
||||||
"voucher_type",
|
"voucher_type",
|
||||||
"voucher_no",
|
"voucher_no",
|
||||||
@@ -61,29 +59,6 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"width": "100px"
|
"width": "100px"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "posting_date",
|
|
||||||
"fieldtype": "Date",
|
|
||||||
"in_filter": 1,
|
|
||||||
"in_list_view": 1,
|
|
||||||
"label": "Posting Date",
|
|
||||||
"oldfieldname": "posting_date",
|
|
||||||
"oldfieldtype": "Date",
|
|
||||||
"print_width": "100px",
|
|
||||||
"read_only": 1,
|
|
||||||
"search_index": 1,
|
|
||||||
"width": "100px"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "posting_time",
|
|
||||||
"fieldtype": "Time",
|
|
||||||
"label": "Posting Time",
|
|
||||||
"oldfieldname": "posting_time",
|
|
||||||
"oldfieldtype": "Time",
|
|
||||||
"print_width": "100px",
|
|
||||||
"read_only": 1,
|
|
||||||
"width": "100px"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "voucher_type",
|
"fieldname": "voucher_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
@@ -231,7 +206,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-03-29 18:24:18.332719",
|
"modified": "2023-03-29 18:36:26.752872",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Reservation Entry",
|
"name": "Stock Reservation Entry",
|
||||||
|
|||||||
@@ -3,16 +3,14 @@
|
|||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
|
from frappe.model.document import Document
|
||||||
from frappe.query_builder.functions import Sum
|
from frappe.query_builder.functions import Sum
|
||||||
|
|
||||||
from erpnext.utilities.transaction_base import TransactionBase
|
|
||||||
|
|
||||||
|
class StockReservationEntry(Document):
|
||||||
class StockReservationEntry(TransactionBase):
|
|
||||||
def validate(self) -> None:
|
def validate(self) -> None:
|
||||||
from erpnext.stock.utils import validate_disabled_warehouse, validate_warehouse_company
|
from erpnext.stock.utils import validate_disabled_warehouse, validate_warehouse_company
|
||||||
|
|
||||||
self.validate_posting_time()
|
|
||||||
self.validate_mandatory()
|
self.validate_mandatory()
|
||||||
validate_disabled_warehouse(self.warehouse)
|
validate_disabled_warehouse(self.warehouse)
|
||||||
validate_warehouse_company(self.warehouse, self.company)
|
validate_warehouse_company(self.warehouse, self.company)
|
||||||
@@ -29,8 +27,6 @@ class StockReservationEntry(TransactionBase):
|
|||||||
mandatory = [
|
mandatory = [
|
||||||
"item_code",
|
"item_code",
|
||||||
"warehouse",
|
"warehouse",
|
||||||
"posting_date",
|
|
||||||
"posting_time",
|
|
||||||
"voucher_type",
|
"voucher_type",
|
||||||
"voucher_no",
|
"voucher_no",
|
||||||
"voucher_detail_no",
|
"voucher_detail_no",
|
||||||
|
|||||||
Reference in New Issue
Block a user