Resolve "Data archiving" #1687

Open
korina.cordero wants to merge 139 commits from 762-data-archiving into 746-resq-2-0-final
Showing only changes of commit 20f5bb08e0 - Show all commits

View file

@ -41,7 +41,16 @@ class InvoiceController extends ApiController
}
// get customer location from customer_metadata using customer id
$coordinates = $this->getCustomerMetadata($cust);
$lng = $req->request->get('longitude');
$lat = $req->request->get('latitude');
if ((empty($lng)) || (empty($lat)))
{
// use customer metadata location as basis
$coordinates = $this->getCustomerMetadata($cust);
}
else
$coordinates = new Point($lng, $lat);
// make invoice criteria
$icrit = new InvoiceCriteria();