web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

e-Invoicing patch for AX 2012 R3

(0) ShareShare
ReportReport
Posted on by

Hi All,

Any updates on the e-Invoicing functionality availability for AX2012R3 for Saudi Arabia.

As per the TAX department, it will be mandatory from Dec 2021

Appreciate any updates on the same.

Thanks

Riyas

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Riyas,

    On LCS there is an information for D365FO available but not for AX2012.

    Would recommend that you get in touch with the MS support to get some additional help and information.

    Best regards,

    Ludwig

  • Suggested answer
    Valentina Dal Monico Profile Picture
    on at

    Hi Riyas,

    the backport of e-invoicing for Saudi Arabia to AX2012 is not planned.

  • Suggested answer
    faiz7049 Profile Picture
    2,382 on at

    Hi Riyas,

    Valentina said. E-Invoicing patch for Saudi Arabia to AX2012 is not planned.

    But you can achieve 1st Phase which is mandatory from DEC 2021 in your post by visiting below link.

    dynamicsaxtod365fo.blogspot.com/.../e-invoicing-phase-1-implementation.html

    Thanks,

    Faiz

  • Community Member Profile Picture
    on at

    Hi faiz7049, can you please check the code in the above link.  The display method class, on compile shows error in the line :

    MessagingToolkit.QRCode.Codec.QRCodeEncoder.encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();

    Any Ideas?

    Riyas

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    I'm not sure if it was an error while typing here, but there is no dot between QRCodeEncoder and encoder.

    Other than that, I noticed that he/she didn't add the dll as a reference to the ax in the link, don't skip it.

    Depending on where you used it, you may need to put it in folders on the server or in the GAC.

    Lastly, If you share the error, we can help you fix it.

  • Suggested answer
    faiz7049 Profile Picture
    2,382 on at

    Hi Riyas,

    What error you are getting?

    Use below code.

    display container qrcode()
    
    {
    
            Bindata bindata = new Bindata();
    
            Image Imgobj;
    
            FileIOPermission    perm = null;
    
            System.Drawing.Image img;
    
            System.Drawing.Bitmap obj;
    
            Filename        filename;
    
            Filepath _path;
    
     container con;
    
    str GRate,CustName,CustNumber,GTot,PONox,Company,Amount1,InvDate1,SalesOrder;
        real Amount;
        date InvDate;
    
    MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
    
    ;
    
      CustNumber=this.custTable_InvoiceAccount().AccountNum;
        CustName=this.custTable_InvoiceAccount().name();
        Company=this.custTable_InvoiceAccount().company();
        InvDate= this.InvoiceDate;
        Amount = this.InvoiceAmountMST;
        SalesOrder=this.SalesId;
        InvDate1=date2str(InvDate,123,2,DateSeparator::Dot,2,DateSeparator::Dot,4,0);
       Amount1=num2str(Amount,2,2,1,0);
    
       obj = new System.Drawing.Bitmap(encoder.Encode("Cust No:"  CustNumber "Cust Name: " CustName " Date: "  InvDate1  " Amount: "  Amount1  " Seller: "  Company));
    
        filename = @"C:\temp\newPhoto.bmp";
    
        perm        = new FileIOPermission(filename, 'RW');
            perm.assert();
    
        //obj = encoder.Encode(CustName);
    
        obj.Save(filename,System.Drawing.Imaging.ImageFormat::get_Bmp());
    
    bindata.loadFile(filename);
    
    con = bindata.getData();
    
    return con;
    }

    Thanks,

    Faiz

  • faiz7049 Profile Picture
    2,382 on at

    Hi Riyas,

    Please update about error which you was getting before. If error resolved please verify answer.

    Thanks,

    Faiz

  • Community Member Profile Picture
    on at

    Hi, The error before got rectified.  But, once I run the sales invoice report, the below error shows up.

    Assembly containing type MessagingToolkit.QRCode.Codec.QRCodeEncoder is not referenced.

    Object 'CLRObject' could not be created

  • faiz7049 Profile Picture
    2,382 on at

    Hi Riyas,

    As mentioned in shared post that before run a Sales report restart AOS and Full Compile the application.

    Did you do? If not, try it.

    Thanks

    Faiz

  • faiz7049 Profile Picture
    2,382 on at

    Hi Rikas,

    Verify answer if issue resloved will help to other in community.

    Thanks,

    Faiz

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans