Minor fix in import customer command #70
This commit is contained in:
parent
94e758ba1c
commit
2895bb772e
1 changed files with 1 additions and 33 deletions
|
|
@ -157,38 +157,6 @@ class ImportCustomerCommand extends Command
|
||||||
{
|
{
|
||||||
$csv_file = $input->getArgument('file');
|
$csv_file = $input->getArgument('file');
|
||||||
|
|
||||||
/*
|
|
||||||
old CSV column order:
|
|
||||||
** NO LONGER APPLIES
|
|
||||||
0 - internal id
|
|
||||||
1 - name
|
|
||||||
2 - duplicate (yes or blank)
|
|
||||||
3 - date created
|
|
||||||
4 - date last modified
|
|
||||||
5 - phone
|
|
||||||
6 - company (plate number)
|
|
||||||
7 - email
|
|
||||||
8 - login access
|
|
||||||
9 - fax
|
|
||||||
10 - billing address 1 (blank)
|
|
||||||
11 - billing address 2 (blank)
|
|
||||||
12 - billing city (blank)
|
|
||||||
13 - billing state / province (blank)
|
|
||||||
14 - billing zip (blank)
|
|
||||||
15 - billing country (blank)
|
|
||||||
16 - job title (blank)
|
|
||||||
17 - category (blank)
|
|
||||||
18 - office phone
|
|
||||||
19 - mobile phone
|
|
||||||
20 - home phone
|
|
||||||
21 - date created
|
|
||||||
22 - date last modified
|
|
||||||
23 - first name
|
|
||||||
24 - last name
|
|
||||||
25 - login access
|
|
||||||
26 - role
|
|
||||||
*/
|
|
||||||
|
|
||||||
// attempt to open file
|
// attempt to open file
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -255,7 +223,7 @@ class ImportCustomerCommand extends Command
|
||||||
$fields[self::F_OFFICE_PHONE],
|
$fields[self::F_OFFICE_PHONE],
|
||||||
$fields[self::F_FAX],
|
$fields[self::F_FAX],
|
||||||
$fields[self::F_EMAIL],
|
$fields[self::F_EMAIL],
|
||||||
$fields[self::F_NOTES]
|
isset($fields[self::F_NOTES]) ? $fields[self::F_NOTES] : ''
|
||||||
];
|
];
|
||||||
$cust_row = str_replace('\\', '\\\\', implode('|', $cust_fields)) . "\n";
|
$cust_row = str_replace('\\', '\\\\', implode('|', $cust_fields)) . "\n";
|
||||||
fputs($cust_file, $cust_row);
|
fputs($cust_file, $cust_row);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue