Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating Script in Printing Official Receipt

Featured Replies

  • Newbies

Hello Ma'am/Sir!

Please help me create a script that will print only the filled out field in my Official Receipt layout when I click the Print OR  button.

Here is my client's info in Layout Mode:

Print-OR.jpg

and this is it in Browse Mode

Print-OR1.jpg

What I need is that in OFFICIAL RECEIPT Layout will be like this that the empty fields will not be printed:

Print-OR3.jpg

THANK YOU VERY MUCH in advanced in helping me.

P.S.: I have only little knowledge in scripting.

I would not put fields on your receipt in this case I would write the following script that sets a global variable. And print that, by using tab stop. 

List (

Case ( not IsEmpty ( sample::FCCT ) ; "Fire Code Construction Tax" & Char (9) & sample::FCCT );
Case ( not IsEmpty ( sample::RealtyTax ) ; "Fire Code Realty Tax" & Char (9) & sample::RealtyTax );
Case ( not IsEmpty ( sample::PremiumTax ) ; "Fire Code Premium Tax" & Char (9) & sample::PremiumTax );
Case ( not IsEmpty ( sample::SalesTax ) ; "Fire Code Sales Tax" & Char (9) & sample::SalesTax );
Case ( not IsEmpty ( sample::ProceedsTax ) ; "Fire Code Proceeds Tax" & Char (9) & sample::ProceedsTax );
Case ( not IsEmpty ( sample::FSIF ) ; "Fire Safety Inspection Fee" & Char (9) & sample::FSIF );
Case ( not IsEmpty ( sample::StorageFee ) ; "Storage Clearance Fee" & Char (9) & sample::StorageFee );
Case ( not IsEmpty ( sample::ConveyanceFee ) ; "Conveyance Clearance Fee" & Char (9) & sample::ConveyanceFee );
Case ( not IsEmpty ( sample::InstallationFee ) ; "Installation Clearance Fee" & Char (9) & sample::InstallationFee );
Case ( not IsEmpty ( sample::AdminFine ) ; "Administrative Fine" & Char (9) & sample::AdminFine );
Case ( not IsEmpty ( sample::OthersFee ) ; "Total Other Fees" & Char (9) & sample::OthersFee )

)

Screen Shot 2021-05-13 at 5.17.07 PM.png

Screen Shot 2021-05-13 at 5.17.51 PM.pngScreen Shot 2021-05-13 at 5.17.33 PM.png

Consider changing your structure and turning all those taxes and fees into individual payment records in a related table, with fields for Category and Amount. Then create records only for applicable categories and print from the related table in list view.

This will not only solve your printing issue but also allow you to produce a report on payments by category.

 

  • Author
  • Newbies

Thank you mate for your response. Appreciate it. I will try this and give you feedback. :-)

On 5/14/2021 at 8:22 AM, Ocean West said:

I would not put fields on your receipt in this case I would write the following script that sets a global variable. And print that, by using tab stop. 


List (

Case ( not IsEmpty ( sample::FCCT ) ; "Fire Code Construction Tax" & Char (9) & sample::FCCT );
Case ( not IsEmpty ( sample::RealtyTax ) ; "Fire Code Realty Tax" & Char (9) & sample::RealtyTax );
Case ( not IsEmpty ( sample::PremiumTax ) ; "Fire Code Premium Tax" & Char (9) & sample::PremiumTax );
Case ( not IsEmpty ( sample::SalesTax ) ; "Fire Code Sales Tax" & Char (9) & sample::SalesTax );
Case ( not IsEmpty ( sample::ProceedsTax ) ; "Fire Code Proceeds Tax" & Char (9) & sample::ProceedsTax );
Case ( not IsEmpty ( sample::FSIF ) ; "Fire Safety Inspection Fee" & Char (9) & sample::FSIF );
Case ( not IsEmpty ( sample::StorageFee ) ; "Storage Clearance Fee" & Char (9) & sample::StorageFee );
Case ( not IsEmpty ( sample::ConveyanceFee ) ; "Conveyance Clearance Fee" & Char (9) & sample::ConveyanceFee );
Case ( not IsEmpty ( sample::InstallationFee ) ; "Installation Clearance Fee" & Char (9) & sample::InstallationFee );
Case ( not IsEmpty ( sample::AdminFine ) ; "Administrative Fine" & Char (9) & sample::AdminFine );
Case ( not IsEmpty ( sample::OthersFee ) ; "Total Other Fees" & Char (9) & sample::OthersFee )

)

Screen Shot 2021-05-13 at 5.17.07 PM.png

Screen Shot 2021-05-13 at 5.17.51 PM.pngScreen Shot 2021-05-13 at 5.17.33 PM.png

Thank you mate for your response. Appreciate it. I will try this and give you feedback. :-)

On 5/14/2021 at 1:18 PM, comment said:

Consider changing your structure and turning all those taxes and fees into individual payment records in a related table, with fields for Category and Amount. Then create records only for applicable categories and print from the related table in list view.

This will not only solve your printing issue but also allow you to produce a report on payments by category.

 

Thank you mate for your response. Appreciate it. I will try this and give you feedback. :-)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.