forked from CGM_Public/pretix_original
Allow to exclude free products from invoices
This commit is contained in:
@@ -92,6 +92,17 @@ def test_address_vat_id(env):
|
||||
assert inv.invoice_to == "Acme Company\nSherlock Holmes\n221B Baker Street\n12345 London\nUK\nVAT-ID: UK1234567"
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_positions_skip_free(env):
|
||||
event, order = env
|
||||
event.settings.invoice_include_free = False
|
||||
op1 = order.positions.first()
|
||||
op1.price = Decimal('0.00')
|
||||
op1.save()
|
||||
inv = generate_invoice(order)
|
||||
assert inv.lines.count() == 2
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_positions(env):
|
||||
event, order = env
|
||||
|
||||
Reference in New Issue
Block a user