Announcements
Hi All,
I would like to change the value of Default Quantity For Line from "product recipt quantity" to "Ordered quantity"
this is a drop dialog that point to this form VendEditInvoiceDefaultQuantityForLinesDropDialog and i created a handler that initialize le value of the lookup to desired value :
class ITFVendEditInvoiceDefaultQuantityForLinesDropDialog_Handler { /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> [FormEventHandler(formStr(VendEditInvoiceDefaultQuantityForLinesDropDialog), FormEventType::Initialized)] public static void VendEditInvoiceDefaultQuantityForLinesDropDialog_OnInitialized(xFormRun sender, FormEventArgs e) { FormComboBoxControl specQty = sender.control(sender.controlId(formControlStr(VendEditInvoiceDefaultQuantityForLinesDropDialog, SpecQty))) as FormComboBoxControl; specQty.selection(PurchUpdate::All); } }
but nothing changed how can i change it thanks :D
*This post is locked for comments
you need to save this in personalization and then when you invoice PO next time it will prompt you to change it from order quantity to default.
Select no and you will have default set to "Order quantity" next time you invoice the PO.
Hope this helps.
can u please send the post event method x++ code
[quote user="mmoalla"]Hi All,
I would like to change the value of Default Quantity For Line from "product recipt quantity" to "Ordered quantity"
this is a drop dialog that point to this form VendEditInvoiceDefaultQuantityForLinesDropDialog and i created a handler that initialize le value of the lookup to desired value :
class ITFVendEditInvoiceDefaultQuantityForLinesDropDialog_Handler { /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> [FormEventHandler(formStr(VendEditInvoiceDefaultQuantityForLinesDropDialog), FormEventType::Initialized)] public static void VendEditInvoiceDefaultQuantityForLinesDropDialog_OnInitialized(xFormRun sender, FormEventArgs e) { FormComboBoxControl specQty = sender.control(sender.controlId(formControlStr(VendEditInvoiceDefaultQuantityForLinesDropDialog, SpecQty))) as FormComboBoxControl; specQty.selection(PurchUpdate::All); } }
but nothing changed how can i change it thanks :D
I figured out the way to do this. Complete one Invoice Posting "with Order Qty". Next time you will get pop up with recommended to "Product receiptQty" and answer with "NO". Hope this works
I figured out the way to do this. Complete one Invoice Posting "with Order Qty". Next time you will get pop up with recommended to "Product receiptQty" and answer with "NO".
Hi Mehdi, is there anyway we can change default from Front end? Please share the steps if any
I get the solution : create a post event in init method of the form above
Hi Mehdi,
How did you change the records in the PurchParmUpdate table? I assume not with the code mentioned above.
Hi André,
I have 3 ligne in the table purchParamUpdate and i updated them to "Ordred quantity" but the lookup in th form show "product recipt quantity" not "Ordred Quantity"
Hi Medhi,
The value is a database table value. You have to set a data event instead of a form event on a control.
André Arnaud de Cal...
293,302
Super User 2025 Season 1
Martin Dráb
232,108
Most Valuable Professional
nmaenpaa
101,156
Moderator