<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcStatusManagement.TryStatus</id>
	<title>PdcStatusManagement.TryStatus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcStatusManagement.TryStatus"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcStatusManagement.TryStatus&amp;action=history"/>
	<updated>2026-05-06T14:25:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcStatusManagement.TryStatus&amp;diff=3232&amp;oldid=prev</id>
		<title>TC: Created page with &quot;== Declaration == TryStatus(strCalcNr As String, strStatusIdent As String) as Boolean  == Description == This function checks if a particular calculation can have a certain st...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcStatusManagement.TryStatus&amp;diff=3232&amp;oldid=prev"/>
		<updated>2020-07-07T11:34:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == TryStatus(strCalcNr As String, strStatusIdent As String) as Boolean  == Description == This function checks if a particular calculation can have a certain st...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
TryStatus(strCalcNr As String, strStatusIdent As String) as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This function checks if a particular calculation can have a certain status. For example you can not change the status of a calculation to completely invoiced if there are still delivery note lines of this calculations that have not been invoiced yet.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The strStatusIdent refers to a value in the cs_autostatusname column. Only active statuses can be used.  &lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This code example first checks which status the calculation would get after saving an invoice with the specified lines. And then checks if this calculation is allowed to have that status.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
			Dim strFutureStatus As String = PDC.App.Calculations.StatusManagement.CalcLiveInvoiceStatus(aCalcNr, aTFRIDStringList, aDelNoteNrStringList, aDelNotePosStringList)&lt;br /&gt;
			Dim strError As String = &amp;quot;&amp;quot;&lt;br /&gt;
			If Not PDC.App.Calculations.StatusManagement.TryStatus(aCalcNr, strFutureStatus) Then&lt;br /&gt;
				strError = PDC.App.LastError&lt;br /&gt;
				_ErrMsg.Append(strError)&lt;br /&gt;
				Return False&lt;br /&gt;
			End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since August 2020 (From version 5.6)&lt;/div&gt;</summary>
		<author><name>TC</name></author>
	</entry>
</feed>