Total Inv. Retail Price & Quantity

This commit is contained in:
FrancescoUK
2018-03-04 17:02:21 +00:00
parent f2ccebc84d
commit 7525c650ab
25 changed files with 60 additions and 3 deletions

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "السعر";
$lang["reports_used"] = "النقاط المستخدمة";
$lang["reports_work_orders"] = "طلبات عمل";
$lang["reports_zero_and_less"] = "صفر و أقل";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Pərakəndə Qiyməti";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "İstifadə Olunan Ballar";
$lang["reports_zero_and_less"] = "Sıfır və Aşağı";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Retail Price";
$lang["reports_used"] = "Points Used";
$lang["reports_work_orders"] = "Work Orders";
$lang["reports_zero_and_less"] = "Zero and less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Verkaufspreis";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Null und weniger";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Verkaufspreis";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Null und weniger";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -119,3 +119,5 @@ $lang["reports_unit_price"] = "Sell Price";
$lang["reports_used"] = "Points Used";
$lang["reports_work_orders"] = "Work Orders";
$lang["reports_zero_and_less"] = "Zero and Less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -119,3 +119,5 @@ $lang["reports_unit_price"] = "Retail Price";
$lang["reports_used"] = "Points Used";
$lang["reports_work_orders"] = "Work Orders";
$lang["reports_zero_and_less"] = "Zero and less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Precio de Venta";
$lang["reports_used"] = "Puntos usados";
$lang["reports_work_orders"] = "Ordenes";
$lang["reports_zero_and_less"] = "Cero y negativos";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Prix au Détail";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Zéro ou moin";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Jedinična cijena";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Nula i manje";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Kisker. ár";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Nulla és kevesebb";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Harga Jual";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Stok habis dan minus";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -121,3 +121,5 @@ $lang["reports_unit_price"] = "Prezzo al dettaglio";
$lang["reports_used"] = "Punti Usati";
$lang["reports_work_orders"] = "Ordini di lavoro";
$lang["reports_zero_and_less"] = "Zero e meno";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Retail Price";
$lang["reports_used"] = "Points Used";
$lang["reports_work_orders"] = "Work Orders";
$lang["reports_zero_and_less"] = "Zero and less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Verkoopprijs";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Nul en minder";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Preço Varejo";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Zero e menor";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Розничная Цена";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Försäljningspris";
$lang["reports_used"] = "Poäng som använts";
$lang["reports_work_orders"] = "Arbetsorders";
$lang["reports_zero_and_less"] = "Noll eller mindre";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "ราคาขาย";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Zero and less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Satış Fiyatı";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Sıfır ve sıfırdan az";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "Giá bán lẻ";
$lang["reports_used"] = "Các điểm bán hàng đã dùng";
$lang["reports_work_orders"] = "Giấy giao việc";
$lang["reports_zero_and_less"] = "Không hay nhỏ hơn";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -118,3 +118,5 @@ $lang["reports_unit_price"] = "單價";
$lang["reports_used"] = "";
$lang["reports_work_orders"] = "";
$lang["reports_zero_and_less"] = "Zero and less";
$lang["reports_total_retail"] = "Total Inv. Retail Value";
$lang["reports_total_quantity"] = "Total Quantity";

View File

@@ -54,11 +54,13 @@ class Inventory_summary extends Report
*/
public function getSummaryData(array $inputs)
{
$return = array('total_inventory_value' => 0);
$return = array('total_inventory_value' => 0, 'total_quantity' => 0, 'total_retail' => 0);
foreach($inputs as $input)
{
$return['total_inventory_value'] += $input['sub_total_value'];
$return['total_quantity'] += $input['quantity'];
$return['total_retail'] += $input['unit_price'] * $input['quantity'];
}
return $return;

View File

@@ -15,10 +15,19 @@
<div id="report_summary">
<?php
foreach($summary_data as $name=>$value)
{
{
if($name == "total_quantity")
{
?>
<div class="summary_row"><?php echo $this->lang->line('reports_'.$name). ': '.to_currency($value); ?></div>
<div class="summary_row"><?php echo $this->lang->line('reports_'.$name) . ': ' .$value; ?></div>
<?php
}
else
{
?>
<div class="summary_row"><?php echo $this->lang->line('reports_'.$name) . ': ' . to_currency($value); ?></div>
<?php
}
}
?>
</div>