def load_data(): test_purchase_receipt.load_data() webnotes.insert({"doctype": "Account", "account_name": "Cost for Goods Sold", "parent_account": "Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "Excise Duty", "parent_account": "_Test Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "Education Cess", "parent_account": "_Test Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "S&H Education Cess", "parent_account": "_Test Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "CST", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "Discount", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) from webnotes.model.doc import Document item = Document("Item", "Home Desktop 100") # excise duty item_tax = item.addchild("item_tax", "Item Tax") item_tax.tax_type = "Excise Duty - %s" % abbr item_tax.tax_rate = 10 item_tax.save()
def load_data(): test_purchase_receipt.load_data() webnotes.insert({ "doctype": "Account", "account_name": "Excise Duty", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "S&H Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "CST", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "Discount", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) from webnotes.model.doc import Document item = Document("Item", "Home Desktop 100") # excise duty item_tax = item.addchild("item_tax", "Item Tax") item_tax.tax_type = "Excise Duty - %s" % abbr item_tax.tax_rate = 10 item_tax.save()
def load_data(): test_purchase_receipt.load_data() # create customer group webnotes.insert({"doctype": "Customer Group", "customer_group_name": "_Test Customer Group", "parent_customer_group": "All Customer Groups", "is_group": "No"}) # create customer webnotes.insert({"doctype": "Customer", "customer_name": "West Wind Inc.", "customer_type": "Company", "territory": "Default", "customer_group": "_Test Customer Group", "company": company, "credit_days": 50, "credit_limit": 0}) webnotes.insert({"doctype": "Account", "account_name": "_Test Account Sales", "parent_account": "Income - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "Excise Duty", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "S&H Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "CST", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) webnotes.insert({"doctype": "Account", "account_name": "adj_rate", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger"}) from webnotes.model.doc import Document item = Document("Item", "Home Desktop 100") # excise duty item_tax = item.addchild("item_tax", "Item Tax") item_tax.tax_type = "Excise Duty - %s" % abbr item_tax.tax_rate = 10 item_tax.save()
def load_data(): test_purchase_receipt.load_data() # create customer group webnotes.insert({ "doctype": "Customer Group", "customer_group_name": "Default Customer Group", "parent_customer_group": "All Customer Groups", "is_group": "No" }) # create customer webnotes.insert({ "doctype": "Customer", "customer_name": "West Wind Inc.", "customer_type": "Company", "territory": "Default", "customer_group": "Default Customer Group", "company": company, "credit_days": 0, "credit_limit": 0 }) webnotes.insert({ "doctype": "Account", "account_name": "Excise Duty", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "S&H Education Cess", "parent_account": "Tax Assets - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "CST", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) webnotes.insert({ "doctype": "Account", "account_name": "adj_rate", "parent_account": "Direct Expenses - %s" % abbr, "company": company, "group_or_ledger": "Ledger" }) from webnotes.model.doc import Document item = Document("Item", "Home Desktop 100") # excise duty item_tax = item.addchild("item_tax", "Item Tax") item_tax.tax_type = "Excise Duty - %s" % abbr item_tax.tax_rate = 10 item_tax.save()