Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4323888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:03:36+00:00 2026-05-21T09:03:36+00:00

I am generating an invoice for various clients. Some clients have a sales allowance.

  • 0

I am generating an invoice for various clients. Some clients have a sales allowance. For those clients I want to display an extra sales allowance unit and total cost column.

If any maximum sales cost total is = 0 I want to move the fields to the left and display the sales allowance on the right side

When the client has sales allowance

------------------Headings extend all the way across the report-----------------------------

Description   Qty    UOW      Client Unit Cost   Client Cost    Sales Unit Cost   Sales Cost
============================================================================================
Something       5   Each                $11.00        $55.00              $5.00       $25.00
More Stuff      2   Each                $20.00        $40.00              $5.00       $10.00
============================================================================================
Totals                                                $55.00                          $35.00

When the client does not have sales allowance

------------------Headings extend all the way across the report-----------------------------

Description                                   Qty    UOW      Client Unit Cost   Client Cost
============================================================================================
Something                                       5   Each                $11.00        $55.00
More Stuff                                      2   Each                $20.00        $40.00
============================================================================================
Totals                                                                                $95.00

The goal is to put this functionality into a single report rather than having to know which report to run for which client if and when they get a sales allowance.

I know we can supress fields and when I tried to incorporate that I got whitespace on either the right of middle depending on where I placed the fields and the result was not acceptable. Is there a way to move a field to a different LEFT position when conditions are met? This would be report wide, not evalutated on each detail record.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:03:36+00:00Added an answer on May 21, 2026 at 9:03 am

    It would be easier if you create two header sections and two detail sections with the fields and headers that you want in each. Suppress the relevant header/detail section based on the presence of a value in the sales-allowance field (Isnull({table.sales_allowance}). If this can’t be determined, use a parameter field to drive the suppression formulae.

    ** edit **

    the report will have two header sections (HA & HB) and two detail sections (DA & DB). HA & DA work in combination, as do HB & DB. Use the ‘A’ set for customers with a sales allowance; use the ‘B’ set for customers without. Add the relevant fields to each section and header; space accordingly.

    Set the suppression formula for HA & DA to:

    //suppress section if there IS NOT a sales allowance
    Not(Isnull({table.sales_allowance}))
    

    Set the suppression formula for HB & DB to:

    //suppress section if there IS a sales allowance
    Isnull({table.sales_allowance})
    

    You do NOT need to suppress any individual fields with this approach, thus eliminating the spacing issue.

    ** edit **
    while crystal report objects do have X (left), Y (top), width, and height properties, only X and width support conditional formulae (CF). you could move a field by setting the conditional formula of a field’s X property to another value.

    this approach would be harder to maintain, however. each field’s CF would need to ‘remember’ two positions: visible and hidden. moreover, if another field was added in the future, each ‘moveable’ field would need to be reviewed to ensure that the positioning in its CF is accurate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am generating pdf invoice using fpdf. Some invoices containing many items, and details
Im generating various strings and then I want to save files with generated strings
I have a query invoice which only updates the total values when a field
I'm generating invoice PDFs on the fly, and using my model to calculate the
I have a PHP application that needs to generate some PDF invoices and PDF
While generating XML files with SimpleXml, I got challengefull problem. I want to make
I have started freelancing and a client has asked for an invoice. Do you
Im generating my page content on the serverside and sometimes as reault I have
When generating java beans from xsd files I would like to have the default
I'm generating regular expressions dynamically by running through some xml structure and building up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.