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
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?