Skip to content
Draft
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
@@ -0,0 +1,95 @@
{
"actions": [],
"creation": "2025-08-19 10:15:00.000000",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"reference_type",
"reference_name",
"column_break_1",
"difference_type",
"amount",
"section_break_je",
"journal_entry",
"posting_date",
"column_break_2",
"remarks"
],
"fields": [
{
"fieldname": "reference_type",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Reference Type",
"options": "Purchase Invoice\nLanded Cost Voucher\nPayment Entry",
"reqd": 1
},
{
"fieldname": "reference_name",
"fieldtype": "Dynamic Link",
"in_list_view": 1,
"label": "Reference Name",
"options": "reference_type",
"reqd": 1
},
{
"fieldname": "column_break_1",
"fieldtype": "Column Break"
},
{
"fieldname": "difference_type",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Difference Type",
"options": "Gain\nLoss",
"reqd": 1
},
{
"fieldname": "amount",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Amount",
"precision": "2",
"reqd": 1
},
{
"fieldname": "section_break_je",
"fieldtype": "Section Break",
"label": "Journal Entry Details"
},
{
"fieldname": "journal_entry",
"fieldtype": "Link",
"label": "Journal Entry",
"options": "Journal Entry",
"read_only": 1
},
{
"fieldname": "posting_date",
"fieldtype": "Date",
"label": "Posting Date",
"reqd": 1
},
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "remarks",
"fieldtype": "Text",
"label": "Remarks"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"modified": "2025-08-19 10:15:00.000000",
"modified_by": "Administrator",
"module": "Av Tools",
"name": "Foreign Import Exchange Difference Details",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025, Aakvatech and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class ForeignImportExchangeDifferenceDetails(Document):
pass
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"actions": [],
"creation": "2025-08-19 10:05:00",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"landed_cost_voucher",
"lcv_date",
"column_break_1",
"lcv_amount_foreign",
"lcv_amount_base",
"section_break_rates",
"exchange_rate_used",
"column_break_2",
"allocated_to_items",
"exchange_difference"
],
"fields": [
{
"fieldname": "landed_cost_voucher",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Landed Cost Voucher",
"options": "Landed Cost Voucher",
"reqd": 1
},
{
"fetch_from": "landed_cost_voucher.posting_date",
"fieldname": "lcv_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "LCV Date",
"read_only": 1
},
{
"fieldname": "column_break_1",
"fieldtype": "Column Break"
},
{
"fieldname": "lcv_amount_foreign",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "LCV Amount (Foreign)",
"precision": "2"
},
{
"fetch_from": "landed_cost_voucher.total_taxes_and_charges",
"fieldname": "lcv_amount_base",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "LCV Amount (Base)",
"read_only": 1
},
{
"fieldname": "section_break_rates",
"fieldtype": "Section Break"
},
{
"default": "1",
"fieldname": "exchange_rate_used",
"fieldtype": "Float",
"label": "Exchange Rate Used",
"precision": "9"
},
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "allocated_to_items",
"fieldtype": "Currency",
"label": "Allocated to Items",
"read_only": 1
},
{
"allow_on_submit": 1,
"fieldname": "exchange_difference",
"fieldtype": "Currency",
"label": "Exchange Difference",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-04-12 01:42:55.306084",
"modified_by": "mchoksi@aakvatech.com",
"module": "Av Tools",
"name": "Foreign Import LCV Details",
"owner": "Administrator",
"permissions": [],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025, Aakvatech and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class ForeignImportLCVDetails(Document):
pass
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"actions": [],
"creation": "2025-08-19 10:10:00",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"payment_entry",
"payment_date",
"column_break_1",
"payment_amount_foreign",
"payment_amount_base",
"section_break_rates",
"payment_exchange_rate",
"column_break_2",
"exchange_difference",
"journal_entry_created"
],
"fields": [
{
"fieldname": "payment_entry",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Payment Entry",
"options": "Payment Entry",
"reqd": 1
},
{
"fetch_from": "payment_entry.posting_date",
"fieldname": "payment_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Payment Date",
"read_only": 1
},
{
"fieldname": "column_break_1",
"fieldtype": "Column Break"
},
{
"fetch_from": "payment_entry.paid_amount",
"fieldname": "payment_amount_foreign",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Payment Amount (Foreign)",
"read_only": 1
},
{
"fetch_from": "payment_entry.base_paid_amount",
"fieldname": "payment_amount_base",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Payment Amount (Base)",
"read_only": 1
},
{
"fieldname": "section_break_rates",
"fieldtype": "Section Break"
},
{
"fetch_from": "payment_entry.source_exchange_rate",
"fieldname": "payment_exchange_rate",
"fieldtype": "Float",
"label": "Payment Exchange Rate",
"precision": "9",
"read_only": 1
},
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "exchange_difference",
"fieldtype": "Currency",
"label": "Exchange Difference",
"read_only": 1
},
{
"default": "0",
"fieldname": "journal_entry_created",
"fieldtype": "Check",
"label": "Journal Entry Created",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-04-12 01:42:28.494953",
"modified_by": "mchoksi@aakvatech.com",
"module": "Av Tools",
"name": "Foreign Import Payment Details",
"owner": "Administrator",
"permissions": [],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025, Aakvatech and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class ForeignImportPaymentDetails(Document):
pass
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2025, Aakvatech and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Foreign Import Settings", {
// refresh(frm) {

// },
// });
Loading
Loading