projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wrong Permission for Inventory Purchasing Report (rep306.php). Fixed.
[fa-stable.git]
/
reporting
/
rep306.php
diff --git
a/reporting/rep306.php
b/reporting/rep306.php
index 5aa110418b524a7fa52910f58c8e8a68cfea47c8..3ce3a86025bd49314d54a4d5a60f706e7f390300 100644
(file)
--- a/
reporting/rep306.php
+++ b/
reporting/rep306.php
@@
-9,7
+9,7
@@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 'SA_S
ALES
ANALYTIC';
+$page_security = 'SA_S
UPPLIER
ANALYTIC';
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// Creator: Joe Hunt
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// Creator: Joe Hunt
@@
-39,7
+39,6
@@
function getTransactions($category, $location, $fromsupp, $item, $from, $to)
item.description, item.inactive,
move.loc_code,
supplier.supplier_id , IF(ISNULL(grn.rate), credit.rate, grn.rate) ex_rate,
item.description, item.inactive,
move.loc_code,
supplier.supplier_id , IF(ISNULL(grn.rate), credit.rate, grn.rate) ex_rate,
- supplier.supplier_id,
supplier.supp_name AS supplier_name,
move.tran_date,
move.qty AS qty,
supplier.supp_name AS supplier_name,
move.tran_date,
move.qty AS qty,
@@
-225,9
+224,7
@@
function print_inventory_purchase()
}
$curr = get_supplier_currency($trans['supplier_id']);
}
$curr = get_supplier_currency($trans['supplier_id']);
- //$rate = get_exchange_rate_from_home_currency($curr, sql2date($trans['tran_date']));
- $rate = $trans['ex_rate'];
- $trans['price'] *= $rate;
+ $trans['price'] *= $trans['ex_rate'];
$rep->NewLine();
$trans['supp_reference'] = get_supp_inv_reference($trans['supplier_id'], $trans['stock_id'], $trans['tran_date']);
$rep->fontSize -= 2;
$rep->NewLine();
$trans['supp_reference'] = get_supp_inv_reference($trans['supplier_id'], $trans['stock_id'], $trans['tran_date']);
$rep->fontSize -= 2;
@@
-269,7
+266,7
@@
function print_inventory_purchase()
$rep->NewLine();
$rep->NewLine();
$total_supp = $total_qty = 0.0;
$rep->NewLine();
$rep->NewLine();
$total_supp = $total_qty = 0.0;
- $supplier_name =
$trans['supplier_name']
;
+ $supplier_name =
isset($trans['supplier_name']) ? $trans['supplier_name'] : ""
;
}
}
if ($supplier_name != '')
}
}
if ($supplier_name != '')