You are on page 1of 7

;https://drive.google.

com/file/d/1b88ZDErPpa0BhdDyxPw62C3lgE5l4rQJ/view
;**********************************************************;
;*********************================*********************;
;*********************| Explore Busy |*********************;
;*********************================*********************;
;**********************************************************;

[#Menu : Accounts Info.]

Title : $$LocaleString:"Accounts Info."


Add : Key Item : Before : @@LocQuit : GST Ledger Master Import
: L : Execute : GSTLedger Import
Add : key Item : Before : @@LocQuit : Blank

[Report : GSTLedger Import]

Form : GSTLedger Updation


Title : $$LocaleString:"Import GST Ledger Master [Powered By
ExploreBusy]"
Auto : Yes

[Form : GSTLedger Updation]

No Confirm : Yes
Space Top : 1
Space Left : 1
Space Right : 1
Space Bottom : 1
Option : Small Size Form
Full Width : No
Full Height : No
Vertical Align : Centre
Parts : GSTLedger Updation Title, GSTLedger Updation Details

On : Form Accept : Yes : CALL : GSTLedger Updation


;Button : GST Ledger Template Button

[Part : GSTLedger Updation Title]

Lines : GSTLedger Updation , GSTLedger Updation Info

[Line : GSTLedger Updation]

Fields : Form Sub Title


Space Bottom : 0.25
Local : Field : Form Sub Title : Info : $$LocaleString:"Import
GST Ledger Master [Powered By ExploreBusy]"

[Line : GSTLedger Updation Info]

Field : Simple Field


Space Bottom : 0.75
Local : Field : Simple Field : Info : $$LocaleString:"(Only
Specific Excel Format is Supported Like .xls or .xlsx)"
Local : Field : Simple Field : Full Width : Yes
Local : Field : Simple Field : Align : Centre
[Part : GSTLedger Updation Details]

Lines : GSTLedger ImportFileName, GSTLedger ImportSheetName


Local : Line : Default : Space Top : 1 MMS
Local : Line : Default : Space Bottom : 1 MMS

[Line : GSTLedger ImportFileName]

Field : Medium Prompt, GSTLedger ImportFileName


Local : Field : Medium Prompt : Info : $
$LocaleString:"Import File Name (Excel) :"

[Field : GSTLedger ImportFileName]

Use : Name Field


Set as : "C:\Tally\Tally.ERP9.493\(7) EXCEL To Tally LeggerImport-
(Add)ok.xlsx"
Width : @@NarrWidth
Full Width : Yes

[Field : GST LedgersList]

Use : Name Field


Table : GSTLedger Updation
Show Table : Always
Set Always : Yes

[Line : GSTLedger ImportSheetName]

Field : Medium Prompt, GSTLedger ImportSheetName


Local : Field : Medium Prompt : Info : $
$LocaleString:"Sheet Name:"

[Field : GSTLedger ImportSheetName]

Use : Name Field


Set as : "Sheet1"
Width : @@NarrWidth
Full Width : Yes

[Function : GSTLedger Updation]

Variable : RCnt : Number


Variable : CCnt : Number
Variable : APTotRCount : Number : 2
Variable : APFilePath : String
Variable : SPShetName : String
Variable : NumAddress : Number : 0
Variable : LedAddressCount : Number : 0
Variable : GSTLedName : String

;Variable : GSTLedGrp : String

Variable : GSTLedAlias : String


; Variable : FirstLedgerName : String
G01 : Call : GSTLedger Importgroup

001 : Set : APFilePath : #GSTLedgerImportFileName


005 : Set : SPShetName : #GSTLedgerImportSheetName
010 : Open File : ##APFilePath : Excel : Read
020 : Set Active Sheet : ##SPShetName

032 : While : Not $$IsEmpty:($$FileReadCell:##APTotRCount:1)


034 : Increment : APTotRCount
036 : End While

040 : Start Progress : ##APTotRCount : ##SVCurrentCompany : "GST


Ledger Updation" : "Please Wait..."
041 : Set : RCnt : 2

042 : While : Not $$IsEmpty:($$FileReadCell:##RCnt:2)


044 : Set : GSTLedName : $$FileReadCell:##RCnt:2

051 : New Object : Ledger : ##GSTLedName : Yes ;; ok


052 : Set Value : NAME : If $$IsEmpty:$
$FileReadCell:##RCnt:3 Then "" Else $$FileReadCell:##RCnt:3

052A : insert collection object : language name : GSTLedAlias ;ok


052B : set value : name : $$FileReadCell:##RCnt:2
; 052c : Alter Target : ..
052D : set target : ..

060 : Set Value : OpeningBalance : If $$IsEmpty:$$FileReadCell:##RCnt:4


Then "" Else $$FileReadCell:##RCnt:4

070 : Set Value : Parent : $$FileReadCell:##RCnt:5


080 : Set Value : CountryName1 : If $$IsEmpty:$
$FileReadCell:##RCnt:6 Then "" Else $$FileReadCell:##RCnt:6
;; 090 : Set Value : LedStateName : If $$IsEmpty:$
$FileReadCell:##RCnt:7 Then "" Else $$FileReadCell:##RCnt:7 ;; For Prime
090 : Set Value : StateName : If $$IsEmpty:$
$FileReadCell:##RCnt:7 Then "" Else $$FileReadCell:##RCnt:7

105 : SET VALUE : Pincode : If $$IsEmpty:$


$FileReadCell:##RCnt:8 Then "" Else $$FileReadCell:##RCnt:8
110 : Set Value : LedFailSqYd : If $$IsEmpty:$
$FileReadCell:##RCnt:9 Then "" Else $$FileReadCell:##RCnt:9

115 : SET VALUE : LedgerContact : If $$IsEmpty:$


$FileReadCell:##RCnt:10 Then "" Else $$FileReadCell:##RCnt:10
120 : SET VALUE : LedgerMobile : If $$IsEmpty:$
$FileReadCell:##RCnt:11 Then "" Else $$FileReadCell:##RCnt:11
125 : SET VALUE : LedgerPhone : If $$IsEmpty:$
$FileReadCell:##RCnt:12 Then "" Else $$FileReadCell:##RCnt:12
130 : SET VALUE : LedgerFax : If $$IsEmpty:$
$FileReadCell:##RCnt:13 Then "" Else $$FileReadCell:##RCnt:13
140 : SET VALUE : Email : If $$IsEmpty:$
$FileReadCell:##RCnt:14 Then "" Else $$FileReadCell:##RCnt:14
145 : SET VALUE : IncomeTaxNumber : If $$IsEmpty:$
$FileReadCell:##RCnt:15 Then "" Else $$FileReadCell:##RCnt:15
150 : SET VALUE : SalesTaxNumber : If $$IsEmpty:$
$FileReadCell:##RCnt:16 Then "" Else $$FileReadCell:##RCnt:16
155 : SET VALUE : LedPok : If $$IsEmpty:$
$FileReadCell:##RCnt:17 Then "" Else $$FileReadCell:##RCnt:17
156 : SET VALUE : InterStateSTNumber : If $$IsEmpty:$
$FileReadCell:##RCnt:18 Then "" Else $$FileReadCell:##RCnt:18

160 : SET VALUE : Mobile_Number : If $$IsEmpty:$


$FileReadCell:##RCnt:19 Then "" Else $$FileReadCell:##RCnt:19
165 : SET VALUE : Narration : If $$IsEmpty:$
$FileReadCell:##RCnt:20 Then "" Else $$FileReadCell:##RCnt:20
170 : SET VALUE : LedPok : If $$IsEmpty:$
$FileReadCell:##RCnt:21 Then "" Else $$FileReadCell:##RCnt:21
171 : SET VALUE : MG Led DINo : If $$IsEmpty:$
$FileReadCell:##RCnt:22 Then "" Else $$FileReadCell:##RCnt:22

; 180 : SET VALUE : Address : If $$IsEmpty:$


$FileReadCell:##RCnt:23 Then "" Else $$FileReadCell:##RCnt:23 + ", " ;+ (##RCnt:22)
;+ ##RCnt:22

; 181 : Insert Collection Object : ADDRESS :


#I45Address1 ;; :##GSTLedName
; 182 : SET VALUE : Address : If $$IsEmpty:$$FileReadCell:##RCnt:24 Then
"" Else $$FileReadCell:##RCnt:24
; 183 : setTarget: ..

; 184 : Insert Collection Object : ADDRESS : #I45Address2 ;$$Line = 1+


($$Owner:$$NumItems:Address
; 185 : SET VALUE : Address : If $$IsEmpty:$$FileReadCell:##RCnt:25 Then
"" Else $$FileReadCell:##RCnt:25 ;;+ ##RCnt:22
; 186 : setTarget: ..

; 187 : Insert Collection Object : ADDRESS : #I45Address3


; 188 : SET VALUE : Address : If $$IsEmpty:$$FileReadCell:##RCnt:26 Then
"" Else $$FileReadCell:##RCnt:26
; 189 : setTarget: ..
/*
;http://tdlexpert.com/index.php?threads/ledger-master-import-from-excel.11194/
#post-45451
;http://tdlexpert.com/index.php?threads/ledger-master-import-from-excel.11194/
#post-45448
;08a1 : If:NOT $$isempty:$NSLedAdd1
;08a2 : SET VALUE : Address : $NSLedAdd1
;08a3 : END IF
;08a4 : Set Target:..

;08b : Insert Collection Object : ADDRESS


;08b1 : If:NOT $$isempty:$NSLedAdd2
;08b2 : SET VALUE : Address : $NSLedAdd2
;08b3 : END IF
;08b4 : Set Target:..
*/

; 190 : Set Value : GSTRegistrationType:If $$IsEmpty:$


$FileReadCell:##RCnt:25 Then "" Else $$FileReadCell:##RCnt:25
; 195 : Set Value : PartyGSTIN : If $$IsEmpty:$
$FileReadCell:##RCnt:26 Then "" Else $$FileReadCell:##RCnt:26
200 : Alter Target
;; 200 : Create Target
210 : Increment : RCnt
220 : Show Progress : ##RCnt
230 : End While

[Function : GSTLedger Importgroup]

Variable : GSTCurGroup : STring

001 : Set : APFilePath : #GSTLedgerImportFileName


005 : Set : SPShetName : #GSTLedgerImportSheetName

010 : Open File : ##APFilePath : Excel : Read


020 : Set Active Sheet : ##SPShetName

032 : While : Not $$IsEmpty:($$FileReadCell:##APTotRCount:1)


034 : Increment : APTotRCount
036 : End While

041 : Set : RCnt : 2

042 : While : Not $$IsEmpty:($$FileReadCell:##RCnt:5)

044 : Set : GSTCurGroup : $$FileReadCell:##RCnt:5

052 : If : Not ($$NumItems:GSTLedgerGroups > 0)

053 : New Object : Group : ##GSTCurGroup : Yes


054 : Set Value : Name : $$FileReadCell:##RCnt:5
055 : Set Value : PARENT : "# Primary"
056 : Create Target
059 : End If

060 : Increment : RCnt


070 : End While

[Collection : GSTLedger Groups]

Type : Group
Format : $Name
Filter : GSTCurGroup

[System:Formulae]
NS_AliasName : $$SysName:AliasName
$OnlyAlias:Ledger:@@SoldToName
NS_Alias : $$SysName:OnlyAlias
[System:Formulae]
NS_AliasName : $$SysName:AliasName
OnlyAlias:Ledger:@@SoldToName

[System : Formula]
GSTCurGroup : $Name = ##GSTCurGroup
; StateName : $StateName = LedStateName
; LedStateName : $StateName = StateName
StateName:Ledger:##LedgerName
GSTLedAlias : LedgerAlias = $OnlyAlias:Ledger:##LedgerName

;==========================================================================
/*
[#Object: Company]
_Name : $Name
_Address1 : $$ReptField:Address:1
_Address2 : $$ReptField:Address:2
_Address3 : $$ReptField:Address:3
_Address4 : $$ReptField:Address:4
_Address5 : $$ReptField:Address:5

;==============================================================================
; http://tdlexpert.com/index.php?threads/ledger-master-import-from-
excel.11194/#post-45451
08a : Insert Collection Object : ADDRESS
08a1 : If:NOT $$isempty:$NSLedAdd1
08a2 : SET VALUE : Address : $NSLedAdd1
08a3 : END IF
08a4 : Set Target:..

08b : Insert Collection Object : ADDRESS


08b1 : If:NOT $$isempty:$NSLedAdd2
08b2 : SET VALUE : Address : $NSLedAdd2
08b3 : END IF
08b4 : Set Target:..
;===================================================================

[#Import Object: I45Group]

Object : Group : #I45Name

Storage : Name,1 : if #I45Name = "Sales Account" then $


$GroupSales else +
if #I45Name = "Purchase Account" then $
$GroupPurchase else +
if #I45Name = "Suspense Account" then $
$GroupSuspense else +
if #I45Name = "Income (Revenue)" then $
$GroupIndirectIncomes else +
#I45Name
Storage : Name,2 : #I45Alias
Storage : Parent : @@I45Group

[#Import Object: I45Ledger]

Object : Ledger : #I45Name

Storage : Name,1 : #I45Name


Storage : Name,2 : #I45Alias
Storage : Parent : @@I45Group
Storage : Mailing Name : #I45Mailing
Storage : Address,1 : #I45Address1
Storage : Address,2 : #I45Address2
Storage : Address,3 : #I45Address3
Storage : IncomeTaxNumber : #I45ITNo
Storage : SalesTaxNumber : #I45STNo
Storage : IsBillWiseOn : #I45Bills = "Billwise"
Storage : IsCostCentresOn : $IsCostCentresOn:Group:$Parent
Storage : AffectsStock : $AffectsStock:Group:$Parent
Storage : IsCondensed : $IsCondensed:Group:$Parent
Storage : OpeningBalance : #I45Opening
*/

You might also like