DESKTOP EDITION CLOUD EDITION SERVER EDITION GUIDES FORUM

Custom field defaults missing when using Copy To


#1

@lubos this looks like a bug. i checked this on 18.1.84

the defaults defined for custom fields under Form Defaults for sales invoice do not appear when using Copy To function from a Sales Quote or Sales Order.

the same thing happens when Sales quote is copied to Sales Order and also when Sales invoice is copied to Sales quote or Sales order or Delivery Note. that is all i have checked. i did not check copying to other forms.

the defaults appear fine when creating a form directly.

to summarize, no defaults defined for custom fields appear when using Copy To function.

i am not sure of the other tabs though.


Custom field text box not showing on sales invoices
#2

Fixed in the latest version (18.7.31)


#3

Something went wrong with this change, @lubos. Now, if a form is copied to another, content of a custom field (which may have been modified from any default when the source form was created) overwrites the existing default content for the target form under Form Defaults.

For example, a Notes custom field is created on both sales quotes and sales invoices, and the sales invoice custom field has default content set:

19%20PM

A sales quote is created with the following content in its Notes field:

11%20PM

The sales quote is copied to a new sales invoice. At that point, the content of the Notes field from the sales quote carries over to the sales invoice. This seems appropriate, because information related to the specific sale should carry forward. However, this seems to contradict what you wrote about the change at version 18.7.31. @sharpdrivetek complained that default content for the target forms were not used, and you said that had been fixed, implying that default content would be substituted for specific content. If that is what you meant, it is not happening.

More importantly, I don’t think it should happen. Previously, the Copy to function has overridden defaults with transaction-specific information. In my opinion, that is as it should be. Otherwise, what is the point of having matching custom field labels?

The bigger problem, however, is that the Copy to action actually changes the Form Defaults for the target form. After the foregoing action is complete, the default custom field content for sales invoices has been changed to match the content of the custom field from the sales quote. What was specific content for one transaction form has become default content for a different type form.

I am putting this topic into the Bugs category.


#4

Isn’t the solution here, is not to have custom fields with the same name in different forms where there can be content conflict.

If Sales Quotes has a custom field called Notes then that custom field content gets transferred with Copy To.
If Sales Invoices also has a custom field called Notes but with Form Default content, then the User has setup a content conflict clash.


#5

Yes, this is how it’s meant to work. Form defaults will be used only if custom field cannot be copied from the source document (in this case from the quote).

This was a bug. Fixed in the latest version (18.7.34). Good that you caught it, I can only imagine how confusing this would be!


#6

This sounds like the intuitive approach to me.