Skip to content

Min-max validation for AWG unit #1351

@fatalwir

Description

@fatalwir

Hello,

When importing components, such as wire terminals, which have the wire diameter parameter in AWG units then the value validation breaks because AWG units have their values in reverse (the smaller the diameter, the bigger the AWG value).

An example of such component might be the following:
https://www.tme.eu/en/details/dg300-5.0-2p12/pcb-terminal-blocks/degson-electronics/dg300-5-0-02p-12-00a-h/

The expected behaviour would be reversing the min and max values in the comparison for this specific unit.

Server Side

  • Part-DB Version: 2.9.1 (Docker)
  • PHP Version: 8.4.18 (SAPI: fpm-fcgi)
  • Database Server: sqlite 3.40.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions