on 09-17-2008 1:53 PM
I am creating sales credit notes which are tax free but despite being able to set the tax to a 0 rated code it is being written to file using the default code defined against the BP.
A colleague had a similar issue with DTW and came to the conclusion that it was not possible to use anything other than the tax code from the BP.
Has anyone come up against this before?
Gordon
Dear Gordon,
Ther eis a note released by SAP :
1061747 : DI -Tax missing at header level of invoice based on delivery.
From the note :
***********************************************************
Long text
Symptom
When you use the following code in the DI to create an invoice based on
a delivery, the Tax is missing at the header level:
oInvoice.Lines.TaxCode = ODelivery.lines.taxcode or
oInvoice.Lines.VatGroup = ODelivery.lines.VatGroup (according to the
localization)
This code shouldn't be used, since this value is copied automatically
when create a based document.
As a result the total for the document will be different than the one
in the Delivery, as it will not include the tax.
*******************************************************************
For more details, please check the note from SMP.
Regards
Arshdeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Arshdeep,
that's useful to know but I don't think it addresses my issue as I am creating credit notes from scratch and not basing them on an earlier record. It looks to me as if there is a bug in the SDK that does not allow you to use a tax code other than the one on the BP header.
Gordon
Vasu,
this is an interface from an external system and it has created 151 credit notes for dozens of BP's so I am pretty sure that the issue ios not related to one BP.
I have used a temparary workaround whereby I am storing the current tax code of the BP and then changing it to the one i need for the transaction about to be written. I then replace the original tax code on the BP. This is not ideal though as I have another iterface that will need to create transactions for a mixture of tax codes.
Gordon
Hi Gordon,
I just tested your scenario and got the same results - the default tax code for the BP is always used, rather than the one you defined & as this is not the same behaviour as the application would be considered an issue with the DI API.
As for the support for the SDK, we are still here
We will follow up on your message here in support and contact you soon in relation to it.
Regards,
Niall
SAP Business One Forums
Hi Gordon,
I have looked into this further and after a few more tests and a bit of research I found that if you use "VatGroup" rather than "TaxCode", you will get the desired results.
I will log a request to have the documentation adjusted to reflect this as at present it is not entirely clear.
Regards,
Niall
SAP Business One Forums
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.