salesinvoice endpoint defaults to taxpoint if null

fixes bug which prevented PDF being created for one-off salesorders.