I Want Defalut Credit Period 31 Day Any One Help Me

Discussion in 'Requests' started by Vikram Bhat, May 17, 2019.

         
  1. Vikram Bhat

    Vikram Bhat Member


    [#Line: LED IsBillWise]

    Field : Long Prompt, LED IsBillWise
    Local : Field : Long Prompt : Setas : $$LocaleString:"Maintain balances bill-by-bill?"
    Local : Field : Long Prompt : Inactive : @@InactiveBillOn
    Invisible : NOT $$IsAllBillWiseOn

    [#Line: LED CreditPeriod]

    Fields : Long Prompt, LEDCredit
    Local : Field : Long Prompt : Indent : 2
    Local : Field : Long Prompt : Inactive : @@InactiveBillOn OR NOT $IsBillWiseOn
    Local : Field : Long Prompt : Set as : $$LocaleString:"Default credit period: "
    Local : Field : LEDCredit : Delete : Border
    Local : Field : LEDCredit : Align : Left
    Local : Field : LEDCredit : Inactive : @@InactiveBillOn OR NOT $IsBillWiseOn
    Local : Field : LEDCredit : Set as : $$LocaleString:"31 Days"
    Invisible : NOT $$IsAllBillWiseOn

    [#Line: LED CreditVchEntry]

    Fields : Long Prompt, LED CreditVchEntry, CreditVchEntry
    Local : Field : Long Prompt : Indent : 2
    Local : Field : Long Prompt : Set as : $$LocaleString:"Check for credit days during voucher entry ?"
    Local : Field : Default : Inactive : @@InactiveBillOn OR NOT $IsBillWiseOn
    Local : Field : LED CreditVchEntry : Delete : Border
    Local : Field : LED CreditVchEntry : Align : Left
    Local : Field : LED CreditVchEntry : Set as : $$LocaleString:"Yes"
    Invisible : NOT $$IsAllBillWiseOn
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You have already made the code, but not explained what the problem is or error messages, if any?
     


  3. Vikram Bhat

    Vikram Bhat Member


    But its not working
     


  4. Vikram Bhat

    Vikram Bhat Member


    In Credit period not coming 31 days
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Search for Field : LEDCredit in TDE.

    You will observe, that it has been split in two fields..... there you can change your SET AS.
     


  6. Vikram Bhat

    Vikram Bhat Member


    not understand please help
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Search for Field : LEDCredit in TDE.

    You will find they further branch off into two more fields.

    In your above code, you have incorporated the SET AS, which is correct, but in the wrong field. You go through the 2 branched off fields in the above field and you will understand where to put in your SET AS.

    Try it, you can do it..... it is not that hard.
     


  8. Vikram Bhat

    Vikram Bhat Member


    Sir I am Try But Now Set Credit Day 31 Day But here 1 problem credit day not working means if 1 bill overdue before credit period we are not create voucher i want after 31 days not create a voucher can you help this


    [#Field: EI Consignee]
    Control : CtrlCreditDays : if $$IsCmpOwner then @@ChkCreditDays<0 Else @@ChkCreditDays>0 and $$InCreateMode and $$IsSales:##SVVoucherType

    [Collection: Credit PartyPending Bills]
    Type : Bills
    Child of : #EIConsignee
    Unique : $$Name
    Format : @@DateDiff
    Format : $BillDate, 8 : Universal Date
    Format : $$Name, 10
    Format : $BaseClosing,-30 : "AllSymbols, DrCr"
    Format : @@DueDate
    Format : ##SVCurrentDate
    Filter : FltrCreditDays, FltrCrAmt

    [System : Formula]

    CtrlCreditDays : if @@ChkCreditDays = 1 then "The Customer has " + $$NewLine + $$String:mad:@ChkCreditDays + $$NewLine + " Bill OverDue." else "The Customer has " + $$NewLine + $$String:mad:@ChkCreditDays + $$NewLine + " Bills OverDue."
    ChkCreditDays : $$Numitems:CreditPartyPendingBills
    FltrCreditDays : $$Number:mad:@DateDiff>=1
    DueDate : $$Date:$$String:$BillCreditPeriod:UniversalDate
    DateDiff : ##SVCurrentDate - @@DueDate
    FltrCrAmt : $$IsDr:$BaseClosing


    [#Menu: Ledgers]

    Delete : Item : @@locCreditLimits
    Delete : Item : BLANK
    Add : Item : @@locCreditLimits :Alter Collection :Multi Ledger Limit :$$NumLedgers> 0 AND $$Allow:Alter:AccountsMasters and $$IsCmpOwner
    Add : Item : BLANK

    [#Line: MLEDLIM Titles]
    Right Fields : MLED Limit Title, MLED Credit Title, MLED CreditDays Title

    [#Field: MLED Limit Title]
    Use : Multi Master Amount Title
    Info : $$LocaleString:"Credit Limit"
    Border : Thin Left
    Width : if $$IsMultiCurrencyOn then @@AmountWidth + 15 else @@AmountWidth

    [#Field: MLED CreditTitle]
    Use : Due Date Title Field
    Info : $$LocaleString:"Credit Period"
    Border : Thin Left
    Align : Center
    Width : 6

    [#Field: MLED CreditDays Title]
    Use : Name Title Field
    Info : $$LocaleString:"Check for Credit Days during Voucher Entry"
    Border : Thin Left
    Align : Center
    Width : 35

    [#Line: MLEDLIM Body]
    Right Fields : LED Limit, LED Credit, LED CreditVchEntry, CreditVchEntry
    Local : Field : LEDCreditPer : Width : 13
    Local : Field : LEDCreditVchEntry : Width : 35

    [#Field: LED Limit]
    Use : Amount Field
    Storage : CreditLimit
    Format : ("AllSymbols,NoZero,DrCr")
    Width : if $$IsMultiCurrencyOn then @@AmountWidth + 15 else @@AmountWidth
    Max : @@MaxNumberWidth * 3
    Border : Thin Left
    Inactive : $$IsEmpty:$Name

    [#Field: LED Credit]
    Fields : LEDCreditPer, LEDCreditStr
    Border : Thin Left

    [#Field: LEDCreditPer]
    Use : Due Date Field
    Set as : $$LocaleString:"31 Days"
    Inactive : $$IsEmpty:$Name OR NOT $IsBillWiseOn OR @@InactiveBillOn
    Width : 6

    [#Field: LEDCreditStr]
    Use : Short Name Field
    Storage : BillCreditPeriod
    Set as : #LEDCreditPer
    Setalways : Yes
    Invisible : Yes

    [#Field: LED CreditVchEntry]
    Use : Logical Field
    Set as : $$LocaleString:"Yes"
    Inactive : $$IsEmpty:$Name OR NOT $IsBillWiseOn OR @@InactiveBillOn
    Width : 6

    [#Field: CreditVchEntry]
    Use : Logical Field
    Storage : IsCreditDaysChkOn
    Set as : #LedCreditVchEntry
    Set Always : Yes
    Invisible : Yes
     


Share This Page