Developer Manual – Multi Voucher
Print with Voucher Number Range
1
The information contained in this document is current as of the date of publication and subject to change. Because
Tally must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Tally,
and Tally cannot guarantee the accuracy of any information presented after the date of publication. The information
provided herein is general, not according to individual circumstances, and is not intended to substitute for informed
professional advice.
This document is for informational purposes only. TALLY MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
IN THIS DOCUMENT AND SHALL NOT BE LIABLE FOR LOSS OR DAMAGE OF WHATEVER NATURE,
ARISING OUT OF, OR IN CONNECTION WITH THE USE OF OR INABILITY TO USE THE CONTENT OF
THIS PUBLICATION, AND/OR ANY CONDUCT UNDERTAKEN BY PLACING RELIANCE ON THE
CONTENTS OF THIS PUBLICATION.
Complying with all applicable copyright and other intellectual property laws is the responsibility of the user. All rights
including copyrights, rights of translation, etc., are vested exclusively with TALLY SOLUTIONS PRIVATE
LIMITED. No part of this document may be reproduced, translated, revised, stored in, or introduced into a retrieval
system, or transmitted in any form, by any means (electronic, mechanical, photocopying, recording, or otherwise), or
for any purpose, without the express written permission of Tally Solutions Pvt. Ltd.
Tally may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering
subject matter in this document. Except as expressly provided in any written licence agreement from Tally, the
furnishing of this document does not give you any licence to these patents, trademarks, copyrights, or other intellectual
property.
© 2010 Tally Solutions Pvt. Ltd. All rights reserved.
Tally, Tally 9, Tally9, Tally.ERP, Tally.ERP 9, Shoper, Shoper 9, Shoper POS, Shoper HO, Shoper 9 POS, Shoper 9
HO, TallyDeveloper, Tally Developer, Tally.Developer 9, Tally.NET, Tally Development Environment, Tally
Extender, Tally Integrator, Tally Integrated Network, Tally Service Partner, TallyAcademy & Power of Simplicity are
either registered trademarks or trademarks of Tally Solutions Pvt. Ltd. in India and/or other countries. All other
trademarks are properties of their respective owners.
Version:Developer Manual – Multi Voucher Print with Voucher Number Range /3.0/September 2010
2
Multi Voucher Print with Voucher Number Range
Scenario
A firm Global Enterprises using Tally.ERP 9 needs Multi-voucher print based on the
given Voucher Number Range.
Requirement Statement
User should be able to give from and to voucher numbers i.e. a range of voucher numbers
in multi-voucher print
Solution
In order to enable multi-voucher print based on voucher numbers, the following steps
have to be adhered:
I. Changes needed in Voucher Type Creation
a. Locate Part, where we have given voucher Type Name. This needs to be
stored in an invisible field. The field value would be used as reference.
[#Line : VoucherTypeName]
Add : Field : TSPLFFEInvisibleVoucherTypeName
[Field: TSPLFFEInvisibleVoucherTypeName]
Set As : #VoucherTypeName
Set Always : Yes
Invisible : Yes
II. Changes needed in multi voucher report
a. Adding new fields in the report for entering voucher. Locate the part in the
report.
[#Part: MVP Print Common]
Add: Lines: After: SVToDate: TSPLFFEVoucherNoFrom, +
TSPLFFEVoucherNoTo
[Line : TSPLFFEVoucherNoFrom]
Field : Medium Prompt,TSPLFFEVoucherNoFrom
Local : Field : MediumPrompt: Info : "Voucher No.From: +
(Zero For All)"
Local : Field : MediumPrompt: Inactive : Not +
@@TSPLFFEDisplayfromTo
3
[Field : TSPLFFEVoucherNoFrom]
Use : Number Field
Modifies : TSPLFFEVoucherNumberFrom
Inactive : Not @@TSPLFFEDisplayfromTo
[Line : TSPLFFEVoucherNoTo]
Field : MediumPrompt,TSPLFFEVoucherNoTo
Local : Field: MediumPrompt :Info : "Voucher No.To: +
(Zero For All)"
Local : Field : MediumPrompt :Inactive : Not +
@@TSPLFFEDisplayfromTo
[Field :TSPLFFEVoucherNoTo]
Use : Number Field
Modifies : TSPLFFEVoucherNumberTo
Set always : Yes
Inactive : Not @@TSPLFFEDisplayfromTo
b. Modifying the report for variables and adding Filter to the collection used
in the report.
[#Report: Multi Voucher Print]
Local : Collection : MSpecific Vouchers of Company : +
Filter : TSPLFFEIsOfSelectedVchNo
Variable : TSPLFFEVoucherNumberFrom,TSPLFFEVoucherNumberTo
c. Formula for collection Filter
[System :Formula]
TSPLFFEIsOfSelectedVchNo: If(@@AutoVchNumbering OR +
@@ManualVchNumbering)and (##TSPLFFEVoucherNumberTo>0)+
Then($$IsSysName:##SVVoucherType OR $VoucherTypeName =+
##SVVoucherType)AND ($$Number:$VoucherNumber >= +
$$Number:##TSPLFFEVoucherNumberFrom AND +
$$Number:$VoucherNumber <=$$Number: +
##TSPLFFEVoucherNumberTo) Else +
If (@@TSPLFFEAutoVchNumberingOne OR @@ManualVchNumbering)+
and (##TSPLFFEVoucherNumberTo = 0) Then $$IsSysName:+
##SVVoucherType OR $VoucherTypeName = ##SVVoucherType Else+
$$IsSysName:##SVVoucherType OR $VoucherTypeName = +
##SVVoucherType
TSPLFFEAutoVchNumberingOne : $NumberingMethod:VoucherType:+
#TSPLFFEInvisibleVoucherTypeName = $$SysName:Automatic+
TSPLFFEDisplayfromTo : @@TSPLFFEAutoVchNumberingOne OR+
@@ManualVchNumbering
4
TDL Capabilities Used
I. Adding New Fields
II. Modifying multi voucher report
III. Making of filter formula for collection