Example #1
0
 def test_irs_1099_report(self):
     make_payment_entry_to_irs_1099_supplier()
     filters = frappe._dict({"fiscal_year": "_Test Fiscal Year 2016", "company": "_Test Company"})
     columns, data = execute_1099_report(filters)
     print(columns, data)
     expected_row = {'supplier': '_US 1099 Test Supplier',
                     'supplier_group': 'Services',
                     'payments': 100.0,
                     'tax_id': '04-1234567'}
     self.assertEqual(data[0], expected_row)
Example #2
0
 def test_irs_1099_report(self):
     make_payment_entry_to_irs_1099_supplier()
     filters = frappe._dict({
         "fiscal_year": "_Test Fiscal Year 2016",
         "company": "_Test Company 1"
     })
     columns, data = execute_1099_report(filters)
     expected_row = {
         "supplier": "_US 1099 Test Supplier",
         "supplier_group": "Services",
         "payments": 100.0,
         "tax_id": "04-1234567",
     }
     self.assertEqual(data[0], expected_row)