You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a Pricing Rule where Item B is setup as a free item for Item A. When user added Item A system automatically adds Item B to the document. Currently there is no reliable way to identify which row in the Items table triggered the addition of the free item
Possible Solution
Adding a new field in child table that holds the primary key (name) of the row that triggered the free item.
Limitations
On an unsaved new Sales Invoice, Items have auto-generated temporary names (ex: new-sales-invoice-item-sdjkfg).
Before save
| name | Item Code | ... | Linked to | context |
|-------------------------------+-----------+-----+-------------------------------+----------------------------|
| new-sales-invoice-item-sdjkfg | Item A | | | Primary Item added by user |
| new-sales-invoice-item-eirwhn | Item B | | new-sales-invoice-item-sdjkfg | free item added by system |
This gets overridden by upon first save with an hash name, due to which the link becomes invalid on first save.
After save
| name | Item Code | ... | Linked to | context |
|--------+-----------+-----+-------------------------------+----------------------------|
| erutfg | Item A | | | Primary Item added by user |
| lkdfjg | Item B | | new-sales-invoice-item-sdjkfg | free item added by system |
The text was updated successfully, but these errors were encountered:
Issue
Consider a Pricing Rule where
Item B
is setup as a free item forItem A
. When user addedItem A
system automatically addsItem B
to the document. Currently there is no reliable way to identify which row in the Items table triggered the addition of the free itemPossible Solution
Adding a new field in child table that holds the primary key (
name
) of the row that triggered the free item.Limitations
On an unsaved new Sales Invoice,
Items
have auto-generated temporary names (ex: new-sales-invoice-item-sdjkfg).Before save
This gets overridden by upon first save with an hash name, due to which the link becomes invalid on first save.
After save
The text was updated successfully, but these errors were encountered: