From 503ca40e90b9a9df5e78b377f15fc6bdbaba801a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 22 Jan 2014 10:30:11 -0500 Subject: [PATCH] Rename constant --- bomgen/bomgen.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bomgen/bomgen.php b/bomgen/bomgen.php index d22fbf2..1581e01 100755 --- a/bomgen/bomgen.php +++ b/bomgen/bomgen.php @@ -23,7 +23,7 @@ $digikey_bom = false; $kits = 1; $use_inventory = false; -define("DATA_ROW_START", 3); +define("XLS_DATA_ROW_START", 3); define("PAPER_US_LETTER", 1); @@ -356,7 +356,7 @@ if ($digikey_bom) { die($worksheet->getMessage()); } - $row_num = DATA_ROW_START; + $row_num = XLS_DATA_ROW_START; /* Écriture des colonnes d'entête. */ $k = 0; @@ -443,7 +443,7 @@ if ($digikey_bom) { /* Ajout cellule prix total. */ xls_write_price($row_num, $col_id_to_xls_num["TotalCost"], "=SUM(" . col_to_letter($col_id_to_xls_num["TotalCost"]) . - (DATA_ROW_START + 2) . ":" . col_to_letter($col_id_to_xls_num["TotalCost"]) . + (XLS_DATA_ROW_START + 2) . ":" . col_to_letter($col_id_to_xls_num["TotalCost"]) . $row_num . ")"); } -- 2.20.1