Agentshevy Posted October 23, 2015 Posted October 23, 2015 On a simple invoice DB I built, while adding line items, how can I automatically increase the quantity of the product for products that have already been added.. Rather than having duplicate items occupy the invoice... Items are added via script... Thanks
LaRetta Posted October 23, 2015 Posted October 23, 2015 (edited) Script trigger can handle it nicely (please see attached). Overview: Script trigger attached to LineItem Quantity field OnObjectExit tests if there same product is on same invoice If so, entered quantity is added to the 'other' duplicate (see relational graph for filtered join). Then the current portal row is deleted. An added benefit of deleting the record is that, if one uses Revert Record/Request at this point, other changes in the parent could be lost as well. In addition, if one reverts the current new record in the portal, FM refuses to set the related quantity and still allow reversion of the 'parent' line item. CombineLines.fmp12.zip Edited October 23, 2015 by LaRetta 1
Agentshevy Posted October 28, 2015 Author Posted October 28, 2015 Thanks for your reply... I am very grateful
Recommended Posts
This topic is 3609 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now