def setUp(self): make_users() make_companies() make_customers() self.orx_name = make_prescriptions()[0].name make_items() self.old_user = frappe.session.user frappe.set_user("*****@*****.**")
def setUp(self): make_companies() make_customers() make_items() gift_cards = make_serials() self.gift_card_no = gift_cards[0].name self.gift_card_unlimited_no = gift_cards[1].name make_sales_invoices()
def setUp(self): make_users() make_companies() make_customers() make_items() self.gift_card_no = make_serials()[0].name make_sales_invoices() self.old_user = frappe.session.user self.old_balance = frappe.db.get_value("Gift Card", self.gift_card_no, "balance")
def setUp(self): make_users() make_companies() make_customers() make_items() serial_no = make_serials()[0] self.item_code = serial_no.item_code self.serial_no = serial_no.serial_no self.old_user = frappe.session.user self.old_expiry_date = frappe.db.get_value("Gift Card", self.serial_no, "expiry_date") frappe.set_user("*****@*****.**")