Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory Details Custom Fields not saving #1343

Open
dfanaei opened this issue Aug 16, 2022 · 1 comment
Open

Inventory Details Custom Fields not saving #1343

dfanaei opened this issue Aug 16, 2022 · 1 comment

Comments

@dfanaei
Copy link

dfanaei commented Aug 16, 2022

I did what you suggested in this post/video to create custom fields for Inventory Details.
https://blog.corebos.org/blog/inventorydetails

The fields are now available in each Inventory line item, however, it gets messed up and the values of the custom fields (number/Currency) changes to a different amount (Mostly to zero or 1.00) when I save.
I am doing this in the quotes module.

image

if you take a look at the custom field (Labour) in the "Painting" and "Drywalling" line item has changed to 1.00.
There are also other line items that were the same product/service and they all changed to 0.

For you reference, This is what I had in the business mapping.

<map> <originmodule>Quotes</originmodule> <targetmodule>InventoryDetails</targetmodule> <linkfields> <originfield>lineitem_id</originfield> <targetfield>lineitem_id</targetfield> </linkfields> <sortfield>sequence_no</sortfield> <detailview> <fields> <field> <fieldtype>corebos</fieldtype> <fieldname>cf_1292</fieldname> <editable>1</editable> <mandatory>1</mandatory> <hidden>0</hidden> </field> <field> <fieldtype>corebos</fieldtype> <fieldname>cf_1293</fieldname> <editable>1</editable> <mandatory>1</mandatory> <hidden>0</hidden> </field> </fields> </detailview> </map>

@joebordes
Copy link
Contributor

joebordes commented Aug 21, 2022

can you please reproduce that in the demo so we can see the field types? Also configure a user with the same currency settings as your local user, in case it has something to do with the decimal and separator symbol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants