Can someone help me with the script for setting default value for default warehouse, based on customer entered.
Basically I have a mutli-company setup, with 2 warehouses. In sales order I want to auto-populate delivery warehouse of salesorderitem with pre-defined value. For this I made a custom field in customer called default warehouse.How do I fill in the default warehouse value in the table for every product.
Would this be the same method for getting a specific address item into a print format for a sales invoice? I am trying to get only address_line1 and city from the address for a customer, so it can be printed in the Sales Invoice but cannot get around doing this, given the current methods. I have been successful in getting custom field values using: {{ frappe.db.get_value(“Customer”, doc.customer, “tax_id”) }}, however, gettin specific address fields, I have not been so lucky.