Cost centre not stored

Discussion in 'Requests' started by Mohan.S, Nov 3, 2020.

    
  1. Mohan.S

    Mohan.S Member


    Dear Sir,
    We are writing code for import sales transaction with cost centre. this code the cost centres are imported properly but not store in properly. we need to re accept the voucher once for stored value. (weneed to open voucher and press ctrl +A for store costcentre value. before accept the voucher we are going to display--> statement of accounts --> costcentre there no values are appeared after accept that is appeared properly.

    what is the error on my code.
    see below code:


    36 : INSERT COLLECTION OBJECT : LedgerEntries
    37 : SET TARGET : LedgerEntries
    38 : SET VALUE : LedgerName : $ExParty
    39 : SET VALUE : Amount : $$AsAmount:$Netvalue ;;* -1
    39a : Log : $$String:"Net: " + $$String:$Netvalue
    40 : SET VALUE : Is Deemed Positive: Yes
    ;; 41s : SET TARGET : ..

    41 : Insert Collection Object : COSTCENTREALLOCATIONS
    42 : Set Value : Name : $$String:$Costcent
    42L : Log: $$String:"CC Name : " + $$String:$Costcent
    43 : Set Value : Amount : $$AsAmount:$Netvalue ;$$AsAmount:$NetAmtTot ;;$$ASAmount:$SyCCAmt
    44 : SET TARGET : .

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    45 : INSERT COLLECTION OBJECT : LedgerEntries
    46 : SET TARGET : LedgerEntries
    47 : SET VALUE : LedgerName : "SALES GST EXM"
    48 : SET VALUE : Amount : $$AsAmount:$SalesEx ;;* -1
    48a : Log: $$String:"SALES GST EXM:" + $$String:$SalesEx
    49 : SET VALUE : Is Deemed Positive: No
    ;; 50 : SET TARGET : ..

    45c : Insert Collection Object : COSTCENTREALLOCATIONS
    46c : Set : CCamtVar :$$AsAmount:$SalesEx
    47c : Set Value : Name : $$String:$Costcent
    48c : Set Value : Amount : $$TgtObject:$$AsAmount:##CCAMTVar ;;*-1
    49c : Log : $$String:"CCName: " + $$String:##CCAMTVar
    50c : SET TARGET : ...

    51 : INSERT COLLECTION OBJECT : LedgerEntries
    52 : SET TARGET : LedgerEntries
    53 : SET VALUE : LedgerName : "SALES GST EXM FRUITS"
    54 : SET VALUE : Amount : $$AsAmount:$SalesExFruit ;;* -1
    54L : Log: $$String:"SALES GST EXM FRUITS:" + $$String:$SalesExFruit
    55 : SET VALUE : Is Deemed Positive: No
    ;; 56 : SET TARGET : ..

    51c : Insert Collection Object : COSTCENTREALLOCATIONS
    52c : Set : CCamtVar :$$AsAmount:$SalesExFruit
    53c : Set Value : Name : $$String:$Costcent
    54c : Set Value : Amount : $$TgtObject:$$AsAmount:##CCAMTVar ;;;*-1
    55c : Log : ##CCAMTVar
    56c : SET TARGET : ...
     


  2. Himanshu-2002

    Himanshu-2002 Active Member


    Sir No One Can Help You Without Checking the Full Code.....
     


Share This Page