fix: Item GL entries for purchase invoice (#23027)

This commit is contained in:
Deepesh Garg 2020-09-15 09:44:46 +05:30 committed by GitHub
parent fcb6ba6ec7
commit 36bc0577a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,8 +405,6 @@ class PurchaseInvoice(BuyingController):
update_linked_doc(self.doctype, self.name, self.inter_company_invoice_reference) update_linked_doc(self.doctype, self.name, self.inter_company_invoice_reference)
def make_gl_entries(self, gl_entries=None): def make_gl_entries(self, gl_entries=None):
if not self.grand_total:
return
if not gl_entries: if not gl_entries:
gl_entries = self.get_gl_entries() gl_entries = self.get_gl_entries()