Merge pull request #53086 from frappe/mergify/bp/version-16-hotfix/pr-53072

fix(accounts): set posting time to get incoming rate (backport #53072)
This commit is contained in:
rohitwaghchaure
2026-03-02 21:58:09 +05:30
committed by GitHub
5 changed files with 23 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
"order_confirmation_date",
"column_break_7",
"transaction_date",
"transaction_time",
"schedule_date",
"column_break1",
"company",
@@ -1311,6 +1312,14 @@
{
"fieldname": "section_break_tnkm",
"fieldtype": "Section Break"
},
{
"default": "Now",
"depends_on": "is_internal_supplier",
"fieldname": "transaction_time",
"fieldtype": "Time",
"label": "Time",
"mandatory_depends_on": "is_internal_supplier"
}
],
"grid_page_length": 50,
@@ -1318,7 +1327,7 @@
"idx": 105,
"is_submittable": 1,
"links": [],
"modified": "2026-02-23 14:22:33.323946",
"modified": "2026-03-02 00:40:47.119584",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order",

View File

@@ -166,6 +166,7 @@ class PurchaseOrder(BuyingController):
total_qty: DF.Float
total_taxes_and_charges: DF.Currency
transaction_date: DF.Date
transaction_time: DF.Time | None
# end: auto-generated types
def __init__(self, *args, **kwargs):

View File

@@ -18,6 +18,7 @@
"column_break_7",
"order_type",
"transaction_date",
"transaction_time",
"delivery_date",
"column_break1",
"tax_id",
@@ -1724,6 +1725,14 @@
"fieldname": "utm_analytics_section",
"fieldtype": "Section Break",
"label": "UTM Analytics"
},
{
"default": "Now",
"depends_on": "is_internal_customer",
"fieldname": "transaction_time",
"fieldtype": "Time",
"label": "Time",
"mandatory_depends_on": "is_internal_customer"
}
],
"grid_page_length": 50,
@@ -1731,7 +1740,7 @@
"idx": 105,
"is_submittable": 1,
"links": [],
"modified": "2026-02-10 11:55:52.796522",
"modified": "2026-03-02 00:42:18.834823",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",

View File

@@ -186,6 +186,7 @@ class SalesOrder(SellingController):
total_qty: DF.Float
total_taxes_and_charges: DF.Currency
transaction_date: DF.Date
transaction_time: DF.Time | None
utm_campaign: DF.Link | None
utm_content: DF.Data | None
utm_medium: DF.Link | None

View File

@@ -341,6 +341,7 @@ class TransactionBase(StatusUpdater):
args.update(
{
"posting_date": self.transaction_date,
"posting_time": self.transaction_time,
}
)
else: