Professional Documents
Culture Documents
;; TechGuruPlus.com
;; YouTube.com/TechGuruPlus
[System : Formula]
IsEnableDepreciation : Yes;$EnableDepreciation:Company:##SVCurrentCompany
[System: UDF]
DepRate1Half : Number: 21005
DepRate2Half : Number: 21006
[Line : FSDepRateChart]
Field: Medium Prompt
Local: Field: Medium Prompt: Set as: "Depriciation Rate"
; Explode : FSDepRateChart : Yes
[Part : FSDepRateChart]
Line : DepRate1Half, DepRate2Half
Scroll : Vertical
[Line: DepRate1Half]
Field: Medium Prompt, DepRate1Half
Local: Field: Medium Prompt: Set as: "for 1st Half"
Local: Field: Medium Prompt: Align : Right
; Invisible : Not @@IsEnableDepreciation
[Field: DepRate1Half]
Use : Number Field
Storage : DepRate1Half
Invisible : Not @@IsEnableDepreciation
Format : "Percentage"
Align : Right
[Line: DepRate2Half]
Field: Medium Prompt, DepRate2Half
Local: Field: Medium Prompt: Set as: "for 2nd Half"
Local: Field: Medium Prompt: Align : Right
Invisible : Not @@IsEnableDepreciation
[Field: DepRate2Half]
Use : Number Field
Set as : If $$isEmpty:$DepRate2Half Then
$DepRate1Half/2 Else $DepRate2Half
Set Always : Yes
Storage : DepRate2Half
Invisible : Not @@IsEnableDepreciation
Format : "Percentage"
Align : Right
[Line : DepDate]
[Field : DepFromdt]
[Field : ToField]
[Field : DepTodt]
[Part : DepInfoReport]
[Line : FSDepColumnTitles]
Line : FSDepColumnTitles1, FSDepColumnTitles2
[Line : FSDepColumnTitles1]
Border : Thin Top
Use : FSDepInfo
; Fields :
FSDepSerialNo,FSDepParticulars,FSDepDepRate,FSDepOpBal,FSDepAddition1Half,FSDepAddi
tion2Half,FSDepSale,FSDepTotal,FSDepDepreciation,FSDepClosing Bal
[Line : FSDepColumnTitles2]
Border : Thin Bottom
Use : FSDepInfo
; Fields :
FSDepSerialNo,FSDepParticulars,FSDepDepRate,FSDepOpBal,FSDepAddition1Half,FSDepAddi
tion2Half,FSDepSale,FSDepTotal,FSDepDepreciation,FSDepClosing Bal
[Line : FSDepInfo]
Option : FSAlterOnAltEnter
Option : DisplayOnEnter
[!Line: FSAlterOnAltEnter]
Key : FSLine Object AltEnter Alter, Line Click Object Enter Alter
[Field : FSDepSerialNo]
Use : Number Field
Set as : $$Line
; Width : 4% Screen
Style : Normal
Align : Center
[Field : FSDepParticulars]
Use : Name Field
Set as : $Name
Full Width : Yes
; Width : 25% Screen
Style : Normal
Border : Thin Left
Variable: LedgerName
Modifies: LedgerName
Alter : Ledger
Display : Ledger Vouchers
[Field : FSDepDepRate]
Use : Number Field
Set as : $DepRate1Half
; Width : 5% Screen
Style : Normal
Border : Thin Left
Format : "Percentage"
Align : Right
[Field : FSDepOpBal]
[Field : FSDepAddition]
; Use : Name Field
Field : FSDepAddition1Half, FSDepAddition2Half,
Width : @@AmountWidth*2
[Field : FSDepAddition1Half]
[Field : FSDepAddition2Half]
[Field : FSDepSale]
[Field : FSDepTotal]
[Field : FSDepDepreciation]
[Line: FSDepColTotals]
Use : FSDepInfo
Border : Column Titles
Local : Field : Default : Style : Normal Bold
Local : Field : FSDepSerialNo : Info : ""
Local : Field : FSDepParticulars : Info : "Grand Total"
Local : Field : FSDepDepRate : Info : ""
[Collection : FSDepcollection]
Type : Ledger
Child Of : $$GroupFixedAssets
Belongs To : Yes
Fetch : DepRate1Half, DepRate2Half
; Filter : FixedAssets Filter
Sort : @@Default : $DepRate1Half
[System: Formula]
FixedAssets Filter: $OpeningBalance > 0
[Collection : FSDepriciationVchColl]
Parm Var : pvLedgerName : String : "Depreciation A/c"
Parm Var : pvDSPNameStyle : String : "Name Only"
Type : Vouchers : Ledger
Child Of : ##pvLedgerName
Belongs To : Yes
Compute : TotalLedDrVchAmt : $
$OrigVchLedDrTotal:#pvLedgerName:($$SysName:AcctgVchView)
Compute : TotalLedCrVchAmt : $
$OrigVchLedCrTotal:#pvLedgerName:($$SysName:AcctgVchView)
Compute : VchLedName : $
$FuncDSPLedAccName:"No":##pvDSPNameStyle
Compute : FirstContraAccount : $$FirstContraAcc:$
$IsDr:@@TotalLedVchAmt
Compute : TotalLedVchAmt : If $$InPrintMode Then
$$OrigVchLedTotal:#pvLedgerName Else $$OrigVchLedTotal:##pvLedgerName
; Compute : DSPNameStyle : ##DSPNameStyle
Compute : FSTotalDrDepAmt : $
$OrigVchLedDrTotal:##pvLedgerName
Compute : FSTotalCrDepAmt : $
$OrigVchLedCrTotal:##pvLedgerName
Compute : AllocCCLedName : If $$IsEmpty:##pvLedgerName then
"" else $$FuncDSPAccName:##pvLedgerName
; Filter : IsFSLedExist
[System: Formula]
IsFSLedExist : $VchLedName = "Computer A/c" ;#FSDepParticulars