Reply
 
LinkBack Thread Tools Display Modes
Old 07-21-2009, 01:26 AM   #1 (permalink)
Francisco Felix
Guest
 
Posts: n/a
Post How to add sales tax to the Installed Price on an item basis

I was wondering if there is a way to add the tax amount to the item price (on an item or package basis) when running the "Proposal / Install price". The report shows the total price of the materials plus the labor, (on an item basis) but does not add the tax. I am would like to see if its possible to add the tax to have a complete price (including sales tax) ON AN ITEM BASIS, and break it down as usual on the summary? can anyone help?
  Reply With Quote
Old 07-21-2009, 11:04 AM   #2 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default Try Custom report

Please follow these steps –

1. Create a Custom report based on existing “Proposal(Install price)” report and name it as “Proposal (Install Price + Sales Tax)”.

2. Go to script tab - in the procedure “ActiveReport_DataInitialize” add the below line.
rpt.CalculatedFields.Add("ItemwithTax")
3. After adding the above line replace the full code within the function “Function ActiveReport_FetchData(ByVal EOF As Boolean) As Boolean” with the below lines

Code:
Function ActiveReport_FetchData(ByVal EOF As Boolean) As Boolean


	Dim ds As DataDynamics.ActiveReports.Datasources.XMLDatasource = ctype(rpt.Datasource, DataDynamics.ActiveReports.Datasources.XMLDatasource)

	If ds.EOF Then return True
	
	' default the calculated to 0
	rpt.CalculatedFields("SummarizeInt").Value = 0
	
	'ReportUtilities.Spot("FetchData")

	'ReportUtilities.SetCurrentProposalItem(rpt)
	
	' get the current item the report is on...
	Dim itm As DTools.SystemIntegrator.Reporting.Item = ReportUtilities.ReturnItem(rpt)
	
	Dim totalItemAmount As Double = 0
	' If the item is not null, set value of the calculated field 
	If itm IsNot Nothing Then
	
		rpt.CalculatedFields("SummarizeInt").Value = Ctype(itm.Summarize, Integer)
		
		
		Dim i As Integer 
		
		'assign the installation price
		totalItemAmount = itm.InstallationPrice
		
		For i =0 to itm.ItemTaxes.Count - 1
		
			'Add the item tax amount
			totalItemAmount += itm.ItemTaxes(i).Amount
			
		Next i
		
	End If
	
	'Assign the item price with sales tax amount
	rpt.CalculatedFields("ItemwithTax").Value = totalItemAmount

	'ReportUtilities.Spot("FetchData Detail:" & showDetail)


	' Return whether this is the last record.  
	' This Is required Or the report will iterate forever over And never return
	return (ds.NodeList.Count = ds.CurrentPosition)


End Function

4. Go to designer tab , change the DataField property value of “txtPrice”, “txtGrp3Price”,” txtGrp2Price”, “txtGrp1Price” and “txtSubTotal” textbox control to ItemwithTax as illustrated in figure.

Data Field Property.JPG

5. Set MultLine property to False for “txtPrice” control.

6. Publish the report.


Now the new custom report is ready to run.

Hope it helps.
__________________
Narayana Karthik
nkarthick is offline   Reply With Quote
Old 07-21-2009, 08:57 PM   #3 (permalink)
Certified Partner
 
Ryan Brown's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 182
Ryan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud of
Cool Installed Price + Tax

Hey Francisco, how's it going? I hope all is well.

You may want to try this solution as well.

There is a new data field in 5.5 called InstallationPrice_Tax. In your main report (and level 2 and level 3 subreports) you will need to replace the dtr:InstallationPrice with dtr:InstallationPrice_Tax at the data field level.

InstallationPrice_Tax = Installed Price + Equipment Tax + Labor Tax
__________________
Ryan Brown
Media Environment Design
Founding D-Tools Certified Partner
(760) 434-9040
ryanbrown@medesign.tv
Linked In
D-Tools Custom Reports
Free D-Tools QuickTips Videos
Ryan Brown is offline   Reply With Quote
Old 07-22-2009, 12:30 PM   #4 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Talking Try Ryan's Solution first

Ryan's solution is much simpler than mine.

__________________
Narayana Karthik

Last edited by nkarthick; 07-22-2009 at 12:37 PM.
nkarthick is offline   Reply With Quote
Old 07-22-2009, 04:21 PM   #5 (permalink)
Certified Partner
 
Ryan Brown's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 182
Ryan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud of
Default

Here are a couple more new fields:

ExtendedPrice_Tax: [Equipment Price + EquipmentAdjustment + MiscPartsAdjustment + Tax]

ExtendedPrice: [Equipment Price + EquipmentAdjustment + MiscPartsAdjustment]

AdjustedPrice: [Equipment Price + EquipmentAdjustment]
__________________
Ryan Brown
Media Environment Design
Founding D-Tools Certified Partner
(760) 434-9040
ryanbrown@medesign.tv
Linked In
D-Tools Custom Reports
Free D-Tools QuickTips Videos
Ryan Brown is offline   Reply With Quote
Old 04-01-2011, 08:35 PM   #6 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: Kirkland, WA
Posts: 2
justinfriesen is on a distinguished road
Default

Is there a field for InstalledPrice + EquipmentAdjustment + Tax?
justinfriesen is offline   Reply With Quote
Old 04-01-2011, 09:50 PM   #7 (permalink)
Certified Partner
 
Ryan Brown's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 182
Ryan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud of
Default

Installed Price includes misc parts and equipment adjustment already.

The field to add tax to it is 'InstallationPrice_Tax'
__________________
Ryan Brown
Media Environment Design
Founding D-Tools Certified Partner
(760) 434-9040
ryanbrown@medesign.tv
Linked In
D-Tools Custom Reports
Free D-Tools QuickTips Videos
Ryan Brown is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Tax Suggestion Ahtinc Suggestions and Feature Requests 0 09-17-2008 01:11 PM
Line Item Installed Price showing Owner Furnished Memphix Reports and Reporting Center 6 06-30-2008 08:38 AM
Breaking out accessories jpol Reports and Reporting Center 6 05-05-2008 03:09 PM
Accessories price included in item total superior Reports and Reporting Center 1 11-19-2007 06:02 PM
Line Item Installed Price w/ Packages jgore.maxsecurity Suggestions and Feature Requests 4 07-26-2007 10:48 PM


All times are GMT. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.