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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"column_break_rdjj",
"amount",
"note",
"cost_center",
"attatchment",
"section_break_m8ry",
"payment_entry",
Expand All @@ -28,7 +29,7 @@
"fieldname": "posting_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Posting Date",
"label": "Date",
"reqd": 1
},
{
Expand All @@ -48,7 +49,7 @@
"fieldname": "note",
"fieldtype": "Small Text",
"in_list_view": 1,
"label": "Note",
"label": "Remarks",
"reqd": 1
},
{
Expand All @@ -61,7 +62,7 @@
"depends_on": "eval:doc.paid_type==\"Other\"",
"fieldname": "paid_name",
"fieldtype": "Data",
"label": "Paid Name",
"label": "Paid To",
"mandatory_depends_on": "eval:doc.paid_type==\"Other\""
},
{
Expand Down Expand Up @@ -94,7 +95,7 @@
"allow_in_quick_entry": 1,
"fieldname": "paid_type",
"fieldtype": "Select",
"label": "Paid Type",
"label": "Party Type",
"options": "\nCustomer\nEmployee\nSupplier\nOther",
"reqd": 1
},
Expand All @@ -106,13 +107,19 @@
"label": "Paid To",
"mandatory_depends_on": "eval:doc.paid_type!=\"Other\"",
"options": "paid_type"
},
{
"fieldname": "cost_center",
"fieldtype": "Link",
"label": "Cost Center",
"options": "Cost Center"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2026-01-28 13:08:44.577022",
"modified": "2026-01-28 14:04:14.217998",
"modified_by": "Administrator",
"module": "Calicut Textiles",
"name": "Daliy Cash Entry",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_payment_entry(daliy_cash_entry):
"paid_amount": doc.amount,
"source_exchange_rate": 1,
"target_exchange_rate": 1,
"cost_center": frappe.db.get_value("Company", company, "cost_center"),
"cost_center": doc.cost_center if doc.cost_center else frappe.db.get_value("Company", company, "cost_center"),
"remarks": doc.note
})
payment_entry.insert()
Expand All @@ -61,13 +61,13 @@ def create_journal_entry(daliy_cash_entry):
"account": frappe.db.get_value("Company", company, "default_cash_account"),
"debit_in_account_currency": doc.amount,
"debit": doc.amount,
"cost_center": frappe.db.get_value("Company", company, "cost_center"),
"cost_center": doc.cost_center if doc.cost_center else frappe.db.get_value("Company", company, "cost_center"),
},
{
"account": frappe.db.get_value("Company", company, "default_expense_account"),
"credit_in_account_currency": doc.amount,
"credit": doc.amount,
"cost_center": frappe.db.get_value("Company", company, "cost_center"),
"cost_center": doc.cost_center if doc.cost_center else frappe.db.get_value("Company", company, "cost_center"),
}
]
})
Expand Down
Loading
Loading