Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calculating DueDate by PaymentTerms from a given Start-Date

Hi @All !

Does anybody know a function within B1-SDK which calculates a DueDate by PaymentTerms from a given Start-Date?

I've found the

StartFrom-

NumberOfAdditionalMonths- and

NumberOfAdditionalDays-

propertys of the PaymentTermsTypes Object. The last two are nice for .NET-date calculation-methods.

But StartFrom must be "interpreted" correctly from a given Date. Is there any existing function like

Public Shared Function GetDueDate( _
       ByVal RefDate As System.DateTime, _ 
       ByVal PaymTerms As SAPbobsCOM.PaymentTermsTypes _
) As System.DateTime

which does everything automatically like it's done in an invoice when changing the PaymentTerms in B1 GUI?

Thanks,

Roland

Former Member
Former Member replied

Hi Roland,

Your question is answered now ?

Alan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question