Exemplo n.º 1
0
 def test_15_direct_sales_return_case(self):
     """直接退货(其他账户)"""
     self.login_action()
     salesreutrn = SalesReturnView(self.driver)
     salesreutrn.direct_return_action('李洲全-13888888811',
                                      name='测试商品8号',
                                      num=1,
                                      account='其他账户')
     salesreturn_num = salesreutrn.get_sales_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num15',
                           salesreturn_num)
     self.assertTrue(salesreutrn.check_sales_return_success_status())
Exemplo n.º 2
0
 def test_06_original_sales_return_case(self):
     """原单退货(其他账户)"""
     self.login_action()
     salesreturn = SalesReturnView(self.driver)
     sales_order = ReadData().get_data('product_sale_order', 'num1')
     salesreturn.original_order_return_action(good_name='测试商品8号',
                                              good_num=1,
                                              keyword=sales_order,
                                              account='其他账户')
     salesreturn_num = salesreturn.get_detail_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num6',
                           salesreturn_num)
     self.assertEqual(salesreturn.check_account_type(), '其他账户')
Exemplo n.º 3
0
 def test_18_direct_sales_return_case(self):
     """直接退货(备注)"""
     self.login_action()
     salesreutrn = SalesReturnView(self.driver)
     salesreutrn.direct_return_action('李洲全-13888888811',
                                      name='测试商品8号',
                                      num=1,
                                      remark='直接退货备注')
     salesreturn_num = salesreutrn.get_detail_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num18',
                           salesreturn_num)
     info = salesreutrn.check_remaks()
     self.assertEqual(info, '直接退货备注')
Exemplo n.º 4
0
 def test_17_direct_sales_return_case(self):
     """直接退货(改价)"""
     self.login_action()
     salesreutrn = SalesReturnView(self.driver)
     salesreutrn.direct_return_action('李洲全-13888888811',
                                      name='测试商品8号',
                                      num=1,
                                      modify=1000)
     salesreturn_num = salesreutrn.get_detail_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num17',
                           salesreturn_num)
     total_money = salesreutrn.check_total_money()
     self.assertEqual(total_money, '¥1000.00')
Exemplo n.º 5
0
 def test_16_direct_sales_return_case(self):
     """直接退货(继续退货)"""
     self.login_action()
     salesreutrn = SalesReturnView(self.driver)
     salesreutrn.direct_return_action('李洲全-13888888811',
                                      normal=True,
                                      name='测试商品8号',
                                      num=1,
                                      is_continue=True)
     salesreturn_num = salesreutrn.get_sales_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num16',
                           salesreturn_num)
     self.assertTrue(salesreutrn.check_sales_return_success_status())
Exemplo n.º 6
0
 def test_01_original_sales_return_case(self):
     """原始销售单退货"""
     self.login_action()
     salesreturn = SalesReturnView(self.driver)
     sales_order = ReadData().get_data('product_sale_order', 'num1')
     salesreturn.original_order_return_action(good_name='测试商品8号',
                                              good_num=1,
                                              normal=True,
                                              keyword=sales_order)
     sales_return_num = salesreturn.get_sales_return_ordernum()
     ReadData().write_data('product_sale_return_order', 'num1',
                           sales_return_num)
     self.assertTrue(salesreturn.check_sales_return_success_status())
Exemplo n.º 7
0
 def test_09_original_sales_return_case(self):
     """原单退货(备注)"""
     self.login_action()
     salesreturn = SalesReturnView(self.driver)
     sales_order = ReadData().get_data('product_sale_order', 'num1')
     salesreturn.original_order_return_action(good_name='测试商品8号',
                                              good_num=1,
                                              keyword=sales_order,
                                              remark='退货商品')
     salesreturn_num = salesreturn.get_detail_return_ordernum()
     info = salesreturn.check_remaks()
     ReadData().write_data('product_sale_return_order', 'num9',
                           salesreturn_num)
     self.assertEqual(info, '退货商品')
Exemplo n.º 8
0
 def test_08_original_sales_return_case(self):
     """原单退货(改价)"""
     self.login_action()
     salesreturn = SalesReturnView(self.driver)
     sales_order = ReadData().get_data('product_sale_order', 'num1')
     salesreturn.original_order_return_action(good_name='测试商品8号',
                                              good_num=1,
                                              keyword=sales_order,
                                              modify=1000)
     salesreturn_num = salesreturn.get_detail_return_ordernum()
     total_money = salesreturn.check_total_money()
     ReadData().write_data('product_sale_return_order', 'num8',
                           salesreturn_num)
     self.assertEqual(total_money, '¥1000.00')