mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
[fix] invoice with zero values
This commit is contained in:
@@ -149,7 +149,7 @@ class DocType(SellingController):
|
|||||||
ret = get_obj('Sales Common').get_item_details(item.fields, self)
|
ret = get_obj('Sales Common').get_item_details(item.fields, self)
|
||||||
for fieldname, value in ret.items():
|
for fieldname, value in ret.items():
|
||||||
if self.meta.get_field(fieldname, parentfield="entries") and \
|
if self.meta.get_field(fieldname, parentfield="entries") and \
|
||||||
not item.fields.get(fieldname):
|
item.fields.get(fieldname) is None:
|
||||||
item.fields[fieldname] = value
|
item.fields[fieldname] = value
|
||||||
|
|
||||||
# fetch pos details, if they are not fetched
|
# fetch pos details, if they are not fetched
|
||||||
|
|||||||
Reference in New Issue
Block a user