CBAM
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
Imports System.Drawing.Printing
|
||||
Imports GrapeCity.ActiveReports
|
||||
Imports VERAG_PROG_ALLGEMEIN.DSFinVKService
|
||||
Imports VERAG_PROG_ALLGEMEIN.TESTJSON
|
||||
|
||||
Public Class cRKSV
|
||||
Shared SQL As New SQL
|
||||
@@ -1003,10 +1004,10 @@ Public Class cRKSV
|
||||
Shared Function getGJ_FIRMA(BelegDat As Date, FIRMA As String) As Integer
|
||||
If FIRMA = "" Then FIRMA = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Select Case FIRMA
|
||||
Case "IMEX", "FRONTOFFICE", "UNISPED", "AMBAR"
|
||||
Return BelegDat.Year
|
||||
Case Else
|
||||
Case "VERAG", "ATILLA"
|
||||
Return IIf(BelegDat.Month = 1, BelegDat.Year - 1, BelegDat.Year)
|
||||
Case Else
|
||||
Return BelegDat.Year
|
||||
End Select
|
||||
|
||||
End Function
|
||||
@@ -1014,7 +1015,7 @@ Public Class cRKSV
|
||||
Shared Function getGJ(BelegDat As Date, Optional FIRMA_ID As Integer = -1) As Integer
|
||||
'If FIRMA = "" Then FIRMA = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Select Case FIRMA_ID
|
||||
Case -1, 1, 3, 11, 7, 19, 15 'Abweichendes WJ
|
||||
Case -1, 1, 3, 11, 7, 15 'Abweichendes WJ
|
||||
Return IIf(BelegDat.Month = 1, BelegDat.Year - 1, BelegDat.Year)
|
||||
Case Else
|
||||
Return BelegDat.Year
|
||||
@@ -1043,21 +1044,23 @@ Public Class cRKSV
|
||||
'End Function
|
||||
|
||||
|
||||
Shared Function getGJ_EndOfYear(GeschaerftsJahr As Integer) As Date
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "IMEX", "FRONTOFFICE"
|
||||
Return CDate("31.12." & GeschaerftsJahr)
|
||||
Case Else
|
||||
Shared Function getGJ_EndOfYear(GeschaerftsJahr As Integer, Optional FIRMA As String = "") As Date
|
||||
If FIRMA = "" Then FIRMA = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Select Case FIRMA
|
||||
Case "VERAG", "ATILLA"
|
||||
Return CDate("31.01." & (GeschaerftsJahr + 1))
|
||||
Case Else
|
||||
Return CDate("31.12." & GeschaerftsJahr)
|
||||
End Select
|
||||
End Function
|
||||
|
||||
Shared Function getGJ_BeginOfYear(GeschaerftsJahr As Integer) As Date
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "IMEX", "FRONTOFFICE"
|
||||
Return CDate("01.01." & GeschaerftsJahr)
|
||||
Case Else
|
||||
Shared Function getGJ_BeginOfYear(GeschaerftsJahr As Integer, Optional FIRMA As String = "") As Date
|
||||
If FIRMA = "" Then FIRMA = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Select Case FIRMA
|
||||
Case "VERAG", "ATILLA"
|
||||
Return CDate("01.02." & GeschaerftsJahr)
|
||||
Case Else
|
||||
Return CDate("01.01." & GeschaerftsJahr)
|
||||
End Select
|
||||
End Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user