-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
444161e
commit c1bb506
Showing
22 changed files
with
1,256 additions
and
888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+14 Bytes
(100%)
include/javascript/yui3/build/uploader/assets/uploader.swf
100755 → 100644
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* | ||
* @author SalesAgility Ltd <[email protected]> | ||
*/ | ||
|
||
require_once('include/MVC/Controller/SugarController.php'); | ||
|
||
class AOS_ContractsController extends SugarController | ||
|
@@ -36,28 +36,28 @@ public function action_editview() | |
$GLOBALS['view'] = $this->view; | ||
|
||
if (isset($_REQUEST['aos_quotes_id'])) { | ||
$query = "SELECT * FROM aos_quotes WHERE id = '{$_REQUEST['aos_quotes_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM aos_quotes WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['aos_quotes_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->name = $row['name']; | ||
$this->bean->total_contract_value = $row['total_amount']; | ||
|
||
if (isset($row['billing_account_id'])) { | ||
$_REQUEST['account_id'] = $row['billing_account_id']; | ||
} | ||
|
||
if (isset($row['billing_contact_id'])) { | ||
$_REQUEST['contact_id'] = $row['billing_contact_id']; | ||
} | ||
|
||
if (isset($row['opportunity_id'])) { | ||
$_REQUEST['opportunity_id'] = $row['opportunity_id']; | ||
} | ||
} | ||
|
||
if (isset($_REQUEST['account_id'])) { | ||
$query = "SELECT id,name FROM accounts WHERE id = '{$_REQUEST['account_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT id,name FROM accounts WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['account_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->contract_account = $row['name']; | ||
$this->bean->contract_account_id = $row['id']; | ||
|
@@ -69,10 +69,10 @@ public function action_editview() | |
$this->bean->contact = $contact->name; | ||
$this->bean->contact_id = $contact->id; | ||
} | ||
|
||
if (isset($_REQUEST['opportunity_id'])) { | ||
$query = "SELECT id,name FROM opportunities WHERE id = '{$_REQUEST['opportunity_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT id,name FROM opportunities WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['opportunity_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->opportunity = $row['name']; | ||
$this->bean->opportunity_id = $row['id']; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* | ||
* @author SalesAgility Ltd <[email protected]> | ||
*/ | ||
|
||
require_once('include/MVC/Controller/SugarController.php'); | ||
|
||
class AOS_InvoicesController extends SugarController | ||
|
@@ -34,26 +34,26 @@ public function action_editview() | |
|
||
$this->view = 'edit'; | ||
$GLOBALS['view'] = $this->view; | ||
|
||
if (isset($_REQUEST['aos_quotes_id'])) { | ||
$query = "SELECT * FROM aos_quotes WHERE id = '{$_REQUEST['aos_quotes_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM aos_quotes WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['aos_quotes_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->name = $row['name']; | ||
|
||
if (isset($row['billing_account_id'])) { | ||
$_REQUEST['account_id'] = $row['billing_account_id']; | ||
} | ||
|
||
if (isset($row['billing_contact_id'])) { | ||
$_REQUEST['contact_id'] = $row['billing_contact_id']; | ||
} | ||
} | ||
|
||
|
||
if (isset($_REQUEST['account_id'])) { | ||
$query = "SELECT * FROM accounts WHERE id = '{$_REQUEST['account_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM accounts WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['account_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->billing_account_id = $row['id']; | ||
$this->bean->billing_account = $row['name']; | ||
|
@@ -68,10 +68,10 @@ public function action_editview() | |
$this->bean->shipping_address_postalcode = $row['shipping_address_postalcode']; | ||
$this->bean->shipping_address_country = $row['shipping_address_country']; | ||
} | ||
|
||
if (isset($_REQUEST['contact_id'])) { | ||
$query = "SELECT id,first_name,last_name FROM contacts WHERE id = '{$_REQUEST['contact_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT id,first_name,last_name FROM contacts WHERE id = '?'"; | ||
$result = $this->bean->db->pquery($query, [$_REQUEST['contact_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->billing_contact_id = $row['id']; | ||
$this->bean->billing_contact = $row['first_name'].' '.$row['last_name']; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* | ||
* @author SalesAgility <[email protected]> | ||
*/ | ||
|
||
require_once('include/MVC/Controller/SugarController.php'); | ||
|
||
class AOS_QuotesController extends SugarController | ||
|
@@ -32,41 +32,40 @@ public function action_editview() | |
|
||
$this->view = 'edit'; | ||
$GLOBALS['view'] = $this->view; | ||
|
||
if (isset($_REQUEST['aos_invoices_id'])) { | ||
$query = "SELECT * FROM aos_invoices WHERE id = '{$_REQUEST['aos_invoices_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM aos_invoices WHERE id = '?'"; | ||
$result = $this->bean->db->pQuery($query, [$_REQUEST['aos_invoices_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->name = $row['name']; | ||
|
||
if (isset($row['billing_account_id'])) { | ||
$_REQUEST['account_id'] = $row['billing_account_id']; | ||
} | ||
|
||
if (isset($row['billing_contact_id'])) { | ||
$_REQUEST['contact_id'] = $row['billing_contact_id']; | ||
} | ||
} | ||
|
||
if (isset($_REQUEST['aos_contracts_id'])) { | ||
$query = "SELECT * FROM aos_contracts WHERE id = '{$_REQUEST['aos_contracts_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM aos_contracts WHERE id = '?'"; | ||
$result = $this->bean->db->pQuery($query, [$_REQUEST['aos_contracts_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->name = $row['name']; | ||
|
||
if (isset($row['contract_account_id'])) { | ||
$_REQUEST['account_id'] = $row['contract_account_id']; | ||
} | ||
|
||
if (isset($row['opportunity_id'])) { | ||
$_REQUEST['opportunity_id'] = $row['opportunity_id']; | ||
} | ||
} | ||
|
||
|
||
if (isset($_REQUEST['account_id'])) { | ||
$query = "SELECT * FROM accounts WHERE id = '{$_REQUEST['account_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT * FROM accounts WHERE id = '?'"; | ||
$result = $this->bean->db->pQuery($query, [$_REQUEST['account_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->billing_account_id = $row['id']; | ||
$this->bean->billing_account = $row['name']; | ||
|
@@ -81,18 +80,18 @@ public function action_editview() | |
$this->bean->shipping_address_postalcode = $row['shipping_address_postalcode']; | ||
$this->bean->shipping_address_country = $row['shipping_address_country']; | ||
} | ||
|
||
if (isset($_REQUEST['contact_id'])) { | ||
$query = "SELECT id,first_name,last_name FROM contacts WHERE id = '{$_REQUEST['contact_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT id, first_name, last_name FROM contacts WHERE id = '?'"; | ||
$result = $this->bean->db->pQuery($query, [$_REQUEST['contact_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->billing_contact_id = $row['id']; | ||
$this->bean->billing_contact = $row['first_name'].' '.$row['last_name']; | ||
} | ||
|
||
if (isset($_REQUEST['opportunity_id'])) { | ||
$query = "SELECT id,name FROM opportunities WHERE id = '{$_REQUEST['opportunity_id']}'"; | ||
$result = $this->bean->db->query($query, true); | ||
$query = "SELECT id, name FROM opportunities WHERE id = '?'"; | ||
$result = $this->bean->db->pQuery($query, [$_REQUEST['opportunity_id']]); | ||
$row = $this->bean->db->fetchByAssoc($result); | ||
$this->bean->opportunity_id = $row['id']; | ||
$this->bean->opportunity = $row['name']; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.