Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert none type into float #36

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gst_india/public/py/sales_invoice_doctype.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from gst_india.cleartax_integration.API.irn import generate_irn, e_invoicing_enabled
from gst_india.cleartax_integration.API.gst import create_gst_invoice
import frappe
import frappe
from frappe.utils import flt

def sales_invoice_submit(doc, method=None):
if frappe.db.get_single_value('Cleartax Settings','automate'):
Expand All @@ -27,7 +28,7 @@ def sales_invoice_save(doc,method=None):
if not doc.dispatch_address_name:
doc.dispatch_address_name = doc.company_address
if doc.gst_category == "Unregistered":
if doc.taxes_and_charges_added <= 0:
if flt(doc.taxes_and_charges_added) <= 0:
doc.custom_non_gst = 1


Loading