Faktura Address edit

This commit is contained in:
Rainer Gümpelein 2022-03-18 14:51:25 +01:00
parent 6a99d40224
commit 41ba9e252e
8 changed files with 46 additions and 78 deletions

View file

@ -15,7 +15,7 @@
#file Teilrad_ISI_PLUS_BB01207.txt
#iconv -t utf-8 -f iso-8859-1 Ilockitkeys_110520.csv -o Ilockitkeys_110520_utf8.cs
#
#sudo su www-data -c "./src/scripts/Ilockit_CSV2DB.pl shareedms-fr01 Teilrad_ISI_GPS_BB01328.txt"
#sudo su www-data -c "./src/scripts/Ilockit_CSV2DB.pl shareedms-kn ../shareeconf/smartlock-keys/Ilockit-16-BB01742_1v2.csv"
#
#do it twice to set hex-key and bike-nr!
#
@ -25,7 +25,7 @@ BEGIN {
$syshost = $ARGV[0] || exit 1;
}
use lib "/var/www/copri4/$syshost/src";
use lib "/var/www/copri-bike/$syshost/src";
my $csv_file = $ARGV[1] || "";
@ -47,7 +47,7 @@ my $dbt = new DBtank;
my $lang = "de";
my $now_dt = strftime "%Y-%m-%d %H:%M:%S", localtime;
my $dbh = "";
my $main_id = 300001;#TODO Mietrad Flotten ID
my $main_id = 300101;#TODO Lastenrad Flotten ID
my $template_id = 205;
###
@ -95,9 +95,9 @@ my $template_id = 205;
int04 => "0",#station Werkstatt
int10 => "5",#defect
int11 => "2",#Ilockit
int20 => "1",#locked
txt01 => "unverbaut", #Bezeichnung #TODO
txt04 => "aus Lieferung vom 29.11.2021", #Besonderheiten
int20 => "2",#unlocked
txt01 => "Lastenrad neu", #Bezeichnung #TODO
txt04 => "aus Lieferung vom 08.03.2022", #Besonderheiten
txt15 => "", #Firmware
txt17 => "", #GUID from APP
txt23 => "$csv->{$id}->{c1} $csv->{$id}->{c2} $csv->{$id}->{c3} $csv->{$id}->{c4} $csv->{$id}->{c5} $csv->{$id}->{c6}",