Sylius/Sylius — pull request #135 by jjanvier (2013-06-04 11:49:05+00:00)
Title: [WIP] My account section : orders and invoices

Hi guys !

The goal of this PR is to create the second part of the account section which is about tracking orders and generating invoices.

This PR refers to the following discussion : #88
A RFC describes the features and the implementation here : https://github.com/Sylius/Sylius/wiki/%5BRFC%5D-My-account-section

First I'd like to discuss about it (see pending questions). Once all pending questions will be resolved I'll write Behat scenarios and start to think about an implementation.

### RFC :

Allows the user to list all the orders he placed with the following information :

Date
Order number
Amount
Status
Invoice

May 5, 2013
30510110607C
173,67 €
Sent on May 8, 2013
Tracking number : 8V69692580122
PDF export of the invoice
Details

June 22, 2012
01228101495C
29,84 €
Canceled by the customer
-
-

The Details link opens a popin with the details of the order:
* date, shipment mode, payment mode, order number, status, tracking number
* the list of products with thumbnail, name, unit price, amount
* shipping, amount total, a link to a PDF export of the invoice

### Pending questions :
* when is an invoice available ? (when the user has payed, when his order has been validated in the back office ?????)
* which library would you use to generate a PDF export ? (I know KnpSnappyBundle which is a wrapper for wkhtmltopdf => quite simple and works well)