[fix] invoice with zero values

This commit is contained in:
Nabin Hait 2013-06-27 12:21:34 +05:30
parent 4924a9f764
commit c35dd968af

View File

@ -149,7 +149,7 @@ class DocType(SellingController):
ret = get_obj('Sales Common').get_item_details(item.fields, self)
for fieldname, value in ret.items():
if self.meta.get_field(fieldname, parentfield="entries") and \
not item.fields.get(fieldname):
item.fields.get(fieldname) is None:
item.fields[fieldname] = value
# fetch pos details, if they are not fetched