Skip to Content
0

Can't set Due Date through DI API when trying to add A/R Correction Invoice

Jun 12, 2017 at 11:24 AM

125

avatar image

I have a A/R Invoice with dates like this:

Docdate: 2017.04.20
DocDueDate: 2017.05.05
TaxDate: 2017.04.20
VatDate: 2017.04.20

I'm trying to add a correction invoice from it, but when I set either the DocDueDate or the "ExtraDays" field from DI API, it won't do nothing:

Calendar newDueDate = Calendar.getInstance();
newDueDate.add(Calendar.DAY_OF_MONTH, 12); correction.setDocDueDate(newDueDate.getTime());
correction.setExtraDays(12);

After I add the document, the docduedate on the new invoice is 15 extra days, like on the original Invoice.

Docdate: 2017.06.12
DocDueDate: 2017.06.27 (???)
TaxDate: 2017.06.12
VatDate: 2017.06.12

Is this a DI API problem, or do I need to set somehting else?

10 |10000 characters needed characters left characters exceeded

Hi Balazs,

I am trying to figure out what exactly is your "correction" is this DI API? What object are you using? I couldn`t figure what is happening in your code behind your functions.

0

Hi Danilo

Yes, this is DI API Java Connector, I'm trying to add A/R Correction invoice (SBOCOMConstants.BoObjectTypes_Document_oCorrectionInvoice, I belive it's object id is "165")

0

Got it, unfortunately I can`t help in this case, I don`t know about DI Java connector

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers