mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix(stock): remove item image to avoid setting the image of previous item
This commit is contained in:
@@ -944,6 +944,9 @@ frappe.ui.form.on("Stock Entry Detail", {
|
|||||||
|
|
||||||
item_code(frm, cdt, cdn) {
|
item_code(frm, cdt, cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
|
// since some items may not have image, so empty the image field to avoid setting the image of previous item
|
||||||
|
d.image = "";
|
||||||
|
|
||||||
if (d.item_code) {
|
if (d.item_code) {
|
||||||
var args = {
|
var args = {
|
||||||
item_code: d.item_code,
|
item_code: d.item_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user