When i tried to copy paste {{ frappe.get_doc(‘Item’, item_code).standard_selling_rate }}, it gives me this error
{{ no such element: erpnext.stock.doctype.item.item.Item object[‘standard_selling_rate’] }}
but if I type {{ frappe.get_doc(‘Item’, item_code).standard_rate }}
it works, but it gives me the standard rate of the item master, not the rate of the standard selling price. list which is different than the standard rate of the item master (the latter doesn’T seem to be able to be modified)
Replace ‘Item Price’ with the name of the doctype, ‘item_code’ with the name of the item you want to fetch the value for, and ‘price_list_rate’ with the name of the field you want to fetch the value from.
The above code will fetch the rate for the ‘Standard Selling’ price list for the given item code. If you want to fetch the rate for a different price list, replace ‘Standard Selling’ with the name of the price list you want to fetch the value for.
pymysql.err.ProgrammingError: (1064, “You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘{ item_code }} AND price_list=‘Standard Selling’ ORDER BY modified DESC L…’ at line 1”)
I think I didn’t put the headers {%- for item in doc.items -%} and {%- endfor -%}
Now there is no error, however i am not sure if my headers is correctly written as it gives me no value (blank)
Do you know if it’s possible to add the selling rate value of ITEM PRICE into ITEM master doctype? I have trying to do it using the configuration below, but sometime this is the closest I get. It takes the item ID rather than the item amount and I am not sure how I can fix that.
As for the other problem above, do you know how I can have the same Rate displayed in the “price_list_rate” to be an amount rather than “1245f79547” (which is the item ID) that displays in the item master (picture from the post above yours)
Please add the new custom field (field name: rate). then fetch from condition apply in customization form in rate field like (price_list_rate.price_list_rate).
Then reload and check it.
Please don’t remove the price_list_rate field in Item master because item price fetch from price_list_rate so …
I was wondering if we can like narrow just to one specific price list which is the standard price list so we don’t have multiple prices for this specific field.
Without a script, it’s not possible to “copy” the price from the standard selling list to the item master without an additional step (manually), right?