Discussion:
tax with AIF LedgerPurchaseInvoiceService
(too old to reply)
Freezie
2009-11-12 20:38:02 UTC
Permalink
Hello all,

I am using AIF service LedgerPurchaseInvoiceService to create purchase
invoices. The schema does not contain any references for taxes, so if the
amounts in the document are different from the calculated amounts in Ax, I
need to override them with corrected sales tax amounts.

After AIF call to create invoice, I tried using business connector to
create/update records in table TaxWorkRegulation. I can see it update the
value 'corrected sales tax amount' in the purchase invoice form, but when I
click on the sales tax button, I don't see the lines I created.

On TaxWorkRegulation table, headingRecId and headingTableId fields are
pointing to the correct record. What am I missing?

Any advice on an alternate way to do this?

Thanks
Vijay Solanki
2011-12-01 08:55:22 UTC
Permalink
Hi....

Are you able to create purchase invoice using LedgerPurchaseInvoiceService?

I m trying to do this in ax 2012, i can create an entry in LedgerJournalTable but i can't create lines in LedgerJournalTrans.

At that moment it gives me the exception that Invalid xml document.

If u have C# code for the same then plz post it.

Thanks in advance.
Post by Freezie
Hello all,
I am using AIF service LedgerPurchaseInvoiceService to create purchase
invoices. The schema does not contain any references for taxes, so if the
amounts in the document are different from the calculated amounts in Ax, I
need to override them with corrected sales tax amounts.
After AIF call to create invoice, I tried using business connector to
create/update records in table TaxWorkRegulation. I can see it update the
value 'corrected sales tax amount' in the purchase invoice form, but when I
click on the sales tax button, I do not see the lines I created.
On TaxWorkRegulation table, headingRecId and headingTableId fields are
pointing to the correct record. What am I missing?
Any advice on an alternate way to do this?
Thanks
Vijay Solanki
2011-12-01 08:58:48 UTC
Permalink
Hi..

Are you able to create purchase invoice using LedgerPurchaseInvoiceService?

I am trying to do the same, i can create an entry in LedgerJournalTable but i can't create lines in LedgerJournalTrans.

And the exception is Invalid Xml document.

If u have the C# code for the same then plz post it.

Thanks in advance.
Post by Freezie
Hello all,
I am using AIF service LedgerPurchaseInvoiceService to create purchase
invoices. The schema does not contain any references for taxes, so if the
amounts in the document are different from the calculated amounts in Ax, I
need to override them with corrected sales tax amounts.
After AIF call to create invoice, I tried using business connector to
create/update records in table TaxWorkRegulation. I can see it update the
value 'corrected sales tax amount' in the purchase invoice form, but when I
click on the sales tax button, I do not see the lines I created.
On TaxWorkRegulation table, headingRecId and headingTableId fields are
pointing to the correct record. What am I missing?
Any advice on an alternate way to do this?
Thanks
Post by Vijay Solanki
Hi....
Are you able to create purchase invoice using LedgerPurchaseInvoiceService?
I m trying to do this in ax 2012, i can create an entry in LedgerJournalTable but i can't create lines in LedgerJournalTrans.
At that moment it gives me the exception that Invalid xml document.
If u have C# code for the same then plz post it.
Thanks in advance.
Loading...