Skip to content

Impossible to set initial stockLevel from CSV Import? #1264

Open
@jpubb

Description

@jpubb

# Bug description

When attemping to import stockLevel, the value of "Stock" in the front end table views is not altered (remains 0).

To test, we use a fairly minimal import field mapping preset:

PartKeepr.PartBundle.Entity.Part > name
PartKeepr.PartBundle.Entity.Part > description
PartKeepr.PartBundle.Entity.Part > comment
PartKeepr.PartBundle.Entity.Part > internalPartNumber
PartKeepr.PartBundle.Entity.Part > category
PartKeepr.PartBundle.Entity.Part > storageLocation

partPartKeeprStockBundleEntityStockEntries > [x] create new item
partPartKeeprStockBundleEntityStockEntries > stockLevel

Looks like this...
image

When importing, everything except stockLevel was imported.

System Information

  • PartKeepr Version: 1.4.0
  • Operating System: Ubuntu 20.04.1 LTS
  • Web Server: Apache
  • PHP Version: PHP 7.2.34-36+ubuntu20.04.1+deb.sury.org+1 (cli)
  • Database and version: /usr/sbin/mysqld Ver 8.0.32-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))
  • Reproducible on the demo system: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions