Severity: Notice
Message: Undefined offset: 0
Filename: controllers/sale.php
Line Number: 510
Message: Trying to get property of non-object