-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice-me-mine.txt
1394 lines (1004 loc) · 35.2 KB
/
invoice-me-mine.txt
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
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Prerequisites-
- place the invoiceword.xml file from the supporting folder to the tally installed folder.
- include this tdl in the tally.ini
Last modification �
- Altered on 28/01/2015
*/
[#Part: VCHTitle2Right]
Add: Option : VCH WeekDay0 : @@IsSales OR @@IsReceipt
[!Part :VCH WeekDay0]
Add: Lines:LPONumberLine,LPODateLine,MedRepLine,LPORefLine,LPOVatLine
[Line : LPONumberLine]
Field : Medium Prompt, LPONumber,Simple Prompt, BalanceCF
Local : Field : Medium Prompt : Set as : "LPO Number"
Local : Field : Simple Prompt : Set as : "Balance C/F"
[Field : BalanceCF]
Use : Amount Field
Storage : BalanceCF
[Field : LPONumber]
Use : Name Field
Storage : LPONumber
[Line : LPODateLine]
Field : Medium Prompt, LPODate
Local : Field : Medium Prompt : Set as : "LPO Date"
[Field : LPODate]
Use : Short Date Field
Storage : LPODate
Set as : $Date
[Line : MedRepLine]
Field : Medium Prompt, MedRep,Simple Prompt, AmntPaid
Local : Field : Simple Prompt : Set as : "Amount Paid"
Local : Field : Medium Prompt : Set as : "Med Rep"
[Field : MedRep]
Use : Name Field
Storage : MedRep
[Field : AmntPaid]
Use : Amount Field
Storage : AmntPaid
[Line : LPORefLine]
Field : Medium Prompt, LPORef,Simple Prompt,DiscGiven
Local : Field : Medium Prompt : Set as : "Reference"
Local : Field : Simple Prompt : Set as : "Sales Discount(%)"
[Field : LPORef]
Use : Short Name Field
Storage : LPORef
[Field:DiscGiven]
Use : Amount Field
Storage : DiscGiven
[Line : LPOVatLine]
Field : Medium Prompt, VatRep
Local : Field : Medium Prompt : Set as : "Sales VAT(%)"
[Field:VatRep]
Use : Amount Field
Storage : VatGiven
[System: Formula]
CheckUser : $$CmpUserName = "Tally User"
IsCmpUserOn : $IsUserPrintOn:Company:##SVCurrentCompany
[System: UDF]
IsUserPrintOn : Logical : 10005
FiscalDocumentNumber : String: 10006
AntifakeCode : String: 10007
EfrisQRCode : String: 10008
QRCodeValue : String: 10009
LPONumber : String:10019
LPODate :Date:10020
MedRep :String:10013
LPORef :String:10014
BalanceCF :Amount:10015
AmntPaid :Amount:10016
DiscGiven :Amount:10022
VatGiven :Amount:10023
[#Part: CMP AccFeat Right]
Add : Lines : At End : CMP UsrName
[Line: CMP UsrName]
Fields : Medium Prompt, CMP UsrNameFld
Local : Field : Medium Prompt : Info : "Print User Name ?"
Invisible : NOT $IsSecurityOn
Space Top : 0.4
[Field: CMP UsrNameFld]
Use : Logical Field
Type : Logical:Forced
Storage : IsUserPrintOn
Set always : Yes
[Line: CmpUserNameLine]
Field : Short Prompt, Name Field, Medium Prompt0, Preparedby, Medium Prompt1, Approvedby,Medium Prompt01, Preparedby1, Medium Prompt11, Approvedby1
Local : Field : Short Prompt : Info : "Prepared by: "
Local : Field : Short Prompt : Invisible : NOT $$InPrintMode
Local : Field : Short Prompt : Inactive : If @@checkUser OR NOT @@IsCmpUserOn Then Yes Else No
Local : Field : Name Field : Set As : $$CmpUserName
Local : Field : Name Field : Invisible : NOT $$InPrintMode
Local : Field : Name Field : Inactive : If @@checkUser OR NOT @@IsCmpUserOn Then Yes Else No
Local : Field : Default : Style : Normal Bold Italic
[#Part : EXPINV ExciseDetails]
Delete : Lines : EXPINV ExciseRange, EXPINV ExciseRangeAddr, EXPINV ExciseDiv, EXPINV ExciseDivAddr, +
EXPINV ExciseSerial, EXPINV InvoiceTime, EXPINV RemovalTime
[!Form : My Invoice]
;;Delete : Parts
;;Delete : Bottom Parts
Delete : PageBreak
;;Space Top : 0
;;Space Bottom : 0
;;Space Left : 0
;;Space Right : 0
;;Add : Part : My Invoice Top Part
;;Add : Part : My Invoice Body Part
;;Add : Bottom Part : My Invoice Bottom Part
/**[#Form : Sales Color]
Add : Print : Sales Invoice
[Report : Sales Invoice]
Form : Sales Invoice
Object : Voucher**/
[#Form : Comprehensive Invoice]
Add : Option : My Invoice : @@IsSales OR @@IsReceipt
[#Form : Simple Printed Invoice]
Add : Option : My Invoice : @@IsSales OR @@IsReceipt
[#Form : My Invoice]
Add : Right Part : Http Inv Info,InvQrCode
[Part:Http Inv Info]
Lines : HTTP Inv Welcome3,HTTP Inv Welcome4
[Line: HTTP Inv Welcome1]
Field : Medium Prompt, HTTP Inv Welcome1
Right Fields: LPO Date Prompt,LPO Date Field,Medium Prompt4, Global TaxInvNumber
Local : Field : Medium Prompt : Set as : "Fiscal Document No"
[Field:Medium Prompt4]
Use:Medium Prompt
Set as : $$String:$$Type:$VchType + " No:"
[Field: HTTP Inv Welcome1]
Storage : FiscalDocumentNumber
Align : Left
[Line: HTTP Inv Welcome2]
Field : Medium Prompt, HTTP Inv Welcome2
Right Fields: LPO Med Prompt,LPO Med Field,Medium Prompt5, Global Ref Field
Local : Field : Medium Prompt : Set as : "Verification Code"
[Field:Medium Prompt5]
Use:Medium Prompt
Set as : "Ref. No:"
Full Width: Yes
Align: Right
[Field: HTTP Inv Welcome2]
Use: Name Field
Storage : AntifakeCode
Align : Left
[Line: HTTP Inv Welcome3]
Field : Medium Prompt, HTTP Inv Welcome3
Local : Field : Medium Prompt : Set as : "QR Code"
Invisible:True
[Field: HTTP Inv Welcome3]
Storage : EfrisQRCode
Align : Left
Invisible:True
[Line: HTTP Inv Welcome4]
Field : Medium Prompt, HTTP Inv Welcome4
Local : Field : Medium Prompt : Set as : "QR Code Value"
Invisible:True
[Field: HTTP Inv Welcome4]
Storage: QRCodeValue
Align : Left
Invisible:True
Set as: if $$IsEmpty:#HTTPWelcome3 Then "This is a computer generated invoice. Goods once sold are not returnable. Thank you for being our customer" Else #HTTPWelcome3
[Part: InvQrCode]
Line : Empty,
QR Code : #HttpInvWelcome4: True
Width : 20% screen
Height : 20% screen
[Field:Medium Prompt0]
Set as: if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Received by: " Else "Payment Received by: "
[Field: Preparedby]
Set as: ".................."
[Field:Medium Prompt1]
Set as: "Issued by: "
[Field : Approvedby]
Set as:"..................."
[Field:Medium Prompt01]
Set as: if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Delivered by:" Else "Checked by: "
[Field: Preparedby1]
Set as: "..................."
[Field:Medium Prompt11]
Set as: "Delivered by: "
[Field : Approvedby1]
Set as:"...................."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CUSTOM INVOICE ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
/*
Objective(s) -
- This code demonstrates the alteration of Invoice Printing format
- Default Invoice Format is overridden with a New Format
*/
[#Form: Comprehensive Invoice]
;;option attribute contains the form name with logical condition
;;optional forms will execute if the condition is trure
Option: Global Invoice : @@IsSales ;;;@@IsSales is a system formula. System formula can be defined once and can be reused
[#Form: Simple Printed Invoice]
Option: Global Invoice : @@IsSales
[!Form : Global Invoice]
;;By default Form Global Invoice inherit all the details of simple printed invoice hence delete is used to remove the existing parts
;;of simple printed invoice
Delete : Parts
Delete : Bottom Parts
Delete : PageBreak
;;Formatting the form
Space Bottom: 0
Space Left : 0.25 inch
Space Right : 0
;;Addtion of new parts in the form
Add : Parts : Global Invoice Top Part
Add : Parts : Global Invoice Body Part
Add : Bottom Parts : At End: Global Invoice Bottom Part
[Part: Global Invoice Top Part]
Lines : Global CmpName, Global VCHDate, Global PartyName,HTTP Inv Welcome1,HTTP Inv Welcome2, Global PartyAdd1, +
Global ColumnTitles
;;Repeat attribute is used to display address in multi lines. It report on collection partyaddress
Repeat : Global PartyAdd1 : PartyAddress
[Line: Global CmpName]
Fields : Global CmpName
[Field: Global CmpName]
Use : Name Field
Set as : $VoucherTypeName;;;$$VchTypeSales:$VchName ;;"Cash Sale";;@@CMPMailNAme ;;;setting the company name using system formula
FullWidth : Yes
Align : Centre
[Line: Global VCHDate]
Fields : VchDateFiled
;;In line itself the field can be defined with default values using the below syntax
[Field:VchDateFiled]
Set as:""
[Field: LPO No Prompt]
Use: Medium Prompt
Set as:"LPO Number"
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then True Else False
[Field: LPO No Field]
Use: Name Field
Set as:$LPONumber
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then True Else False
;;setting the date storage value to a field
[Field: Global VCHNo]
Use : Short Name Field
Set as : $Date ;;setting the voucher number storage value
[Line: Global PartyName]
Fields : Medium Prompt, Global PartyName
Right Fields: LPO No Prompt,LPO No Field,Medium Prompt2, Global VCHNo
Local: Field: Medium Prompt : Set as : "Buyer Name: "
[Field:Medium Prompt2]
Use:Medium Prompt
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Date" Else "Voucher Date : "
[Field: LPO Date Prompt]
Use: Medium Prompt
Set as:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Payment Terms" Else "LPO Date"
[Field: LPO Date Field]
Use: Name Field
Set as:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "90 Days" Else $LPODate
[Field:LPO Med Prompt]
Use: Medium Prompt
Set as: if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Atten" Else "Med. Rep"
Align: Right
[Field:LPO Med Field]
Use: Name Field
Set as: $MedRep
Align:Right
[Field:Global Ref Field]
Use: Name Field
Set as: $LPORef
[Field: Global TaxInvNumber]
Use : Short Name Field
Set as :$VoucherNumber
[Field: Global PartyName]
Use : Name Field
Set as : $EIBuyerName ;;setting the party ledger name value to the field
[Line: Global PartyAdd1]
Fields : Global PartyAdd1
[Field: Global PartyAdd1]
Use : Name Field
Set as : $Address
Indent : 10
[Line: Global Column Titles]
Use : IE Details
Local: Field: Default : Lines : 2
Local: Field: Default : Type : String
Local: Field: Default : Style : Normal Bold
Local: Field: IE SrNo : Set as : "No"
Local: Field: IE SiName : Set as : "Particulars"
Local: Field: IE BatchNo : Set as : "Batch No"
Local: Field: IE ExpDate : Set as : "Exp. Date"
Local: Field: IE Qty : Set as : "Qty"
Local: Field: IE RateUnit : Set as : "Pack"
Local: Field: IE Rate : Set as : "Rate"
Local: Field: IE Discount : Set as : "Discount/Vat(%)"
Local: Field: IE Discount Total : Set as : "Discount Total"
Local: Field: IE Amount : Set as : "Amount"
;;Border attribute is used to provide border to the lines
Border : Column Titles
[Part: Global Invoice Body Part]
;;Two parts are defined inside a part
Parts : IE Details, LE Details
;;vertical attribute is used to allign the parts vertically
Vertical : Yes
;;Scroll attribute is used to make the lines scroll vertically
Scroll : Vertical
Common Border: Yes
[Part: IE Details]
Lines : IE Details
Repeat : IE Details : Inventory Entries
Total : IE Qty, IE Discount,IE Discount Total, IE Amount
[Line: IE Details]
Fields : IE SrNo, IE SiName
Right Fields : IE BatchNo, IE ExpDate, IE Qty,IE RateUnit, IE Rate, IE Discount, IE Discount Total, IE Amount
Explode : Item Desc : $$NumItems:UserDescription > 0 ;;;$$NumItems is a used defned functions which can be
;;;used for counting purposes. It takes collection name as parameter
[Part: Item Desc]
Lines : Item Desc
Repeat : Item Desc : UserDescription
[Line: Item Desc]
Fields : Item Desc
[Field: Item Desc]
Use : Name Field
Width : 40
Indent : 8
Set as : $UserDescription
Style : Normal Italic
[Field: IE SrNo]
Use : Short Name Field
Set as : $$Line
Border : Thin Left
Width : 5
[Field: IE SIName]
Use : Name Field
Set as : $StockItemName
Border : Thin Left
FullWIdth : Yes
[Field: IE BatchNo]
Use : Name Field
Set as : $BatchNumber
Border : Thin Left
Align : Center
Width : 12
[Field: IE ExpDate]
Use : Name Field
Border : Thin Left
Align : Center
Width : 12
[Field: IE Qty]
Use : Number Field
Set as : $BilledQty
Border : Thin Left
Format : "NoSymbol"
Align : Center
[Field: IE RateUnit]
Use : Rate Units Field;;QtyPrimaryField
Set as : $Rate
Border : Thin Left
Width : 10
Align : Center
;;Invisible:True
[Field: IE Rate]
Use : Rate Price Field
Set as : $Rate
Border : Thin Left
Align : Center
[Field: IE Discount]
Use : Name Field ;;; field will display amount in foreign currency also
Set as : $$AsAmount:$Discount ;;;$$AsAmount:$Discount ;;; Predefined function AsAmount will set discount value in amount format
Border : Thin Left
Align : Center
[Field: IE Discount Total]
Use: Amount Field
Set as: ($Discount/100)*($BilledQty * $Rate)
Border : Thin Left
Align : Center
Invisible:True
[Field: IE Amount]
Use : Amount Field ;;;Field will display amount value
Set as : $Amount ;;+($Discount/100)*($BilledQty * $Rate)
Border : Thin Left Right
Format : "NoComma, NoZero"
Align : Center
[Part: LE Details]
Lines : LE Details
Repeat : LE Details : Ledger Entries
Scroll : Vertical
[Line: LE Details]
Use : IE Details
Local: Field: IE SrNo : Set as : ""
Local: Field: IE SiName : Set as : $LedgerName
Local: Field: IE Qty : Set as : ""
Local: Field: IE RateUnit : Set as : $RateUnit
Local: Field: IE Rate : Set as : $$String:$RateOfInvoiceTax + "%" ;;function $$String used for conversion
Local: Field: IE Amount : Set as : $Amount
Local: Field: IE SiName : Align : Right
Local: Field: IE Qty : Format : "NoZero"
Local: Field: IE Rate : Inactive : $RateOfInvoiceTax = 0
Local: Field: IE Rate : Type : String
Remove if : $LedgerName = $PartyLedgerName
;; Empty attribute is used to avoid printing of party ledger name in the invoice
[Part: Global Invoice Bottom Part]
Lines : Global Gross Line,GlobalVatted Line,Global DotVat Line,Global Discount Line,Global Net Line,Global Vat Line,Global Dot Line,Global Payable Line,Global Space Line, Global AmtInWords,Global Space Line1,CmpUserNameLine,Global Dec Line
[Line: Global Discount Line]
Add: Right Fields:IE SrNo0,IE SiName0, IE Qty0, IE Rate0, IE Discount0,IE Amount0
[Field: IE SrNo0]
Set as : ""
Full Width: Yes
[Field: IE SiName0]
Set as : ""
Full Width : Yes
[Field: IE Qty0]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate0]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount0]
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Total Amount" Else "Amount Payable"
Full Width : Yes
Align : Right
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then True Else false
[Field: IE Amount0]
Use: Amount Field
Set as : ($Amount-(($DiscGiven/100)*$Amount))+((($VatGiven/100))*($Amount-(($DiscGiven/100)*$Amount))) ;;$$Total:IEAmount
Full Width : Yes
Align : Right
[Line: Global Gross Line]
Add: Right Fields:IE SrNo3,IE SiName3, IE Qty3, IE Rate3, IE Discount3,IE Amount3
[Field: IE SrNo3]
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Delivery Terms" Else ""
Full Width: Yes
[Field: IE SiName3]
Set as : ""
Full Width : Yes
[Field: IE Qty3]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate3]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount3]
Use: Medium Prompt
Set as : "Discount" + " " + $$String:$DiscGiven + " %"
Full Width : Yes
Align : Right
[Field: IE Amount3]
Use: Amount Field
Set as : ($DiscGiven/100)*$Amount
Full Width : Yes
Align : Right
[Line: Global Vatted Line]
Add: Right Fields:IE SrN,IE Discoun,IE Amoun
[Field: IE SrN]
Use: Name Field
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "(1). Depivery will be done within 2 working days from Date of Confirmed Purchase Order." Else ""
Full Width: Yes
[Field: IE Discoun]
Use: Medium Prompt
Set as : "Vat" + " " + $$String:$VatGiven + " %"
Align : Left
[Field: IE Amoun]
Use: Amount Field
Set as : (($VatGiven/100))*($Amount-(($DiscGiven/100)*$Amount))
Align : Right
;;;;;;DOT LINE
[Line: Global DotVat Line]
Add: Right Fields:IE SrNo2V, IE Discount2V,IE Amount2V
[Field: IE SrNo2V]
Use: Name Field
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "(2). Subject to be Delivered as per the Availibility in Market." Else ""
Full Width: Yes
[Field: IE Discount2V]
Set as : ""
Align : Right
[Field: IE Amount2V]
Set as : ".........................." ;;$$Total:IEAmount
Full Width : Yes
Align : Right
[Line: Global Net Line]
Add: Right Fields:IE SrNo4, IE Discount4,IE Amount4
[Field: IE SrNo4]
Use: Name Field
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "(3). Price will Change as per Availibility & Market." Else ""
Full Width: Yes
[Field: IE Discount4]
Use: Medium Prompt
Set as : "Balance C/F"
Align : Right
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then True Else false
[Field: IE Amount4]
Use: Name Field
Set as : $BalanceCF
Align : Right
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then true Else false
[Line: Global Vat Line]
Add: Right Fields:IE SrNo1,IE SiName1, IE Qty1, IE Rate1, IE Discount1,IE Amount1
[Field: IE SrNo1]
Set as : ""
Full Width: Yes
[Field: IE SiName1]
Set as : ""
Full Width : Yes
[Field: IE Qty1]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate1]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount1]
Set as : "Amount Paid"
Full Width : Yes
Align : Right
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then True Else false
[Field: IE Amount1]
Use: Name Field
Set as : $AmntPaid ;;$$Total:IEAmount
Full Width : Yes
Align : Right
Invisible:if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then true Else false
;;;;;;DOT LINE
[Line: Global Dot Line]
Add: Right Fields:IE SrNo2,IE SiName2, IE Qty2, IE Rate2, IE Discount2,IE Amount2
[Field: IE SrNo2]
Set as : ""
Full Width: Yes
[Field: IE SiName2]
Set as : ""
Full Width : Yes
[Field: IE Qty2]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate2]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount2]
Set as : ""
Full Width : Yes
Align : Right
[Field: IE Amount2]
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "" Else ".........................." ;;$$Total:IEAmount
Full Width : Yes
Align : Right
[Line: Global Payable Line]
Add: Right Fields:IE SrNo6,IE SiName6, IE Qty6, IE Rate6, IE Discount6,IE Amount6
[Field: IE SrNo6]
Set as : ""
Full Width: Yes
[Field: IE SiName6]
Set as : ""
Full Width : Yes
[Field: IE Qty6]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate6]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount6]
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "Total Amount" Else "Balance To Pay"
Full Width : Yes
Align : Right
[Field: IE Amount6]
Use: Amount Field
Set as : ($Amount+$BalanceCF)-$AmntPaid + #IEAmoun ;;;$Amount+($$Total:IEAmount)*(0.18) ;;$$Total:IEAmount
Full Width : Yes
Align : Right
[Line: Global Space Line]
Add: Right Fields:IE SrNo7,IE SiName7, IE Qty7, IE Rate7, IE Discount7,IE Amount7
[Field: IE SrNo7]
Set as : ""
Full Width: Yes
[Field: IE SiName7]
Set as : ""
Full Width : Yes
[Field: IE Qty7]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate7]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount7]
Set as : ""
Full Width : Yes
Align : Right
[Field: IE Amount7]
Use: Amount Field
Set as : ""
Full Width : Yes
Align : Right
[Line: Global Space Line1]
Add: Right Fields:IE SrNo8,IE SiName8, IE Qty8, IE Rate8, IE Discount8,IE Amount8
[Field: IE SrNo8]
Set as : ""
Full Width: Yes
[Field: IE SiName8]
Set as : ""
Full Width : Yes
[Field: IE Qty8]
Set as : "" ;;funtion total is used to take total of a particular field, here(IEQty)
Full Width : Yes
[Field: IE Rate8]
Set as : ""
Full Width : Yes
Align :Right
[Field: IE Discount8]
Set as : ""
Full Width : Yes
Align : Right
[Field: IE Amount8]
Use: Amount Field
Set as : ""
Full Width : Yes
Align : Right
[Line: Global AmtInWords]
Use : Name Field
Fields : Short Prompt, Global AmtInWords
Local: Field: Short Prompt : Set as : "Amount in words : "
[Field: Global AmtInWords]
Use : Name Field
Set as : $$InWords:#IEAmount6 + " Only" ;;;Inwords function is used to convert neumaric value into words
FullWidth : Yes
Style : Small
[Line: Global Dec Line]
Fields : Short Prompt, Global Dec
Local : Field : Short Prompt : Info : "Note: "
[Field: Global Dec]
Use : Name Field
Set always : Yes
FullWidth : Yes
Style : Small
Set as : if $$IsEqual:#GlobalCmpName:"Proforma Invoice" Then "This Proforma Invoice will be Valid for 7 days from date of Proforma Invoice & all the Prices are Current Market." Else "Check the goods before you leave. Goods once sold not be returnable. Bounced cheque charged 100,000/- will be paid with payment for that Cheque."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;
;;;;;;;; sux receipt ;;;;;;;;
;;;;;;; ;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; End-of-File
[#Line: DSP VchClAmt]
Add : Left Field : ClBalinWord
Local : Field : Default: Style: normal bold
Border: Thin Top Bottom:($$LineNumber = $$LastLineNumber ) AND $$InPrintMode
[#Line: LV FCthree]
Add : Left Field:ClBalinWord1
Local : Field : Default: Style: normal bold
Border: Thin Top Bottom:($$LineNumber = $$LastLineNumber ) AND $$InPrintMode
[Field: ClBalinWord]
Use: Medium Print
Set as:$$InWords:@@VchClg + @@IfAmtthenOnlystring
[Field: ClBalinWord1]
Set as:$$InWords:@@BalanceVchDrCrAmt + " Only "
Width:50% Screen
Lines:0
[System: Formulae]
IfAmtthenOnlystring : If @@VchClg = 0 Then "" Else $$String:" Only"
[System: Formula]
Option:Sysforml:If $$SerialNumber <> 723011111 then yes else no
;; End of File
/* it Shows Closing Balance while print */
[#Report: Ledger Vouchers]
Local : Form : Ledger Vouchers : Add : Part : At End : LedgerTermsPart
[Part: LedgerTermsPart]
Add:Left Part:Amount Left Part
Add:Right Part:For Right Part
[Part: Amount Left Part]
Add: Line:AmntInWordsLine
Add: Bottom Line:DownBelowWords
[Line: AmntInWordsLine]
Add: Left Field: SignDotFull
Add:Right Field: DeliveredByDot
[Field: SignDotFull]
Use: Name Field
Full Width: Yes
Set as: ".............................................."
[Field: DeliveredByDot]
Use: Name Field
Full Width: Yes
Set as: "................................."
[Line: DownBelowWords]
Add: Left Field: SignFull
Add:Right Field: DeliveredBy
[Field: SignFull]
Use: Name Field
Full Width: Yes
Set as: "Receiver Name, Sign & Company Stamp"
[Field: DeliveredBy]
Use: Name Field
Full Width: Yes
Set as: "Delivered By:"
[Part: For Right Part]
Add: Lines:ForWordsLine
[Line: ForWordsLine]
Add:Field:ForWard
[Field:ForWard]
Use: Medium Prompt
Set as: "For :"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;; OUT STANDING STATEMENT ;;;;;
;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[#Report: Ledger Outstandings]
Local : Form : Ledger Outstandings : Add : Part : At End : AxAmntInWards
[Part: AxAmntInWards]
Add: Line: AxAmntInWardsLine,EmptyLineDotBelow,PrepLineBelow,PrepLineDown
[Line: AxAmntInWardsLine]
Add:Field:AxAmntInWrds,AxAmntInWrd,AxmInWrdsMe
[Field: AxAmntInWrds]
Use: Amount Field
Set as:$$AsAmount:$ClosingBalance:Ledger:##LedgerName
Invisible:True
[Field: AxAmntInWrd]