• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Add prices with taxes in quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add prices with taxes in quark


  • Subject: Re: Add prices with taxes in quark
  • From: Adam Bell <email@hidden>
  • Date: Thu, 27 Jul 2006 14:05:41 -0300

Title: Re: Add prices with taxes in quark
At 5:49 PM +0200 7/27/06, Jan Bultereys wrote:
Hi,

Is there a way to add prices with taxes (21%)  after an existing price in quark 6.5?
Let's say I have an example like this:
Product  price1 price2 price3
Paper      10       20        30

And I want to have this:
Product    price1          price2        price3
Paper     10 (12.1)     20 (24.2)    30 (36.3)

Any help is much appreciated
Jan

I don't have Quark, but assuming you can 'grab' a line of the text, that the price could have one place after the decimal point, and that you want only one place after the decimal point of the price with tax added, this script will do it:

set aPriceLine to "Paper      11.1       22.2        33.3" as Unicode text
set w to words of aPriceLine
repeat with k from 2 to count w
  
tell item k of w to set T to it & space & "(" & ((12.1 * it) as integer) / 10 & ")"
    
set item k of w to T
end repeat
w
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Add prices with taxes in quark
      • From: kai <email@hidden>
References: 
 >Add prices with taxes in quark (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: Script to run a command in new Terminal window works un-reliably.
  • Next by Date: Re: Script to run a command in new Terminal window works un-reliably.
  • Previous by thread: Add prices with taxes in quark
  • Next by thread: Re: Add prices with taxes in quark
  • Index(es):
    • Date
    • Thread