-
Notifications
You must be signed in to change notification settings - Fork 42
/
tally-export-config-incremental.yaml
937 lines (937 loc) · 25.8 KB
/
tally-export-config-incremental.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
master:
- name: mst_group
collection: Group
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:Group:$Parent
type: text
- name: primary_group
field: _PrimaryGroup
type: text
- name: is_revenue
field: IsRevenue
type: logical
- name: is_deemedpositive
field: IsDeemedPositive
type: logical
- name: is_reserved
field: IsReserved
type: logical
- name: affects_gross_profit
field: AffectsGrossProfit
type: logical
- name: sort_position
field: SortPosition
type: number
cascade_update:
- table: mst_group
field: parent
- table: mst_ledger
field: parent
- name: mst_ledger
collection: Ledger
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:Group:$Parent
type: text
- name: alias
field: OnlyAlias
type: text
- name: description
field: Description
type: text
- name: notes
field: Narration
type: text
- name: is_revenue
field: IsRevenue
type: logical
- name: is_deemedpositive
field: IsDeemedPositive
type: logical
- name: opening_balance
field: OpeningBalance
type: amount
- name: closing_balance
field: ClosingBalance
type: amount
- name: mailing_name
field: MailingName
type: text
- name: mailing_address
field: if $$IsEmpty:$Address then "" else $$FullList:Address:$Address
type: text
- name: mailing_state
field: LedStateName
type: text
- name: mailing_country
field: CountryName
type: text
- name: mailing_pincode
field: PinCode
type: text
- name: email
field: Email
type: text
- name: it_pan
field: IncomeTaxNumber
type: text
- name: gstn
field: if $$IsEmpty:$PartyGSTIN then $LedGSTRegDetails[Last].GSTIN else $PartyGSTIN
type: text
- name: gst_registration_type
field: if $$IsEmpty:$Gstregistrationtype then $LedGSTRegDetails[Last].Gstregistrationtype else $Gstregistrationtype
type: text
- name: gst_supply_type
field: Gsttypeofsupply
type: text
- name: gst_duty_head
field: Gstdutyhead
type: text
- name: tax_rate
field: RateOfTaxCalculation
type: number
- name: bank_account_holder
field: Bankaccholdername
type: text
- name: bank_account_number
field: BankDetails
type: text
- name: bank_ifsc
field: Ifscode
type: text
- name: bank_swift
field: Swiftcode
type: text
- name: bank_name
field: Bankingconfigbank
type: text
- name: bank_branch
field: BankBranchname
type: text
- name: bill_credit_period
field: $$Number:$BillCreditPeriod
type: number
cascade_update:
- table: trn_accounting
field: ledger
- table: trn_cost_centre
field: ledger
- table: trn_cost_category_centre
field: ledger
- table: trn_cost_inventory_category_centre
field: ledger
- table: trn_bill
field: ledger
- table: trn_bank
field: ledger
cascade_delete:
- table: mst_opening_bill_allocation
field: _ledger
- table: trn_closingstock_ledger
field: _ledger
- name: mst_vouchertype
collection: VoucherType
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: Parent
type: text
- name: _parent
field: $Guid:VoucherType:$Parent
type: text
- name: numbering_method
field: NumberingMethod
type: text
- name: is_deemedpositive
field: IsDeemedPositive
type: logical
- name: affects_stock
field: AffectsStock
type: logical
cascade_update:
- table: mst_vouchertype
field: parent
- table: trn_voucher
field: voucher_type
- name: mst_uom
collection: Unit
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Symbol
type: text
- name: formalname
field: FormalName
type: text
- name: is_simple_unit
field: IsSimpleUnit
type: logical
- name: base_units
field: BaseUnits
type: text
- name: additional_units
field: AdditionalUnits
type: text
- name: conversion
field: Conversion
type: number
cascade_update:
- table: mst_stock_item
field: uom
- name: mst_godown
collection: Godown
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:Godown:$Parent
type: text
- name: address
field: if $$IsEmpty:$Address then "" else $$FullList:Address:$Address
type: text
cascade_update:
- table: mst_godown
field: parent
- table: mst_opening_batch_allocation
field: godown
- table: trn_inventory
field: godown
- table: trn_batch
field: godown
- table: trn_batch
field: destination_godown
- name: mst_stock_group
collection: StockGroup
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:StockGroup:$Parent
type: text
cascade_update:
- table: mst_stock_group
field: parent
- table: mst_stock_item
field: parent
- name: mst_stock_item
collection: StockItem
nature: Primary
fetch:
- GstDetails,PartNo
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:StockGroup:$Parent
type: text
- name: alias
field: OnlyAlias
type: text
- name: description
field: Description
type: text
- name: notes
field: Narration
type: text
- name: part_number
field: PartNo
type: text
- name: uom
field: if $$IsEqual:$BaseUnits:$$SysName:NotApplicable then "" else $BaseUnits
type: text
- name: _uom
field: $Guid:Unit:$BaseUnits
type: text
- name: alternate_uom
field: if $$IsEqual:$AdditionalUnits:$$SysName:NotApplicable then "" else $AdditionalUnits
type: text
- name: _alternate_uom
field: $Guid:Unit:$AdditionalUnits
type: text
- name: conversion
field: Conversion
type: number
- name: opening_balance
field: $$StringFindAndReplace:($$Number:$$String:$OpeningBalance):"(-)":"-"
type: number
- name: opening_rate
field: OpeningRate
type: rate
- name: opening_value
field: OpeningValue
type: amount
- name: closing_balance
field: $$StringFindAndReplace:($$Number:$$String:$ClosingBalance):"(-)":"-"
type: number
- name: closing_rate
field: ClosingRate
type: rate
- name: closing_value
field: ClosingValue
type: amount
- name: costing_method
field: CostingMethod
type: text
- name: gst_type_of_supply
field: GSTMSTTypeofSupply
type: text
- name: gst_hsn_code
field: InfGSTHSNCode
type: text
- name: gst_hsn_description
field: InfGSTHSNDescription
type: text
- name: gst_rate
field: InfGSTIGSTRate
type: text
- name: gst_taxability
field: InfGSTTaxablility
type: text
cascade_update:
- table: trn_inventory
field: item
- table: trn_batch
field: item
- table: trn_cost_inventory_category_centre
field: item
- table: mst_stockitem_standard_cost
field: item
- table: mst_stockitem_standard_price
field: item
cascade_delete:
- table: mst_gst_effective_rate
field: _item
- table: mst_opening_batch_allocation
field: _item
- table: mst_stockitem_standard_cost
field: _item
- table: mst_stockitem_standard_price
field: _item
- name: mst_cost_category
collection: CostCategory
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: allocate_revenue
field: AllocateRevenue
type: logical
- name: allocate_non_revenue
field: AllocateNonRevenue
type: logical
cascade_update:
- table: mst_cost_centre
field: parent
- table: trn_cost_category_centre
field: costcentre
- table: trn_cost_inventory_category_centre
field: costcentre
- name: mst_cost_centre
collection: CostCentre
nature: Primary
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: name
field: Name
type: text
- name: parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Parent
type: text
- name: _parent
field: if $$IsEqual:$Parent:$$SysName:Primary then "" else $Guid:CostCategory:$Parent
type: text
- name: category
field: Category
type: text
cascade_update:
- table: trn_cost_centre
field: costcentre
- table: trn_cost_category_centre
field: costcentre
- table: trn_cost_inventory_category_centre
field: costcentre
- name: mst_gst_effective_rate
collection: StockItem.GstDetails
nature: Derived
filters:
- NOT $$IsEmpty:$GstApplicable
fields:
- name: item
field: Name
type: text
- name: _item
field: $Guid:StockItem:$Name
type: text
- name: applicable_from
field: Applicablefrom
type: date
- name: hsn_description
field: Hsn
type: text
- name: hsn_code
field: HsnCode
type: text
- name: rate
field: if NOT $$IsEmpty:$StateWiseDetails then $StateWiseDetails[First].RateDetails[3].GstRate else 0
type: number
- name: is_rcm_applicable
field: IsReverseChargeApplicable
type: logical
- name: nature_of_transaction
field: GstNatureOfTransaction
type: text
- name: nature_of_goods
field: NatureOfGoods
type: text
- name: supply_type
field: SupplyType
type: text
- name: taxability
field: Taxability
type: text
- name: mst_opening_batch_allocation
collection: StockItem.BatchAllocations
nature: Derived
fields:
- name: name
field: BatchName
type: text
- name: item
field: ..Name
type: text
- name: _item
field: $Guid:StockItem:$..Name
type: text
- name: opening_balance
field: $$StringFindAndReplace:($$Number:$$String:$OpeningBalance):"(-)":"-"
type: amount
- name: opening_rate
field: OpeningRate
type: rate
- name: opening_value
field: OpeningValue
type: amount
- name: godown
field: GodownName
type: text
- name: _godown
field: $Guid:Godown:$GodownName
type: text
- name: manufactured_on
field: MfdOn
type: date
- name: mst_opening_bill_allocation
collection: Ledger.BillAllocations
nature: Derived
fields:
- name: ledger
field: ..Name
type: text
- name: _ledger
field: $Guid:Ledger:$..Name
type: text
- name: opening_balance
field: OpeningBalance
type: amount
- name: bill_date
field: BillDate
type: date
- name: name
field: Name
type: text
- name: trn_closingstock_ledger
collection: Ledger.LedgerClosingValues
nature: Derived
fetch:
- LedgerClosingValues
filters:
- $$IsLedOfGrp:$Name:$$GroupStock
fields:
- name: ledger
field: Name
type: text
- name: _ledger
field: $Guid:Ledger:$..Name
type: text
- name: stock_date
field: Date
type: date
- name: stock_value
field: Amount
type: amount
- name: mst_stockitem_standard_cost
collection: StockItem.StandardCostList
nature: Derived
fetch:
- StandardCostList
fields:
- name: item
field: Name
type: text
- name: _item
field: $Guid:StockItem:$Name
type: text
- name: date
field: Date
type: date
- name: rate
field: Rate
type: rate
- name: mst_stockitem_standard_price
collection: StockItem.StandardPriceList
nature: Derived
fetch:
- StandardPriceList
fields:
- name: item
field: Name
type: text
- name: _item
field: $Guid:StockItem:$Name
type: text
- name: date
field: Date
type: date
- name: rate
field: Rate
type: rate
transaction:
- name: trn_voucher
collection: Voucher
nature: Primary
fetch:
- AlterId,Narration,PartyLedgerName,PlaceOfSupply,Reference,ReferenceDate
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: alterid
field: AlterId
type: number
- name: date
field: Date
type: date
- name: voucher_type
field: VoucherTypeName
type: text
- name: _voucher_type
field: $Guid:VoucherType:$VoucherTypeName
type: text
- name: voucher_number
field: VoucherNumber
type: text
- name: reference_number
field: Reference
type: text
- name: reference_date
field: ReferenceDate
type: date
- name: narration
field: Narration
type: text
- name: party_name
field: PartyLedgerName
type: text
- name: _party_name
field: if $$IsEmpty:$PartyLedgerName then "" else $Guid:Ledger:$PartyLedgerName
type: text
- name: place_of_supply
field: PlaceOfSupply
type: text
- name: is_invoice
field: IsInvoice
type: logical
- name: is_accounting_voucher
field: if $$IsAccountingVch:$VoucherTypeName then 1 else 0
type: logical
- name: is_inventory_voucher
field: if $$IsInventoryVch:$VoucherTypeName then 1 else 0
type: logical
- name: is_order_voucher
field: if $$IsOrderVch:$VoucherTypeName then 1 else 0
type: logical
cascade_delete:
- table: trn_accounting
field: guid
- table: trn_inventory
field: guid
- table: trn_cost_centre
field: guid
- table: trn_cost_category_centre
field: guid
- table: trn_cost_inventory_category_centre
field: guid
- table: trn_bill
field: guid
- table: trn_bank
field: guid
- table: trn_batch
field: guid
- name: trn_accounting
collection: Voucher.AllLedgerEntries
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$LedgerName
type: text
- name: amount
field: Amount
type: amount
- name: amount_forex
field: if $$IsEmpty:$$ForexValue:$Amount then 0 else $$StringFindAndReplace:(if $$IsDebit:$Amount then -$$ForexValue:$Amount else $$ForexValue:$Amount):"(-)":"-"
type: amount
- name: currency
field: $$Currency:$Amount
type: text
- name: trn_inventory
collection: Voucher.AllInventoryEntries
nature: Derived
fetch:
- AllInventoryEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: item
field: StockItemName
type: text
- name: _item
field: $Guid:StockItem:$StockItemName
type: text
- name: quantity
field: ActualQty
type: quantity
- name: rate
field: Rate
type: rate
- name: amount
field: Amount
type: amount
- name: additional_amount
field: AddlAmount
type: amount
- name: discount_amount
field: Discount
type: number
- name: godown
field: GodownName
type: text
- name: _godown
field: $Guid:Godown:$GodownName
type: text
- name: tracking_number
field: if ($$IsEmpty:$TrackingNumber or $$IsNotApplicable:$TrackingNumber) then "" else $TrackingNumber
type: text
- name: order_number
field: if ($$IsEmpty:$OrderNo or $$IsNotApplicable:$OrderNo) then "" else $OrderNo
type: text
- name: order_duedate
field: OrderDueDate
type: date
- name: trn_cost_centre
collection: Voucher.AllLedgerEntries.CostCentreAllocations
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$LedgerName
type: text
- name: costcentre
field: Name
type: text
- name: _costcentre
field: $Guid:CostCentre:$Name
type: text
- name: amount
field: Amount
type: amount
- name: trn_cost_category_centre
collection: Voucher.AllLedgerEntries.CategoryAllocations.CostCentreAllocations
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$LedgerName
type: text
- name: costcategory
field: Category
type: text
- name: _costcategory
field: $Guid:CostCategory:$Name
type: text
- name: costcentre
field: Name
type: text
- name: _costcentre
field: $Guid:CostCentre:$Name
type: text
- name: amount
field: Amount
type: amount
- name: trn_cost_inventory_category_centre
collection: Voucher.AllLedgerEntries.InventoryAllocations.CategoryAllocations.CostCentreAllocations
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$LedgerName
type: text
- name: item
field: StockItemName
type: text
- name: _item
field: $Guid:StockItem:$StockItemName
type: text
- name: costcategory
field: Category
type: text
- name: _costcategory
field: $Guid:CostCategory:$Name
type: text
- name: costcentre
field: Name
type: text
- name: _costcentre
field: $Guid:CostCentre:$Name
type: text
- name: amount
field: Amount
type: amount
- name: trn_bill
collection: Voucher.AllLedgerEntries.BillAllocations
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$LedgerName
type: text
- name: name
field: Name
type: text
- name: amount
field: Amount
type: amount
- name: billtype
field: BillType
type: text
- name: trn_bank
collection: Voucher.AllLedgerEntries.BankAllocations
nature: Derived
fetch:
- AllLedgerEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: ledger
field: ..LedgerName
type: text
- name: _ledger
field: $Guid:Ledger:$..LedgerName
type: text
- name: transaction_type
field: TransactionType
type: text
- name: instrument_date
field: InstrumentDate
type: date
- name: instrument_number
field: InstrumentNumber
type: text
- name: bank_name
field: BankName
type: text
- name: amount
field: Amount
type: amount
- name: bankers_date
field: BankersDate
type: date
- name: trn_batch
collection: Voucher.AllInventoryEntries.BatchAllocations
nature: Derived
fetch:
- AllInventoryEntries
filters:
- NOT $IsCancelled
- NOT $IsOptional
fields:
- name: guid
field: Guid
type: text
- name: item
field: StockItemName
type: text
- name: _item
field: if $$IsEmpty:$StockItemName then "" else $Guid:StockItem:$StockItemName
type: text
- name: name
field: BatchName
type: text
- name: quantity
field: ActualQty
type: quantity
- name: amount
field: Amount
type: amount
- name: godown
field: GodownName
type: text
- name: _godown
field: if $$IsEmpty:$GodownName then "" else $Guid:Godown:$GodownName
type: text
- name: destination_godown
field: DestinationGodownName
type: text
- name: _destination_godown
field: if $$IsEmpty:$DestinationGodownName then "" else $Guid:Godown:$DestinationGodownName
type: text
- name: tracking_number
field: if ($$IsEmpty:$TrackingNumber or $$IsNotApplicable:$TrackingNumber) then "" else $TrackingNumber
type: text