mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
Merge pull request #50153 from KerollesFathy/fix-address-error-when-create-transporter
fix: Address title error when create new transporter on driver
(cherry picked from commit 8efcf6cb38)
This commit is contained in:
@@ -24,6 +24,7 @@ frappe.ui.form.on("Driver", {
|
|||||||
|
|
||||||
transporter: function (frm, cdt, cdn) {
|
transporter: function (frm, cdt, cdn) {
|
||||||
// this assumes that supplier's address has same title as supplier's name
|
// this assumes that supplier's address has same title as supplier's name
|
||||||
|
if (!frm.doc.transporter) return;
|
||||||
frappe.db
|
frappe.db
|
||||||
.get_doc("Address", null, { address_title: frm.doc.transporter })
|
.get_doc("Address", null, { address_title: frm.doc.transporter })
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user