QuoteWerks Support Forum
QuoteWerks Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 QuoteWerks
 Print Layouts
 Not printing lines with zero values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RobRobs
New Member

United Kingdom
6 Posts

Posted - 12/09/2006 :  14:14:59  Show Profile  Reply with Quote
is is possible to automatically set the line attribute to exclude if the quantity value is zero in the worksheet

Tolleh
QuoteWerks Genius

USA
2066 Posts

Posted - 12/09/2006 :  17:18:42  Show Profile  Reply with Quote
I believe you can use the QuoteWerks API to accomplish this. If, however, all you wish to do is not print a line if the quantity is 0, then you can do this in the print layout. Set the filter of the detail section to the following:

.IF.DocumentItems->QtyTotal <> 0

Hope this helps,
Dan

"For [G o d] so loved the world that he gave his one and only Son, that
whoever believes in him shall... have eternal life." John 3:16 N.I.V.

Go to Top of Page

RobRobs
New Member

United Kingdom
6 Posts

Posted - 12/15/2006 :  05:45:20  Show Profile  Reply with Quote
great this works just fine.

Thanks
Go to Top of Page

Tolleh
QuoteWerks Genius

USA
2066 Posts

Posted - 12/15/2006 :  18:40:36  Show Profile  Reply with Quote
quote:
Originally posted by RobRobs

great this works just fine.

Thanks

You're Welcome!

Dan

"For [G o d] so loved the world that he gave his one and only Son, that
whoever believes in him shall... have eternal life." John 3:16 N.I.V.

Go to Top of Page

grouptek
QuoteWerks Enthusiast

Kuwait
19 Posts

Posted - 03/04/2010 :  18:34:07  Show Profile  Visit grouptek's Homepage  Reply with Quote
quote:
Originally posted by Tolleh

I believe you can use the QuoteWerks API to accomplish this. If, however, all you wish to do is not print a line if the quantity is 0, then you can do this in the print layout. Set the filter of the detail section to the following:

.IF.DocumentItems->QtyTotal <> 0

Hope this helps,
Dan

Hi Dan
What if I want to print the line but not to print "0" (for the quantity) if the quantity is zero.

I tried to use the following formula ("...Mismatch")
.if.documentitems->qtytotal<>0.then.documentitems->qtytotal.else.""

Mohammad
Go to Top of Page

mattquintadena
QuoteWerks Master

United Kingdom
278 Posts

Posted - 03/04/2010 :  19:01:11  Show Profile  Visit mattquintadena's Homepage  Reply with Quote
Nice young quote being revived here :-)

The easiest way to do this is to right-click the qty field and choose 'suppress zero values'

Matt Rose
Quintadena Ltd. ; The World's Number One QuoteWerks Solution Partner ; 3 years running.
matt.rose@quintadena.com

Looking to get more from QuoteWerks? - www.quintadena.com/extensions.pdf
Go to Top of Page

Tolleh
QuoteWerks Genius

USA
2066 Posts

Posted - 03/04/2010 :  19:44:07  Show Profile  Reply with Quote
quote:
Originally posted by mattquintadena

Nice young quote being revived here :-)


Yep, its nice to see people are using the search feature

quote:
Originally posted by grouptek

Hi Dan
What if I want to print the line but not to print "0" (for the quantity) if the quantity is zero.

I tried to use the following formula ("...Mismatch")
.if.documentitems->qtytotal<>0.then.documentitems->qtytotal.else.""

Matt's suggestion is the easiest solution, however, so you understand the "mismatch" problem:

Both possible returns to the formula must be the same type
documentitems->qtytotal is a number type
"" is a text type

To fix your formula, make documentitems->qtytotal a text type:
.if.documentitems->qtytotal<>0.then.text(documentitems->qtytotal).else.""

Hope this helps,
Dan

"For [G o d] so loved the world that he gave his one and only Son, that
whoever believes in him shall... have eternal life." John 3:16 N.I.V.

Go to Top of Page

grouptek
QuoteWerks Enthusiast

Kuwait
19 Posts

Posted - 03/06/2010 :  16:55:56  Show Profile  Visit grouptek's Homepage  Reply with Quote
I feel 3.5 years younger. Thank you Sirs.

Mohammad
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
QuoteWerks Support Forum © Aspire Technologies, Inc Go To Top Of Page
Snitz Forums 2000