1 (edited by poncho1234 10/12/2017 02:31:58 pm)

Topic: What are {UU}&{P} in Transaction References

In Transaction References, the only placeholders allowed are {UU},{P},{MM},{YYYY} & {YY}

So MM is month - 10
YY is year - 17
YYYY is year - 2017

But what are {UU}&{P} for?

I tried using them and they came out as 01 & 1 respectively, and they did not update for the next transaction?

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: What are {UU}&{P} in Transaction References

A little more info, from includes/references.inc line 55:-

$refline_placeholders = array(
    'MM' => 'date',
    'YY' => 'date',
    'YYYY' => 'date',
    'UU' => 'user',
    'P' => 'pos',

So user number would be from users - _users id.

Still uncertain about {P}, my reading of the code states its _user pos, which I believe is Point of Sale - Please confirm

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: What are {UU}&{P} in Transaction References

{P} placeholder in reference template is replaced with current user's POS id, but I guess it is rather rarely used. Main reason is than there is no easy way to change the POS id, as this is internal record id assigned to POS definition when it is created.

Janusz

Re: What are {UU}&{P} in Transaction References

Thanks Janusz

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/