[fix] [minor] paid amount should be zero if not pos invoice

This commit is contained in:
Nabin Hait
2013-08-16 15:15:16 +05:30
parent 6c18cbcb4b
commit 21cf403b57
2 changed files with 3 additions and 1 deletions

View File

@@ -521,6 +521,8 @@ class DocType(SellingController):
self.make_packing_list()
else:
self.doclist = self.doc.clear_table(self.doclist, 'packing_details')
if not cint(self.doc.is_pos):
webnotes.conn.set(self.doc,'paid_amount',0)
def check_prev_docstatus(self):