Sales Invoice Subform (page 47)

wolfuliumwolfulium Member Posts: 30
Client asked for defaults to be added when you pick a resource.

in the No. validation method:
{-- code to get pricing info --}
VALIDATE("Unit Price", priceVariable);
{-- end of code to get pricing info (loops and if statements no need to display) --}

VALIDATE("Quantity", 1);

{-- code that was already in the No. Validate method--}
NoOnAfterValidate;
UpdateEditableOnRow;
ShowShortcutDimCode(ShortcutDimCode);
IF xRec."No." <> '' THEN
  RedistributeTotalsOnAfterValidate;


however when I am running the code - it does not update the totals and balances flowfields of the subform until I change the quantity manually in the subform or add a new line. It does not seem to update off the validation.

Thank you ahead of time

Answers

  • allenyyzhouallenyyzhou Member Posts: 142
    Hi

    I suggest you adding your code in Table object, and even better to use event to subscribe "OnAfterValidateEvent" of "No." in "Sales Line" table.
Sign In or Register to comment.