Logo: Relish

  1. Sign in

Project: Open-orgn-services

Invoicing existing contacts

  • @vcr
  • @clean_up_xero_contact
  • @clean_up_xero_invoice

In order to be invoiced for the training so that my company or government department can pay for it
As a prospective delegate
I want to be sent an invoice when I sign up to attend an event

Background
Given
the invoice is due on 2013-03-10
And
the invoice amount is 1.00
And
the invoice description is "my fantastic invoice description"
And
my first name is "Bob"
And
my last name is "Fish"
And
my email address is "[email protected]"
And
I work for "Existing Company Inc."
And
there is a contact in Xero for "Existing Company Inc."
Scenarios
invoices are drafts
Given
I have registered for a ticket
And
I paid with Paypal
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should be a draft
invoices include purchase order numbers
Given
I have registered for a ticket
And
my purchase order reference is "AB1234"
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should include the reference "AB1234"
invoices have correct due date
Given
I have registered for a ticket
And
I paid with Paypal
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should be due on 2013-03-10
invoices are not generated more than once for same purchase
Given
I have registered for a ticket
And
I paid with Paypal
And
I have already been invoiced
When
the attendee invoicer runs
Then
I should not be invoiced again
invoices have VAT added
Given
I have registered for a ticket
And
I paid with Paypal
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should have a total of 1.20
invoices do not have VAT added for overseas purchasers with tax registration numbers
Given
I have registered for a ticket
And
my organisation has a tax registration number "5678"
And
I paid with Paypal
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should have a total of 1.00
line items have correct quantity for multiple tickets
Given
I have registered for two tickets
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should contain 1 line item
And
that line item should have a quantity of 2
And
that invoice should have a total of 2.40
line items should not have an account code
Given
I have registered for a ticket
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should contain 1 line item
And
that line item should not have account code set
line item should have description
Given
I have registered for a ticket
And
I have not already been invoiced
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should contain 1 line item
And
the line item description should include "my fantastic invoice description"
invoices show paypal payment method as fully paid

We can't actually add the payment into Xero, that
needs to be matched up from PayPal. Instead, we add a zero-value
line item saying that it's been paid.

Given
I have registered for a ticket
And
I have not already been invoiced
And
I paid with Paypal
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should show that payment has been received
And
that invoice should show that the payment was made with Paypal
invoices to be paid later show as unpaid
Given
I have registered for a ticket
And
I have not already been invoiced
And
I requested an invoice
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
And
that invoice should show that payment has not been received
deleted invoices should not be re-raised
Given
I have registered for a ticket
And
I have not already been invoiced
And
I requested an invoice
When
the attendee invoicer runs
Then
an invoice should be raised in Xero against "Existing Company Inc."
When
that invoice is deleted
When
the attendee invoicer runs
Then
an invoice should not be raised in Xero against "Existing Company Inc."

Last published about 5 years ago by Tech Team.