outgoing types method

Discussion in 'Developers Forum' started by robgoodliffe, May 26, 2011.

  1. robgoodliffe New Member

    does anyone know if there is a method for pulling out the outgoing types for purchase orders? I can't see one but then again the naming conventions are weird.
  2. knu New Member

    If I understand you correctly, I think you have to loop through the lines of your receipt (or invoice), extract the ChargeType (which can be different in each line if an order is for multiple products), then get all your nominal codes (KashFlow API - Manual - Methods - GetNominalCodes) and loop through those until you get to the one whose ID (KashFlow API - Manual - Classes - NominalCode) matches your ChargeType. You can then get the human readable name of the charge type from Name. Phew!

    Good luck ;-)
  3. knu New Member

  4. robgoodliffe New Member

    Thanks for this, i was getting close but i think this is going to take a full 10 hours sleep and cup of superman coffee to get my head round it and tackle it. yep, very weird how they name things, quiet often it doesn't relate to how they name things on their site(took me a while to realise sites where projects).
  5. DuaneJackson Administrator

  6. robgoodliffe New Member

    Hi Duane, thanks for replying. Yes, that's what i was looking for, it's just taking me time to get my head round how you name everything.

    also you get my vote for PM if you ban bank holidays

    Cheers and have a good one

Share This Page