Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions rmax_custom/fixtures/property_setter.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,52 @@
[
{
"default_value": null,
"doc_type": "Material Request",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "schedule_date",
"is_system_generated": 1,
"modified": "2026-04-08 16:11:03.871048",
"module": null,
"name": "Material Request-schedule_date-hidden",
"property": "hidden",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Material Request Item",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "schedule_date",
"is_system_generated": 0,
"modified": "2026-04-08 16:40:09.908497",
"module": null,
"name": "Material Request Item-schedule_date-hidden",
"property": "hidden",
"property_type": "Check ",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Material Request Item",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "schedule_date",
"is_system_generated": 0,
"modified": "2026-04-08 16:37:25.071648",
"module": null,
"name": "Material Request Item-schedule_date-default",
"property": "default",
"property_type": "Date ",
"row_name": null,
"value": "Today"
},
{
"default_value": null,
"doc_type": "Material Request Item",
Expand Down
32 changes: 4 additions & 28 deletions rmax_custom/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,32 +301,6 @@
]
]
},
{
"dt": "Custom Field",
"filters": [
[
"name",
"in",
[
# Sales Invoice
"Sales Invoice-custom_payment_mode",
"Sales Invoice-custom_inter_company_branch",

# Sales Invoice Item
"Sales Invoice Item-total_vat_linewise",


# Quotation
"Quotation-custom_payment_mode",

# Quotation Item
"Quotation Item-total_vat_linewise",


]
]
]
},
{
"dt": "Property Setter",
"filters": [
Expand All @@ -336,8 +310,10 @@
[
"Material Request Item-warehouse-hidden",
"Material Request Item-from_warehouse-hidden",
"Material Request Item-schedule_date-reqd"

"Material Request Item-schedule_date-reqd",
"Material Request Item-schedule_date-hidden",
"Material Request Item-schedule_date-default",
"Material Request-schedule_date-hidden"
]
]
]
Expand Down
13 changes: 12 additions & 1 deletion rmax_custom/rmax_custom/doctype/stock_transfer/stock_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ frappe.ui.form.on('Stock Transfer', {
}
frm.set_query('set_source_warehouse', function() {
return {
ignore_user_permissions: 1
ignore_user_permissions: 1,
filters: {
company: frm.doc.company
}
};
});
frm.set_query('set_target_warehouse', function() {
return {
ignore_user_permissions: 1,
filters: {
company: frm.doc.company
}
};
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def create_stock_entry(self):
se = frappe.new_doc("Stock Entry")
se.stock_entry_type = "Material Transfer"
se.from_warehouse = self.set_source_warehouse
se.company = self.company
se.to_warehouse = self.set_target_warehouse
se.remarks = f"Created from Stock Transfer: {self.name}"
for item in self.items:
if item.item_code:
Expand Down
Loading