Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/DigiThinkIT/erpnext into…
Browse files Browse the repository at this point in the history
… pick-list-status
  • Loading branch information
Myuddin khatri committed Aug 31, 2020
2 parents d58c709 + de818a6 commit 2211e51
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions erpnext/regional/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from six import iteritems
from erpnext.regional.doctype.gstr_3b_report.gstr_3b_report import get_period
from erpnext.regional.india.utils import get_gst_accounts
from erpnext import get_company_currency

def execute(filters=None):
return Gstr1Report(filters).run()
Expand All @@ -18,6 +19,7 @@ def __init__(self, filters=None):
self.filters = frappe._dict(filters or {})
self.columns = []
self.data = []
self.company_currency = get_company_currency(filters["company"])
self.doctype = "Sales Invoice"
self.tax_doctype = "Sales Taxes and Charges"
self.select_columns = """
Expand Down Expand Up @@ -98,6 +100,7 @@ def get_b2c_data(self):
for item_code, net_amount in self.invoice_items.get(inv).items() if item_code in items])
row["cess_amount"] += flt(self.invoice_cess.get(inv), 2)
row["type"] = "E" if ecommerce_gstin else "OE"
row["currency"] = self.company_currency

for key, value in iteritems(b2cs_output):
self.data.append(value)
Expand Down Expand Up @@ -282,7 +285,14 @@ def get_columns(self):
"fieldname": "taxable_value",
"label": "Taxable Value",
"fieldtype": "Currency",
"options": "currency",
"width": 100
},
{
"label":_("Currency"),
"fieldname":"currency",
"fieldtype":"Data",
"hidden" : 1
}
]
self.other_columns = []
Expand Down Expand Up @@ -318,6 +328,7 @@ def get_columns(self):
"fieldname": "invoice_value",
"label": "Invoice Value",
"fieldtype": "Currency",
"options": "currency",
"width":100
},
{
Expand Down Expand Up @@ -348,6 +359,7 @@ def get_columns(self):
"fieldname": "cess_amount",
"label": "Cess Amount",
"fieldtype": "Currency",
"options": "currency",
"width": 100
}
]
Expand All @@ -371,6 +383,7 @@ def get_columns(self):
"fieldname": "invoice_value",
"label": "Invoice Value",
"fieldtype": "Currency",
"options": "currency",
"width": 100
},
{
Expand All @@ -391,6 +404,7 @@ def get_columns(self):
"fieldname": "cess_amount",
"label": "Cess Amount",
"fieldtype": "Currency",
"options": "currency",
"width": 100
}
]
Expand Down Expand Up @@ -444,6 +458,7 @@ def get_columns(self):
"fieldname": "invoice_value",
"label": "Invoice Value",
"fieldtype": "Currency",
"options": "currency",
"width": 120
}
]
Expand All @@ -452,6 +467,7 @@ def get_columns(self):
"fieldname": "cess_amount",
"label": "Cess Amount",
"fieldtype": "Currency",
"options": "currency",
"width": 100
},
{
Expand Down Expand Up @@ -487,6 +503,7 @@ def get_columns(self):
"fieldname": "cess_amount",
"label": "Cess Amount",
"fieldtype": "Currency",
"options": "currency",
"width": 100
},
{
Expand Down Expand Up @@ -521,6 +538,7 @@ def get_columns(self):
"fieldname": "invoice_value",
"label": "Invoice Value",
"fieldtype": "Currency",
"options": "currency",
"width": 120
},
{
Expand Down

0 comments on commit 2211e51

Please sign in to comment.