Post directly to the G/L from AL Code in Business Central

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 23

  • @bernd7611
    @bernd7611 3 роки тому +9

    Hi Erik, thanks for sharing! A video about dimensions would be great.

  • @anada1124
    @anada1124 3 роки тому

    Great video! This enables us to use the standard functions without copying them.

  • @saouchiilyes9630
    @saouchiilyes9630 3 роки тому +2

    It really is not that complicated indeed ....had to figure it out the hard way back then lol , I for one am interested with dimensions :) , many thanks hougaard !

  • @AlexanderDahl-u6v
    @AlexanderDahl-u6v 2 місяці тому

    I am trying to do this but with lines where I apply customer ledger entries using the apply to field on the journal lines. Then I run into an error caused by the suppressCommit in Codeunit 426 "Payment Tolerance Management". Do you have any idea how I can come around this? I do not find a way to set that in codeunit 12.

  • @wintonwang168
    @wintonwang168 2 роки тому

    How to use Codeunit 90, " Purch.-Post" ? in order to post "Purchase Journal Line" .

  • @wintonwang168
    @wintonwang168 2 роки тому

    How to post Purchase Journal via Custom Web Api ? How to write Code Unit and Page extension ?

  • @klauskaan6320
    @klauskaan6320 3 роки тому +1

    Dimension sets would be a welcome topic :)

  • @heimdaldk
    @heimdaldk 3 роки тому +1

    Great video as always, but it could be nice with a video on the consistent function.

  • @denizlapantov6073
    @denizlapantov6073 Рік тому

    Hi Erik,
    If we have many lines in the journal and some of them have errors. Can we post only those that have no errors. It is a matter of posting already created lines through an automatic procedure.

    • @Hougaard
      @Hougaard  Рік тому

      Should like you need multiple journals to separate auto-created lines from the manual ones.

  • @Mehboob5506
    @Mehboob5506 Рік тому

    in microsoft business central if i posted sales invoice and i used the same GL with two separate lines but when i checked the GL report it merged there as one amount instead of two, is it possible to solve it?

    • @Hougaard
      @Hougaard  Рік тому

      ua-cam.com/video/Js3F0DNCkcQ/v-deo.html

  • @fse7794
    @fse7794 3 роки тому

    Nice, easy and straight forward

  • @XdimidrolX
    @XdimidrolX 3 роки тому +1

    Great one. Dimensions +

  • @IvanLabrador
    @IvanLabrador 3 роки тому

    Hello, excellent video. What is the name of the extension that you use in Visual Studio to see the .app? Thank you.

  • @sonnyjim4047
    @sonnyjim4047 3 роки тому +2

    great ..thanks. dimensions please :)

  • @chankydayalani6970
    @chankydayalani6970 3 роки тому

    This video was just with default fields and explained very well, thanks for that. I think demo for, the new Fields that are required to be created in GL Entry table and passing value into it that too for e. g. just for sales related transactions would be a good one. Isn't it? Or may be it's silly🙄.

    • @Hougaard
      @Hougaard  3 роки тому +1

      I gotta start somewhere, cannot go straight to the advanced stuff :)

  • @AnujShrestha-m5j
    @AnujShrestha-m5j 11 місяців тому

    Thakyou Sir

  • @carstenhansen3979
    @carstenhansen3979 3 роки тому

    VALIDATE(please) - even with the ending cliffhanger ad :-)

    • @Hougaard
      @Hougaard  3 роки тому

      The challenge is, that several onValidate triggers on table 81 are expecting the record to exist (or the journal/batch), so as soon as you start validating in this scenario you'll run into a game of wack-a-mole. I suspect that's the reason Microsoft is not validating either.

    • @carstenhansen3979
      @carstenhansen3979 3 роки тому

      @@Hougaard
      I guess Microsoft is not validating due to the following reasons:
      - TRANSFERFIELDS (legacy from PCC Navigator)
      - Validation might be different from the posting function or system-generated entries
      - Any code change in the GenJnlLine-validation might destroy the posting
      - Microsoft is carefully considering all the fields
      - Microsoft remembers to do VAT
      Personally I would prefer to insert a GenJnlLine because the posting is locking anyway.
      If Microsoft adds a field assignment in Codeunit 80, you better remember to include it in your code. With validation you might get a free lunch.
      When checking the code, please look at all fields in the posted records and not only the ones visible to the user.