From: Hugo Villeneuve Date: Wed, 22 Jan 2014 15:30:11 +0000 (-0500) Subject: Rename constant X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=503ca40e90b9a9df5e78b377f15fc6bdbaba801a;p=eda-utils.git Rename constant --- 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 . ")"); }