X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fquotation_pkg_detail.html;h=c1f9b2b196c4f8a1a2fdc07f98b251a72418f026;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hp=9e4ac3222aa101314f84eda2d930e676f1752f00;hpb=9db332d80967969856c5b5fe8b6ac91304734b04;p=freeside.git diff --git a/httemplate/edit/process/quotation_pkg_detail.html b/httemplate/edit/process/quotation_pkg_detail.html index 9e4ac3222..c1f9b2b19 100644 --- a/httemplate/edit/process/quotation_pkg_detail.html +++ b/httemplate/edit/process/quotation_pkg_detail.html @@ -1,12 +1,12 @@ % if ( $error ) { -<% header('Error') %> +<& /elements/header-popup.html, 'Error' &> <% $error |h %>

% } else { -<% header($action) %> +<& /elements/header-popup.html, $action &> % } @@ -26,8 +26,16 @@ my $quotation_pkg = qsearchs({ 'LEFT JOIN cust_main USING ( custnum )', 'hashref' => { 'quotationpkgnum' => $pkgnum }, 'extra_sql' => ' AND '. $curuser->agentnums_sql, +}) +|| qsearchs({ + 'table' => 'quotation_pkg', + 'addl_from' => 'LEFT JOIN quotation USING ( quotationnum )'. + 'LEFT JOIN prospect_main USING ( prospectnum )', + 'hashref' => { 'quotationpkgnum' => $pkgnum }, + 'extra_sql' => ' AND '. $curuser->agentnums_sql, }); + my @orig_details = $quotation_pkg->details(); my $action = 'Quotation details'.