Announcement

Collapse
No announcement yet.

Same fieled names in different fntities

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Same fieled names in different fntities

    Hello everybody,

    we have created two new fields in different entities. These fields have the same name (e.g. fooUnit). The fields are located in the entities "product" and "QuoteItem". The field (fooUnit) from the product is written to the field of the same name (fooUnit) in the QuoteItem when it is created. As soon as we change something in the position (e.g. the quantity) the field "fooUnit" is empty.

    If we rename one of the two fields e.g. fooUnitTest everything works fine.

    Can you help me with this problem?
    Thank you very much!

    Tim
    Last edited by Tim4667; 06-13-2018, 05:20 PM.

  • #2
    Hi Tim,

    I will take a look.

    Comment


    • #3
      How you fill a quote item field with a value from a product? Maybe the problem is there.

      Comment


      • #4

        Thank you for the quick reply!

        We use formula to fill the field. (formula is located in QuoteItem)

        HTML Code:
        ifThen(
            entity\isNew() && product != null,
            fooUnit=product.fooUnit
        );
        But if wie rename one of the fields (e.g. fooUnitTest) and change the formula everything works:

        HTML Code:
        ifThen(
            entity\isNew() && product != null,
            fooUnitTest=product.fooUnit
        );

        Comment


        • #5
          I tried but could not reproduce. After changing the quantity the field keeps its value. Field names are identical.
          Last edited by yurikuzn; 06-14-2018, 11:59 AM.

          Comment


          • #6
            What version of advanced pack do you have?

            Comment


            • #7
              Advanced Pack 1.29.0
              Espo 5.1.2

              Comment


              • #8
                I'd recommend upgrading to a newer version.

                Comment


                • #9
                  Quotes are improved in the latest version: https://www.espocrm.com/extensions/a...release-notes/

                  Comment


                  • #10
                    Okay, we'll try. I'll let you know if it works.

                    Thx!

                    Comment


                    • #11
                      Now it works!

                      Thank you very much for your support!

                      Comment

                      Working...
                      X