Accounting-Companion / TallyConnector

You can use Tally Connector to Connect your desktop/Mobile Applications with Tally seamlessly.
47 stars 29 forks source link

Getting all voucher for particular Ledger #3

Closed sanketgroup closed 3 years ago

sanketgroup commented 3 years ago

Hello Is it possible to get all vouchers of a particular ledger for a particular period? (similar to what we do in Tally bt going Display > Account Books > Ledger)

saivineeth100 commented 3 years ago

Yes you can but no specific method for that one You need to use GetNativeCollectionXML method and send custom filter

Edit: Sending custom Filter didn't worked we need change collection type to 'Vouchers : Ledger' and 'ledgername'

saivineeth100 commented 3 years ago

Added option to get ledger vouchers and group vouchers based on name and period

~~//Display > Account Books > Ledger List Vouchers = await TTally.GetLedgerVouchers("Sales - Exports", null, "01-Mar-2010"); //Display > Account Books > Group Vouchers List Vouchers = await TTally.GetGroupVouchers("Local Sales", null, "01-oct-2016");~~

Removed above method as it is not required here, But Still we can get ledger vouchers by using following method

     string xml = await GetNativeCollectionXML(rName: "Vouchers", colType: "Vouchers : Ledger", Sv: sv,childof:ledgerName,
                                                      NativeFields: Nativelist);

     List<Voucher> Vouchers = GetObjfromXml<VoucherEnvelope>(xml).Body.Data.Collection.Vouchers;
ShareefKadalayi commented 1 year ago

Hi Bro, How to get Ledger Vouchers with running total..?

saivineeth100 commented 1 year ago

we don't support out of the box all reports. but you can extend tally connector as per your needs. For Ex: We already fetching master stats report in default Tally Connector