Adobe Forums

Add Me
Adobe Forums » Software Discussions » Adobe Acrobat » Acrobat Scripting Languge » invoice script. add gratuity, tax subtotal ect....

Tags:



Reply
LinkBack Thread Tools Display Modes
invoice script. add gratuity, tax subtotal ect....
  #1 (permalink)  
Old 09-27-2008, 08:21 PM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default invoice script. add gratuity, tax subtotal ect....

can someone please help me out. looked eveywhere, found nothing... seems very simple for someone who knows a thing or two about acrobat... and javascript.

have a form that WE fill out, Quantity, Amount,.. and i would like it to automatically calculate gratuity (at 20%), sales tax (6.5%) make it visible on the form... and then subtotaled, and TOTAL...

can someone please help me out! i would GREATLY appreciate it!

thanks again
ps. this is my first post! be gentle!


Reply With Quote


  #2 (permalink)  
Old 09-27-2008, 08:22 PM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

need to know it all, all the javascript side... can someone make a dummy form for me? so i can see the guts... i have no idea what i am doing... my javascript knowledge is very very limited.

would like 'price of each' times cost x 20% gratuity, plus sales tax (6.5%) equals total all broken down...

so i can see each field.. price of each, amount, what the gratuity will be at 20% then add tax to everything, show me how much is tax, then add it all together for a total...

thank you
pj
Reply With Quote


  #3 (permalink)  
Old 09-27-2008, 08:22 PM
Mark_Walsh@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

Shouldn't need any javascript, this is doable with calculation fields.

If you name the line item price fields as "ItemPrice.1", "ItemPrice.2"...etc. then you can create a field to calculate the sum of "ItemPrice"

Create a field for the gratuity and the sales tax (set the Default values to ".2" and ".065" and make them uneditable) and you can then use them in the calculations (sums and products) for the other 'Totals" fields you need.
Reply With Quote


  #4 (permalink)  
Old 09-27-2008, 08:22 PM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

hey mark, thanks for posting!
ive still been messing about... have the form all layed out correctly... just need someone to help me wiht the behind the scenes work... could i email it to you? thanks again for your post!
pj
Reply With Quote


  #5 (permalink)  
Old 09-28-2008, 06:12 PM
Geo_Kaiser@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

Unless you want to go into the custom JavaScript calculation, you should make a subtotal field that can be accessed by the simpler calculation methods and you could also add a sales tax rate field and a gratutity rate field to hold those rates. If you are going to use the "simplified field" notation be careful as to how you name your fields, no special or white space characters.
Reply With Quote


  #6 (permalink)  
Old 09-29-2008, 05:38 AM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

think i did that already... ive been messing with it a bit.. i really wish i could email it to someone who knows what they are doing.. clearly i do not...

it is all set to go (layout-wise) just not functioning correctly...

it keeps adding up in the total, even after i erase the lines... (do i need a reset button?)
also, curious about emailing it to email address entered in email_line form.. if this is possible... not xml data, but the actual pdf form..

thanks again
pj
Reply With Quote


  #7 (permalink)  
Old 09-30-2008, 10:51 PM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

come on... anybody... please help! cant believe this... its all set to go... i am just having problems with the calculations..
ill pay someone body, geez

p
Reply With Quote


  #8 (permalink)  
Old 09-30-2008, 10:51 PM
Geo_Kaiser@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

In Acrobat Forms you can use the calculation option of "Value is the ___ of the following fields:" You will need to select your operation and fields.

If you are using the LiveCycle Designer, use for the 'amount.1' field:

quantity.1 * priceEach.1
Reply With Quote


  #9 (permalink)  
Old 10-01-2008, 07:27 AM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

ya, still having problems...
the form wont reset... and the tax/gratuity are not working...
can someone take a look at it please?

pj
Reply With Quote


  #10 (permalink)  
Old 10-05-2008, 12:09 PM
pj_raygun@adobeforums.com
Guest
 
Posts: n/a
Default Re: invoice script. add gratuity, tax subtotal ect....

can anybody help me with this.. still having problems...
p
Reply With Quote


Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 02:50 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.