473,410 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Accounting/Tax

Hi
I have written a small accounts package

My problem is that i have set the GST in qrys as the following
AmountDue: 1.1*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

This works great, now my design mistake is that i want the user to
choose if they are GST registed or not.

My thoughts are create a field [GST], HOWEVER when i do this and place
it as

AmountDue: [GST]*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

THE return value is the amount of GST not the Totla including GST.

Has anyone made an accounts package and can ofer me some solutions?

DD
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
4 1370
I assume this
AmountDue: 1.1*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))
means that your GST is 10 % ?

is your [GST] here .1 or 10 ?
AmountDue: [GST]*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

try either
AmountDue: (1+[GST])*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

or
AmountDue: (100+[GST])/100*([unitprice]*[Quantity]*(1-[Discount])-
([CreditUnits]))
David Deacon <da**********@bigpond.com.au> wrote in message news:<40***********************@news.frii.net>...
Hi
I have written a small accounts package

My problem is that i have set the GST in qrys as the following
AmountDue: 1.1*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

This works great, now my design mistake is that i want the user to
choose if they are GST registed or not.

My thoughts are create a field [GST], HOWEVER when i do this and place
it as

AmountDue: [GST]*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

THE return value is the amount of GST not the Totla including GST.

Has anyone made an accounts package and can ofer me some solutions?

DD
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #2

Hi Roger
thanks for your input the following works great, however if i want the
GST to be zero rather that 10% in this query, it is making the whole
expression zero
AmountDue:
(Nz(1+[GST10]))*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))
Any Ideas

My ultimate goal
My thoughts are that i have a chkboxYN the user decides if they are GST
[10%] or not =0

Regards
DD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
Ok i have fixed the latest dilema by way of following

AmountDue:
((Nz(1+[GST10]))*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))
)
Extra brackets
Now i can have 0 or 10%
Thanks to all who helped
DD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4
is [gst10] = 0 or is it = null ?
it must be null...it is the only way that expression can be 0
null + anything - anything * anything / anything always equals null

try
(1+nz([GST10],0))*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))

David Deacon <da**********@bigpond.com.au> wrote in message news:<40***********************@news.frii.net>...
Hi Roger
thanks for your input the following works great, however if i want the
GST to be zero rather that 10% in this query, it is making the whole
expression zero
AmountDue:
(Nz(1+[GST10]))*([unitprice]*[Quantity]*(1-[Discount])-([CreditUnits]))
Any Ideas

My ultimate goal
My thoughts are that i have a chkboxYN the user decides if they are GST
[10%] or not =0

Regards
DD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andreas Pauley | last post by:
Hi All, Our company is currently evaluating Python as a language for writing financial/accounting type software (among others). What libraries or packages are available in this domain for use?...
5
by: Peter Mount | last post by:
Hello Where can I find a good source for schemas in Access for doing accounting systems or simlar? I'm currently looking to develop some database tables for a simple accounting setup using...
41
by: Matt Alanzo | last post by:
Our SOHO 2 person compay sells furniture (not programmers). In '98 we paid $,$$$ for a VBA -Access '97 accounting application, including VBA source code .... an huge investment for us then (and...
4
by: KnightKnives | last post by:
Is there anyone out there who could help me find the resources I need in order to make this application. I have done a lot of work with 2.0 engine then upgraded to 97; now have 2003. I have...
16
by: Paul | last post by:
Anybody had experience with the commerical (or open source) Access based accounting packages out there. I'm looking to replace a small business accounting package (Peachtree) that I can't...
9
by: Andy Sze | last post by:
I am looking for a book. How to design a accounting system(General ledger, AR, AP) and include VB.net source code sample. Regards.
0
by: pedaammulu | last post by:
Hi All, New title for Mastering Web Application Development. All secrets of developing an Accounting Software for the web revealed. Title: "Develop your own Web Accounting Application...
6
by: Sean | last post by:
I am looking for an open source accounting application written in C#. I have looked at maybe doing something with Accounting Express, but I wanted to know some opinions. The reason I am looking...
1
by: donbell | last post by:
1. What are the following module that we use in accounting system? 2. What is the significance of accounting system? 3. Can you give us, some objectives in accounting system? 4. For some, please...
2
by: =?Utf-8?B?VGhvcm5lZCBSb3Nl?= | last post by:
When customising a template for Accounting 2008, I can't find an xml tag for a customers e-mail e.g. E-mail 1, E-mail 2, E-mail 3. How can I include these email fields from the customer form into...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.