Normal Topic Invoice Aging (Read 1186 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Invoice Aging
Jul 25th, 2006 at 2:59pm
Print Post Print Post  
My Invoice Aging reports, since translating my Q&A 5.0 Invoice database to Sesame, have gone wacky.  I use derived colums in Q&A to determine whice invoices fall into the appropriate aging colums.  After translation, the programming for these colums look like this:
Code
Select All
Aged 0 to 30 Days=(@date-DATE_OF_INVOICE_1<31)*BALANCE_DUE 



(The original Q&A code was
Code
Select All
Heading: 12:(0-30 Days)
Formula No. 1  (@date-#3<31)*#4
Column/Sort Spec: 5,ST,T 



The name "Aged 0 to 30 Days" is new...the original heading (0-30 Days) , because of operator characters, gave Sesame a hissy fit.

But the new name works, though the derivation doesn't.  It's being formatted as text and I have no idea how to change it to money.  Also, none of my subtotals or totals are happening.  The report shows no group footers at all.

I've just started playing with the reports; I expect many more problems and questions.  Can anyone give me a nudge in the right direction?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Invoice Aging
Reply #1 - Jul 25th, 2006 at 3:26pm
Print Post Print Post  
Hello Scott,

If you have several aging columns then you may want to consider putting the code into one event for all of them. That way you only have to figure out how old the record is once vs. once for each column.

Code
Select All
Var vDays as Int

vDays = @ToNumber(@Date) - @ToNumber(DATE_OF_INVOICE_1)
If vDays < 31 Then
{
	Aged 0 to 30 Days = BALANCE_DUE
}
//Add Else statements for each column
 




To change the unbound element to be formatted as Money

In the report select the Aged 0 to 30 Days element
Switch to the Format tab of the Property Editor
In the "Format Unbound As" dropdown choose money.

Pages 392-415 of the Sesame 1.1 User Guide covers how to do totals, subtotals and breaks.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Invoice Aging
Reply #2 - Jul 25th, 2006 at 3:48pm
Print Post Print Post  
Thanks Ray.  Where would that code go?

Also, can I expect that none of my Q&A report subtotals and totals will carry over into Sesame's reports?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Invoice Aging
Reply #3 - Jul 26th, 2006 at 5:27pm
Print Post Print Post  
Hello Scott,

That code would go in the same event where it is now.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Invoice Aging
Reply #4 - Jul 26th, 2006 at 7:11pm
Print Post Print Post  
OK, but I can jam it all into one column's programming using if/then to fill them all, and delete the code from the other colums, is that correct?

For instance:
Code
Select All
Var vDays as Int

vDays = @ToNumber(@Date) - @ToNumber(DATE_OF_INVOICE_1)
If vDays < 31 Then
{
	Aged 0 to 30 Days = BALANCE_DUE
}

Else

If vDays < 61 Then
{
	Aged 30 to 60 Days = BALANCE_DUE
}

Else

If vDays < 91 Then
{
	Aged 60 to 90 Days = BALANCE_DUE
}

Else

{
	Over 90 Days = BALANCE_DUE
} 

  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Invoice Aging
Reply #5 - Jul 26th, 2006 at 7:15pm
Print Post Print Post  
Hello Scott,

Quote:
OK, but I can jam it all into one column's programming using if/then to fill them all, and delete the code from the other colums, is that correct?


Yes that is correct.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged