cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

former_member233854
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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")

former_member233854
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (0)