on 11-13-2014 6:26 AM
Hi experts
i had made around 7 UDT in A/R invoice
1. Base Rate
2. No Days in Month
3. No Days Worked
4. SOTR (Special Over Time Rate)
5. SOTT (Special Over Time Hours)
6. NOTR (Normal Over Time Rate)
7. NOTT (Normal Over Time Hours)
now i need to calculate these tables date and need to appear in Unit Price Feild
The calcuation is as follows
Base Rate / No Days in Month * No Days Worked + SOTR (Special Over Time Rate) * SOTT (Special Over Time Hours) + NOTR (Normal Over Time Rate) * NOTT (Normal Over Time Hours)
the total amount should appear in A/R INVOICE " Unit Price" Table.
for this i had made a query also, but it is not working when am assigning to the "Unit Price Table"
But the when i run the query as normal wise, it returning the total
and this is in row wise.
The below attach is how i assign the Query
*******************************************************************************************************************************************************************************
SELECT INV1.U_BasicRate, INV1.U_NOTHour, INV1.U_NOTRate, INV1.U_SOTHours,
INV1.U_SOTRate, INV1.U_TotalDaysInMonth, INV1.U_TotalWorkDays,
(INV1.U_BasicRate / INV1.U_TotalDaysInMonth * INV1.U_TotalWorkDays + INV1.U_NOTHour * INV1.U_NOTRate)
+ INV1.U_SOTHours * INV1.U_SOTRate AS 'Total Invoice Rate'
FROM INV1 INNER JOIN
OINV ON INV1.DocEntry = OINV.DocEntry
WHERE 'Total Invoice Rate' = $ [$38.14.0]
***************************************************************************************************************************************************************************
pls help me sort it out
Regards
Hi,
Try:
SELECT ($[INV11.U_BaseRate.number]/$[INV11.U_NoDayinMonth.number])*$[INV11.U_NoDaysWorked.number]+
$[INV1.U_NOTHour.number]*$[INV1.U_NOTRate.number]+$[INV1.U_SOTHours.number]*$[INV1.U_SOTRate.number]
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sahan,
It should be there in list above the UoM Code.
and try the last query i gave to you.
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shahan,
Try the below FMS on Unit Price.
SELECT (($[RDR1.U_BaseRate.NUMBER]/$[RDR1.U_NoDayinMonth.NUMBER])*
$[RDR1.U_NoDaysWorked.NUMBER])+$[RDR1.U_SOTR.NUMBER]+$[RDR1.U_SOTT.NUMBER]+$[RDR1.U_NOTR.NUMBER]+$[RDR1.U_NOTT.NUMBER]
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try this
SELECT (($[INV11.U_BaseRate.FLOAT]/$[INV11.U_NoDayinMonth.FLOAT])*
$[INV11.U_NoDaysWorked.FLOAT])+$[INV1.U_SOTR.FLOAT]+$[INV1.U_SOTT.FLOAT]+$[INV1.U_NOTR.FLOAT]+$[INV1.U_NOTT.FLOAT]
and make all your UDF's as Type : Units and Totals and Structure : Price
Hope this will help you
Regards,
Manish
Hi Sahan,
Refresh it on Unit Price and try below query
SELECT ((convert(float,$[INV1.U_BaseRate.Float])/convert(float,$[INV1.U_NoDayinMonth.float]))*convert(float,$[INV1.U_NoDaysWorked.float]))+convert(float,$[INV1.U_SOTR.float])+convert(float,$[INV1.U_SOTT.float)+convert(float,$[INV1.U_NOTR.float])+convert(float,$[INV1.U_NOTT.float])
Regards,
Manish
Hi,
Please advice above fieds are UDF or from UDT.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.