|
@@ -152,7 +152,7 @@ class RequestController
|
|
|
private function posInfos ($data)
|
|
|
{
|
|
|
$result = array('items' => array(), 'invoices' => array());
|
|
|
- $q = $this->dbh->query("SELECT item FROM invoice_details WHERE project_id = '{$data['project_id']}' AND item != '000-000' ORDER BY item ");
|
|
|
+ $q = $this->dbh->query("SELECT item FROM invoice_details WHERE project_id = '{$data['project_id']}' AND item NOT IN ('000-000','123-456') ORDER BY item ");
|
|
|
if ($q) {
|
|
|
$r = $q->fetchAll(PDO::FETCH_ASSOC);
|
|
|
$result['items'] = array_column($r, 'item');
|
|
@@ -264,7 +264,7 @@ class RequestController
|
|
|
|
|
|
public function CsvExport ($data)
|
|
|
{
|
|
|
- $data['project_id'] = "1";
|
|
|
+ $data['project_id'] = "3";
|
|
|
$q = $this->dbh->query("SELECT seller_id, name, first_name, address, zip_code, place, mail, phone, 0.0 as total, 0.0 as provision, 0.0 as cash_out
|
|
|
FROM sellers WHERE project_id = '{$data['project_id']}' ORDER BY seller_id");
|
|
|
|