[fix] company graph based on base currency (#9950)

This commit is contained in:
KanchanChauhan
2017-07-26 18:17:11 +05:30
committed by Makarand Bauskar
parent 83535811ad
commit 58c9934452
7 changed files with 82 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ import frappe
import random, json
import frappe.utils
from frappe.utils import nowdate
from frappe.utils import nowdate, add_months
from frappe.model import mapper
from frappe.test_runner import make_test_records
@@ -44,7 +44,9 @@ class TestMapper(unittest.TestCase):
"doctype": "Quotation",
"quotation_to": "Customer",
"customer": customer,
"order_type": "Sales"
"order_type": "Sales",
"transaction_date" : nowdate(),
"valid_till" : add_months(nowdate(), 1)
})
for item in item_list:
qtn.append("items", {"qty": "2", "item_code": item.item_code})