Actual Rate for B2C

Discussion in 'Free Source Codes' started by abhinand vk, Sep 15, 2020.

    
  1. abhinand vk

    abhinand vk Active Member


    [#Line: EI ColumnOne]
    Option : Actual : @@isB2C
    [#Line: EI ColumnTwo]
    Option : Actual: @@isB2C
    [#Line: EI ColumnOneRate]
    Option : Actual2: @@isB2C
    [#Line: CI InvInfo]
    Option : Actual EI InvInfo : @@isB2C
    [#Line : EI InvInfo]
    Option : Actual EI InvInfo : @@isB2C
    [!Line : Actual EI InvInfo]
    Add:Right Fields : Before:VCHRate:Actual
    [!Line:Actual]
    Add:Right Fields : Before:VCHRateTitle:Actual

    Local:Field:Actual:Info:"Actual Rate"
    Local:Field:Actual:Style:Normal Bold
    Local:Field:Actual:Align:Center

    [!Line:Actual2]
    Add:Right Fields : Before:VCHRateTitle:Actual

    Local:Field:Actual:Info:if not @@GSTInclTaxcfg then "(Incl. of Tax)" else ""
    Local:Field:Actual:Style:Small Bold
    Local:Field:Actual:Align:Center
    [Field:Actual]
    Type:Rate
    Set as:if $$IsEmpty:$$Value AND $$InAlterMode then $$CurrentValue:mad:@Rate else $$Value
    Set Always:Yes
    Storage:Actual
    Width:mad:@VCHRateWidth+4
    Align:Right
    Max:251
    Style : Normal Bold
    Skip :$$IsEndOfList:$StockItemName or $$InCreateMode
    [System:UDF]
    Actual:Rate:1458

    [#Part : CMP TallyShopFeatures Left]
    Line: TSPL FFE Enable Actual
    [Line: TSPL FFE Enable Actual]
    Local:Field:Default:Color:Aquamarine
    Field: Long Prompt, TSPL FFE Enable UCB33
    Local: Field: Long Prompt : Info : $$LocaleString:"Enable Actual Rate for B2C?:"
    [Field: TSPL FFE Enable UCB33]

    Use : Logical Field
    Modifies : TSPL FFE EnableUCB45 : Yes
    Storage : ENABLE Actual
    [Variable: TSPL FFE EnableUCB45]

    Type : Logical
    Persistent : Yes
    [System:UDF]
    ENABLE Actual : Logical : 6085

    [System : Formula]
    ENABLEActual:$ENABLEActual:Company:##SVCurrentCompany
    isB2C :If $VoucherTypeName Contains "B2C" then @@ENABLEActual else No
    rate:if not @@GSTInclTaxcfg then $InclusiveTaxValue else $Rate
     


Share This Page