a3e69cf75d
* feat: Bulk Transaction Processing * fix: add flags to ignore validations and exception handling correction * fix: remove duplicate code, added logger functionality and improved notifications * fix: linting and sider issues * test: added tests * fix: linter issues * fix: failing test case * fix: sider issues and test cases * refactor: mapping function calls to create order/invoice * fix: added more test cases to increase coverage * fix: test cases * fix: sider issue * fix: rename doctype, improve formatting and minor refactor * fix: update doctype name in hooks and sider issues * fix: entry log test case * fix: typos, translations and company name in tests * fix: linter issues and translations * fix: linter issue * fix: split into separate function for marking failed transaction * fix: typos, retry failed transaction logic and make log read only * fix: hide retry button when no failed transactions and remove test cases not rrelevant * fix: sider issues and indentation to tabs Co-authored-by: Ankush Menat <ankush@frappe.io>
21 lines
400 B
Python
21 lines
400 B
Python
import frappe
|
|
|
|
from erpnext.bulk_transaction.doctype.bulk_transaction_logger.test_bulk_transaction_logger import (
|
|
create_company,
|
|
create_customer,
|
|
create_item,
|
|
create_so,
|
|
)
|
|
|
|
|
|
@frappe.whitelist()
|
|
def create_records():
|
|
create_company()
|
|
create_customer()
|
|
create_item()
|
|
|
|
gd = frappe.get_doc("Global Defaults")
|
|
gd.set("default_company", "Test Bulk")
|
|
gd.save()
|
|
frappe.clear_cache()
|
|
create_so() |