Sales Report with Pending Amount Part-14th (Final)

 Hello Friends Welcome We Complete our Task How to Create a Report in Tally using TDL which show us Sales Register with Pending Amount Now Your assignment is Create this whole Report and have any issue please comment.

For More help watch My YouTube Channel 

In 1st Part :- We Saw Demo of the Code.

In 2nd Part :- We Learn How to Create Menu Item

In 3rd Part :- How to Open a Report When Users Click on Menu Item

In 4th Part :- What is the Structure of Tally Report and it's attributes

In 5th Part :- How to Show Company Name in our Report

In 6th Part :- How to show Sales Register Name in our Report

In 7th Part :- How to show Period in our Report

In 8th Part :- How to Add Heading in our Report

In 9th Part :- How to give the gap between Heading in Our Report

In 10th to 14th :- How to Fetch Value From Collection




;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[#Menu     : Gateway of Tally]
Add : Item :  Anurag Tiwari : DISPLAY : Sales Report

[Report      : SalesReport]
Form         : SalesReport
Set: variable   : svfromdate, svtodate
Set                 : SVFromDate    : $$MonthStart:##SVCurrentDate
Set             : SVToDate        : $$MonthEnd:##SVCurrentDate

[Form      : SalesReport]
Part         : AnuragTitle,AnuragDtls
Bottom Part   : AnuragTotal
Height        : 100% Screen
use           : DSP Template

[Part        : AnuragTitle]
Line         : AnuragTL1,AnuragTL2

[Line         : AnuragTL1]
Field         : AnuragTL1

[Field        : AnuragTL1]
  Set as      : @@cmpmailname
  Full Width  : Yes
Align        : Centre
Style        : Large Bold
Skip         : Yes

  [Line         : AnuragTL2]
  Field         : AnuragTL2
  Right Field   : AnuragPeriod
; Border       : Column Titles

[Field        : AnuragTL2]
use           : Name Field
  Set as      : "Sales Register"
  Fullwidth   : Yes
Align        : Centre
Skip        : Yes
[Field        : Anuragperiod]
Set as        : "From "+$$String:##svfromdate+" To "+$$String:##svtodate
Skip        : Yes


[Part          : AnuragDtls]
Line           : saleTitles,salesdtls
Repeat       :  salesdtls : Salescoll
Total          : Invamt
Scroll         : Vertical

[Line          : Saletitles]
Field          : Invno, invdt,Party,Invamt,CollectedAmountInfo
Local         : Field : Party : Set as: "Buyer Name"
Local         : Field : Party : Line : 0
Local         : Field : invdt  : Set as :"Inv Dt"
Local         : Field : Invno : Set as :"Invno."
Local         : Field : Invamt : type : String
Local         : Field : Invamt : Set as : "Inv.Amt"
Local           : Field : CollectedAmountInfo : Type : String
Local         : Field : CollectedAmountInfo : Set as : "Pending Amount"
Border       : Column Titles


[Line          : salesdtls]
Field          : invno,invdt,Party, Invamt,CollectedAmountInfo
Option          : AlterOnEnter

[Field        : Party]
use          : Name Field
set as       : $PartyLedgername
Width       : 30% Screen

[Field       : InvNO]
use          : Name Field
Set as      : $Vouchernumber
Width       : 15% Screen

[Field       : Invdt]
Set as      : $Date
Width       : 15% Screen

[Field      : Invamt]
use         : Amount Field
Set as     : $Amount
Width       : 15% Screen

[Field: CollectedAmountInfo]
Use : Amount Field
Align : Right
Width : 15% Screen
Style : bold italic
Set as: $PendingAmount
Set always : Yes
Skip : Yes
Background:Grey

[Part : AnuragTotal]
Line  : Anuragtotal

[Line         : Anuragtotal]
Field          : Invno,invdt,party, Invamt,CollectedAmountInfo
Local         : Field : Party : Set as: "Total..."
Local         : Field : Cstno : Set as : ""
Local         : Field : invdt  : Set as :""
Local         : Field : Invno : Set as :""
Local         : Field : Invamt : Set as : $$Total:Invamt
Local         : Field : goods  : type : String
Local         :Field : goods : Set as :""
Local         : Field : CollectedAmountInfo : Set as : $$Total:CollectedAmountInfo
Border       : Column Titles


[Collection:CollForBills]
Type: Bills
Compute : VoucherNumber : $$CollectionField:$VoucherNumber:1:LedgerEntries

[Collection: MycollforCollection]
Source Collection : CollForBills
Fetch : ClosingBalance, VoucherNumber
Compute : LedgerName : $$CollectionField:$LedgerName:1:LedgerEntries
Search Key : $VoucherNumber

[Collection : Salescoll]
Type          : voucher
Filter          : IsSale
Fetch         : Vouchernumber,PartyLedgername,Amount,Buyerscstnumber,Date
Compute : qty:$$CollQtyTotal:Inventoryentries:$BilledQty
Compute : PendingAmount:$$ReportObject:$$CollectionFieldByKey:$ClosingBalance:$VoucherNumber:MycollforCollection

[Collection : SalesColldtl]
Source Collection : Salescoll
Walk    : Inventoryentries
By     : Vouchernumber: $Vouchernumber
Fetch         : Vouchernumber,PartyLedgername,Amount,Buyerscstnumber,Date,Amount

;,Stockitemname

[System     : Formula]
Issale        : $$IsSales:$vouchertypename
ChkParty   : $PartyLedgername = ##Newchangecoll



Comments

  1. sir pending amount show nehi ho rahi hai....pls describe

    ReplyDelete
  2. compute : PendingAmount:$$Report---------------------------(write this IN front of Compute)
    this code
    [Collection : Salescoll]
    Type : voucher
    Filter : IsSale
    Fetch : Vouchernumber,PartyLedgername,Amount,Buyerscstnumber,Date
    Compute : qty:$$CollQtyTotal:Inventoryentries:$BilledQty
    Compute : PendingAmount:$$ReportObject:$$CollectionFieldByKey:$ClosingBalance:$VoucherNumber:MycollforCollection

    (Just Put PendingAmount:$$ReportObject:$$CollectionFieldByKey:$ClosingBalance:$VoucherNumber:MycollforCollection
    in front of Compute : PendingAmount:$$ReportObject:--------------------(I hope you understand it)

    ReplyDelete
  3. Pending Ampunt Calculation
    Compute : PendingAmt:$$ReportObject:$$CollectionFieldByKey:$ClosingBalance:@@VchNumWParty:MycollforCollection

    [System: Formula]
    VchNumWParty : $VoucherNumber+$LedgerName

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Customize Sale Invoice

How to create customize Software in Tally using TDL