summaryrefslogtreecommitdiff
path: root/ng_selfservice/quotation_add_pkg.php
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-04-27 02:59:21 -0700
committerIvan Kohler <ivan@freeside.biz>2015-04-27 02:59:21 -0700
commitad3bcb39580173f0ac1b6357cb49515d48af7ddf (patch)
treeb375ba5593e04e332e93e836f136f55aa72645cb /ng_selfservice/quotation_add_pkg.php
parent6be98dd167d1a77ff9f71c97c385bff65769f30d (diff)
parent911b5f2429377b0b989e8a10e9971b2463e554a7 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'ng_selfservice/quotation_add_pkg.php')
-rw-r--r--ng_selfservice/quotation_add_pkg.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/ng_selfservice/quotation_add_pkg.php b/ng_selfservice/quotation_add_pkg.php
new file mode 100644
index 000000000..1e7e71fa9
--- /dev/null
+++ b/ng_selfservice/quotation_add_pkg.php
@@ -0,0 +1,31 @@
+<? require('elements/session.php');
+
+$dest = 'quotation.php';
+
+if ( isset($_REQUEST['pkgpart']) ) {
+
+ $results = array();
+
+ $params = array( 'custnum', 'pkgpart' );
+
+ $matches = array();
+ if ( preg_match( '/^(\d+)$/', $_REQUEST['pkgpart'] ) ) {
+
+ $args = array(
+ 'session_id' => $_COOKIE['session_id'],
+ 'pkgpart' => $_REQUEST['pkgpart'],
+ );
+
+ $results = $freeside->quotation_add_pkg($args);
+
+ }
+
+ if ( isset($results['error']) && $results['error'] ) {
+ $dest .= '?error=' . $results['error'] . ';pkgpart=' . $_REQUEST['pkgpart'];
+ }
+}
+
+header("Location:$dest");
+
+?>
+