Cleanup. Don't show edit/credit links in popup transactions/inquiry.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 27 Oct 2011 06:42:30 +0000 (08:42 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 27 Oct 2011 06:42:30 +0000 (08:42 +0200)
purchasing/inquiry/supplier_inquiry.php
sales/inquiry/customer_inquiry.php

index f07ddec1da152b7ade2c9290d15f4446e69fed75..5eff15da75547757f465fec09c70e9bffbd20252 100644 (file)
@@ -123,6 +123,8 @@ function gl_view($row)
 
 function credit_link($row)
 {
+       if (@$_REQUEST['popup'])
+               return '';
        return $row['type'] == ST_SUPPINVOICE && $row["TotalAmount"] - $row["Allocated"] > 0 ?
                pager_link(_("Credit This"),
                        "/purchasing/supplier_credit.php?New=1&invoice_no=".
index d3fc6976de51e2e35103a385c475805eaff79e4e..0b3d2bfdfd12a00d8821d06b05d34e05e352e707 100644 (file)
@@ -154,6 +154,8 @@ function fmt_credit($row)
 \r
 function credit_link($row)\r
 {\r
+       if (@$_REQUEST['popup'])\r
+               return '';\r
        return $row['type'] == ST_SALESINVOICE && $row["Outstanding"] > 0 ?\r
                pager_link(_("Credit This") ,\r
                        "/sales/customer_credit_invoice.php?InvoiceNumber=". $row['trans_no'], ICON_CREDIT):'';\r
@@ -163,6 +165,8 @@ function edit_link($row)
 {\r
        $str = '';\r
 \r
+       if (@$_REQUEST['popup'])\r
+               return '';\r
        switch($row['type']) {\r
        case ST_SALESINVOICE:\r
                if (get_voided_entry(ST_SALESINVOICE, $row["trans_no"]) === false && $row['Allocated'] == 0)\r