Auto narration - Adding third field.

Discussion in 'Free Source Codes' started by sagotianitin, May 25, 2020.

    
  1. sagotianitin

    sagotianitin New Member


    Hello,

    I want to add a third field in auto narration. I have coded as below but unfortunately it is not working,
    Kindly help where I am wrong.

    Code:

    [#Part : DBLLINE Narration]
    add:line:before:VCH NarrPrompt:JLChequeNo

    [Line : JLChequeNo]
    Fields : Short Prompt, JLChequeNo, Info Field, JLChequeDt;, Info Field, JLChequeNm

    Local : Field : Short Prompt : Set As : "Cheque No.:"
    Local : Field : Short Prompt : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Local : Field : Short Prompt : Inactive : Not @@IsBankLedPresent

    Local : Field : Info Field : Info : "Date:"
    Local : Field : Info Field : Inactive : Not @@IsBankLedPresent
    Local : Field : Info Field : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)

    Local : Field : Info Field : Info : "Bank Name:"
    Local : Field : Info Field : Inactive : Not @@IsBankLedPresent
    Local : Field : Info Field : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)

    Local : Field : Default : Style : Small Bold

    [Field : JLChequeNo]
    Use : Name Field
    Set as : $DueDateOfPymt
    Storage : DueDateOfPymt
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    Inactive : Not @@IsBankLedPresent
    Format : "No Symbol"

    [Field : JLChequeDt]
    Use : Short Date Field
    Set as : $Date
    Storage : OrderDate
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    Inactive : Not @@IsBankLedPresent Or $$IsEmpty:$DueDateOfPymt
    Format : "Short Date"

    [Field : JLChequeNm]
    Use : Name Field
    Set as : $BankName
    Storage : BankName
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    Inactive : Not @@IsBankLedPresent Or $$IsEmpty:$DueDateOfPymt
    Format : "No Zero"

    Kindly HelP!

    Thanks
     


  2. naijaind

    naijaind Member


    Hi I still don't know adding of cheque date field, but for other two field try as below :

    [#Part : DBLLINE Narration]
    add:line:before:VCH NarrPrompt:JLChequeNo

    [Line : JLChequeNo]
    Fields : Short Prompt, JLChequeNo, Info Field, JLChequeDt;, Info Field, JLChequeNm

    Local : Field : Short Prompt : Set As : "Cheque No.:"
    Local : Field : Short Prompt : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not

    $$IsPayment:##SVVoucherType)
    Local : Field : Short Prompt : Inactive : Not @@IsBankLedPresent

    Local : Field : Info Field : Info : "Date:"
    Local : Field : Info Field : Inactive : Not @@IsBankLedPresent
    Local : Field : Info Field : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $

    $IsPayment:##SVVoucherType)

    Local : Field : Info Field : Info : "Bank Name:"
    Local : Field : Info Field : Inactive : Not @@IsBankLedPresent
    Local : Field : Info Field : Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $

    $IsPayment:##SVVoucherType)

    Local : Field : Default : Style : Small Bold

    [Field : JLChequeNo]
    Use : Name Field
    Set as : $AllLedgerEntries[Last].BankAllocations[1].InstrumentNumber
    ;Storage : DueDateOfPymt
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    ;Inactive : Not @@IsBankLedPresent
    Format : "No Symbol"

    [Field : JLChequeDt]
    Use : Name Field
    Set as : $MailingName:Ledger:($LedgerEntries[2].LedgerName)
    ;Storage : OrderDate
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    Inactive : Not @@IsBankLedPresent Or $$IsEmpty:$DueDateOfPymt
    ;Format : "Short Date"

    [Field : JLChequeNm]
    Use : Name Field
    Set as : $MailingName:Ledger:($LedgerEntries[Last].LedgerName)
    ;Storage : BankName
    Invisible : (Not $$IsReceipt:##SVVoucherType) And (Not $$IsPayment:##SVVoucherType)
    Set Always : Yes
    Inactive : Not @@IsBankLedPresent Or $$IsEmpty:$DueDateOfPymt
    Format : "No Zero"
     


Share This Page