X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Fcsv-import-from-shell.sh;h=db705c89febb10bedbb5e88870f864b9a12fa626;hb=35617a68898e491aec8cdc12a8036b1632030bf2;hp=277e8fcdc8bf39cb4c05c8cbf2b75dbe2978ae9f;hpb=1f3fea6c844add4f42c4e5ee22dcb688867876a2;p=kivitendo-erp.git diff --git a/scripts/csv-import-from-shell.sh b/scripts/csv-import-from-shell.sh old mode 100644 new mode 100755 index 277e8fcdc..db705c89f --- a/scripts/csv-import-from-shell.sh +++ b/scripts/csv-import-from-shell.sh @@ -14,6 +14,7 @@ # ---- Logindaten und URL anpassen: ---- login=MyLxOfficeUserName password=MySecretPassword +client_id=ClientDatabaseID url='https://localhost/kivitendo-erp/controller.pl' function fail { @@ -65,7 +66,7 @@ function do_curl { # "settings.apply_buchungsgruppe": Buchungsgruppe wo anwenden: # "never", "all", "missing" - # "settings.parts_type": Artikeltyp: "part", "service", "mixed" + # "settings.part_type": Artikeltyp: "part", "service", "mixed" # "settings.article_number_policy": Artikel mit existierender # Artikelnummer: "update_prices", "insert_new" @@ -126,13 +127,14 @@ function do_curl { -F 'settings.default_buchungsgruppe=395' \ -F 'settings.duplicates=no_check' \ -F 'settings.numberformat=1.000,00' \ - -F 'settings.parts_type=part' \ + -F 'settings.part_type=part' \ -F 'settings.sellprice_adjustment=0' \ -F 'settings.sellprice_adjustment_type=percent' \ -F 'settings.sellprice_places=2' \ -F 'settings.shoparticle_if_missing=0' \ -F "{AUTH}login=${login}" \ -F "{AUTH}password=${password}" \ + -F "{AUTH}client_id=${client_id}" \ -F "file=@${file}" \ ${url} }