minor fix
This commit is contained in:
parent
3fcec56f7b
commit
90f2d8d9fc
@ -299,9 +299,9 @@ class AccountsController(TransactionBase):
|
|||||||
key = item.item_code or item.item_name
|
key = item.item_code or item.item_name
|
||||||
if tax.item_wise_tax_detail.get(key):
|
if tax.item_wise_tax_detail.get(key):
|
||||||
item_wise_tax_amount = tax.item_wise_tax_detail[key][1] + current_tax_amount
|
item_wise_tax_amount = tax.item_wise_tax_detail[key][1] + current_tax_amount
|
||||||
tax.item_wise_tax_detail[key] = [tax_rate, item_wise_tax_amount]
|
tax.item_wise_tax_detail[key] = [tax_rate,item_wise_tax_amount]
|
||||||
else:
|
else:
|
||||||
tax.item_wise_tax_detail[key] = [tax_rate, current_tax_amount]
|
tax.item_wise_tax_detail[key] = [tax_rate,current_tax_amount]
|
||||||
|
|
||||||
return current_tax_amount
|
return current_tax_amount
|
||||||
|
|
||||||
@ -316,7 +316,7 @@ class AccountsController(TransactionBase):
|
|||||||
|
|
||||||
def _cleanup(self):
|
def _cleanup(self):
|
||||||
for tax in self.tax_doclist:
|
for tax in self.tax_doclist:
|
||||||
tax.item_wise_tax_detail = json.dumps(tax.item_wise_tax_detail)
|
tax.item_wise_tax_detail = json.dumps(tax.item_wise_tax_detail, separators=(',', ':'))
|
||||||
|
|
||||||
def _set_in_company_currency(self, item, print_field, base_field):
|
def _set_in_company_currency(self, item, print_field, base_field):
|
||||||
"""set values in base currency"""
|
"""set values in base currency"""
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"allow_import": 1,
|
"allow_import": 1,
|
||||||
"autoname": "naming_series:",
|
"autoname": "naming_series:",
|
||||||
"creation": "2013-06-18 12:39:59.000000",
|
"creation": "2013-06-18 12:39:59",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Transaction",
|
"document_type": "Transaction",
|
||||||
@ -874,7 +874,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"modified": "2014-01-28 18:47:42.000000",
|
"modified": "2014-05-07 14:37:33.548622",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Sales Order",
|
"name": "Sales Order",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user