Skip to content

Commit

Permalink
Implementing 2.7, more
Browse files Browse the repository at this point in the history
fannie/batches/UNFI/load-classes/CorwinUploadPage.php
fannie/batches/UNFI/load-classes/NealBrothersUploadPage.php
fannie/batches/UNFI/load-classes/ONFCuploadPage.php
fannie/mem/modules/AR_newer.php
fannie/mem/modules/EquityRefund.php
fannie/mem/modules/Prepay.php
fannie/mem/modules/StoreCharge.php
fannie/reports/DepartmentTop10/DepartmentTop10Report.php
  • Loading branch information
flathat committed Sep 20, 2017
1 parent 79678ad commit f65ee1c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fannie/batches/UNFI/load-classes/CorwinUploadPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function preprocess()
// preprocess
}

function process_file($linedata)
public function process_file($linedata, $indexes)
{
global $FANNIE_OP_DB;
//$this->results_details = "Begin process_file()";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function preprocess()
// preprocess
}

function process_file($linedata)
public function process_file($linedata, $indexes)
{
global $FANNIE_OP_DB;
//$this->results_details = "Begin process_file()";
Expand Down
2 changes: 1 addition & 1 deletion fannie/batches/UNFI/load-classes/ONFCuploadPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function preprocess()
// preprocess
}

function process_file($linedata)
public function process_file($linedata, $indexes)
{
global $FANNIE_OP_DB;
//$this->results_details = "Begin process_file()";
Expand Down
2 changes: 1 addition & 1 deletion fannie/mem/modules/AR_newer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function ShowEditForm($memNum,$country="US")
return $ret;
}

function SaveFormData($memNum)
function SaveFormData($memNum, $json=array())
{
global $FANNIE_ROOT;
$dbc = $this->db();
Expand Down
3 changes: 2 additions & 1 deletion fannie/mem/modules/EquityRefund.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ function ShowEditForm($memNum,$country="US"){
return $ret;
}

function SaveFormData($memNum){
function SaveFormData($memNum, $json=array())
{
global $FANNIE_ROOT;
$dbc = $this->db();
if (!class_exists("CustdataModel")) {
Expand Down
3 changes: 2 additions & 1 deletion fannie/mem/modules/Prepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ function ShowEditForm($memNum,$country="US"){
return $ret;
}

function SaveFormData($memNum){
function SaveFormData($memNum, $json=array())
{
global $FANNIE_ROOT;
$dbc = $this->db();
if (!class_exists("CustdataModel")) {
Expand Down
3 changes: 2 additions & 1 deletion fannie/mem/modules/StoreCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ function ShowEditForm($memNum,$country="US"){
return $ret;
}

function SaveFormData($memNum){
function SaveFormData($memNum, $json=array())
{
global $FANNIE_ROOT;
$dbc = $this->db();
if (!class_exists("CustdataModel")) {
Expand Down
10 changes: 6 additions & 4 deletions fannie/reports/DepartmentTop10/DepartmentTop10Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function fetch_report_data()
($row['dollars'] - $row['cost']) / $row['qty']);
*/
/* Markup as proportion: .nn or percent nn.nn */
$markup = sprintf('%.2f', $row['qty'] == 0 ? 0 :
$markup = sprintf('%.2f', $row['cost'] == 0 ? 0 :
(($row['dollars'] - $row['cost']) / $row['cost']) * $pp);
$record[] = $margin;
$record[] = $markup;
Expand All @@ -394,7 +394,8 @@ function fetch_report_data()
number_format($deptTopRings,0),
number_format($deptTopQuantity,2),
sprintf('$%s', number_format($deptTopSales,2)),
sprintf('%.2f%%', (($deptTopSales/$deptTotalSales)*100)),
sprintf('%.2f%%', $deptTotalSales == 0 ? 0 :
(($deptTopSales/$deptTotalSales)*100)),
"$sectionFooterLabel",'',''));
$deptFooter['meta'] = FannieReportPage::META_BOLD;
$ret[] = $deptFooter;
Expand Down Expand Up @@ -485,7 +486,7 @@ function fetch_report_data()
($row['dollars'] - $row['cost']) / $row['qty']);
*/
/* Markup as proportion: .nn or percent nn.nn */
$markup = sprintf('%.2f', $row['qty'] == 0 ? 0 :
$markup = sprintf('%.2f', $row['cost'] == 0 ? 0 :
(($row['dollars'] - $row['cost']) / $row['cost']) * $pp);
$record[] = $margin;
$record[] = $markup;
Expand All @@ -511,7 +512,8 @@ function fetch_report_data()
number_format($deptTopRings,0),
number_format($deptTopQuantity,2),
sprintf('$%s', number_format($deptTopSales,2)),
sprintf('%.2f%%', (($deptTopSales/$deptTotalSales)*100)),
sprintf('%.2f%%', $deptTotalSales == 0 ? 0 :
(($deptTopSales/$deptTotalSales)*100)),
"$sectionFooterLabel",'',''));
$deptFooter['meta'] = FannieReportPage::META_BOLD;
$ret[] = $deptFooter;
Expand Down

0 comments on commit f65ee1c

Please sign in to comment.