RKSV, cFakt,
This commit is contained in:
@@ -2157,7 +2157,7 @@ Public Class cRKSV
|
||||
Return GJ.INCREASE_JOURNAL()
|
||||
End Function
|
||||
|
||||
Public Shared Function insertKB(PERSONAL As cPersonal, BELEG As EABeleg, RKSV_id As Integer, RKSV_Beleg_Id As Integer, RKSV_aktiv As Integer, ByRef JournalNr As Integer, Firma As String, POSFIBU As Integer, Optional Finanzwege As String = "Bar", Optional BelegSofortInFIBUverbuchten As Boolean = False)
|
||||
Public Shared Function insertKB(PERSONAL As cPersonal, BELEG As EABeleg, RKSV_id As Integer, RKSV_Beleg_Id As Integer, RKSV_aktiv As Integer, ByRef JournalNr As Integer, Firma As String, POSFIBU As Integer, BelegNrFIBU As String, Optional Finanzwege As String = "Bar", Optional BelegSofortInFIBUverbuchten As Boolean = False)
|
||||
Try
|
||||
If BELEG.POS.Count = 0 Then
|
||||
MsgBox("Keine Positionen gefunden")
|
||||
@@ -2391,7 +2391,7 @@ Public Class cRKSV
|
||||
'################
|
||||
|
||||
If BelegSofortInFIBUverbuchten AndAlso (BELEG.Beleg_TYP = "L" Or BELEG.Beleg_TYP = "K") Then
|
||||
CreateSyskaBuchung(RKSV_id, BELEG, KBEntry_List, KBEntryGB_List, KBEntryST_List, IIf(BELEG.Beleg_TYP = "L", "AUSZAHLUNG", "EINZAHLUNG"))
|
||||
CreateSyskaBuchung(RKSV_id, BELEG, KBEntry_List, KBEntryGB_List, KBEntryST_List, IIf(BELEG.Beleg_TYP = "L", "AUSZAHLUNG", "EINZAHLUNG"), BelegNrFIBU)
|
||||
End If
|
||||
|
||||
BELEG.gebucht = True
|
||||
@@ -2538,7 +2538,7 @@ Public Class cRKSV
|
||||
Public Shared Property DefaultMandant As Integer = IIf(VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM, 9, 7)
|
||||
Public Shared Property DefaultKassenkonto As Integer = 2700
|
||||
|
||||
Public Shared Function CreateSyskaBuchung(RKSV_id As Integer, beleg As EABeleg, KBEntry_list As List(Of cKassenbuch), KBEntryGB_list As List(Of cKassenbuch), KBEntryST_list As List(Of cKassenbuch), typ As String) As Boolean
|
||||
Public Shared Function CreateSyskaBuchung(RKSV_id As Integer, beleg As EABeleg, KBEntry_list As List(Of cKassenbuch), KBEntryGB_list As List(Of cKassenbuch), KBEntryST_list As List(Of cKassenbuch), typ As String, BelegUID As String) As Boolean
|
||||
|
||||
|
||||
If beleg Is Nothing Then Throw New ArgumentNullException(NameOf(beleg))
|
||||
@@ -2597,13 +2597,14 @@ Public Class cRKSV
|
||||
Throw New InvalidOperationException("Kann keine Belegnummer erzeugen.")
|
||||
End If
|
||||
|
||||
' update nummern table only if we will actually book (betrag<>0)
|
||||
If betrag <> 0 Then
|
||||
sql.doSQL("UPDATE [FIBU2].dbo.fibu_nummern SET i_nummer_refid = " & SafeIntToSql(i_beleg_refid) & " WHERE i_firm_refid = " & SafeIntToSql(mandant) & " AND c_nummernart LIKE 'Buchungsnummer'", "FIBU")
|
||||
End If
|
||||
|
||||
'eigene Ermittlung der Belegnummer erforderlich!!!!!
|
||||
|
||||
Dim FIBU_YEAR = jahr
|
||||
Dim BelegNrUID As String = "BR"
|
||||
Dim BelegNrUID = "BR"
|
||||
'If periode = 1 Then FIBU_YEAR = FIBU_YEAR - 1
|
||||
BelegNrUID &= FIBU_YEAR.ToString.Substring(2, 2)
|
||||
BelegNrUID &= i_beleg_refid.ToString("D5")
|
||||
|
||||
Reference in New Issue
Block a user