Using the Invoice Balance Due in Queries
I am putting together a custom aging report and have hit a snag. I can not find a field name for the balance due information in the invoice, only doc total. Do I have to use a formula? If so, any suggestions?
Thanks!
oinv.paidsum may not be updated for all transactions due to various reasons. on the other hand, oinv.paidtodate will always be updated no matter what kind of payments you applied.
Thanks,
Gordon
Similar Messages
-
Need a functional module to compute the invoice balance
Hi,
I need to know if there is a functional module which we can use to compute the invoice balance by deducting the credit notes and the payments.This was not answered
-
Use SQL function to get the original order number using the invoice number
Hi All,
wondering is someone can help me with this challenge I am having? Often I need to return the original order numbers that created the resulting invoce. This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement. the code i currently have is:
Use SQL function to get the original order number using the invoice number
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
RETURN @OrderList
END
it is run by the following query:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number here'
The issue is that this returns the order number for all of the lines in the invoice. Only want to see the summary of the order numbers. ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
If this was a simple reporting SELECT query I would use SELECT DISTINCT. But I can't do that.
Any ideas?
Thanks,
MikeThanks Gordon,
I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice. However, I have managed to solve my own problem with a GROUP BY statement!
Others may be interested so, the code is this:
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
GROUP BY T6.DocNum
RETURN @OrderList
END
and to call it use this:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number' -
Hi, I just started using the SJWS7.0. When a client sends a request, is the request to the load balancer server name or the admin server name? Any information on how to use the load balancer will also be appreciated
The server where the load balancer is running. The admin server has not play in the load balancing beyond allowing you to configure and manage it using the administration console.
-
How to use the Load Balancer Plug-in to serve multiple domains
In SJSAS8.1 SE/EE the asadmin commands that create and maintain a load balancer configuration operate within a domain. When the load balancer configuration is exported an xml file is created that contains all the information for that domain. To make the load balancer plug-in balance the load for multiple domains, the loadbalancer.xml files can be manually merged to conatin the data that is exported from each domain's load balancer configuration.
For example, 2 domains are created, both having a load balancing configuration. After exporting both configurations using the asadmin export-http-lb-config command, the user would then cut and past the cluster information into the single loadbalancer.xml file that resides under the web server's config directory.
An example of the manually merged loadbalancer.xml file follows:
<?xml version="1.0" encoding="UTF-8"?>
<loadbalancer>
<cluster name="domain1">
<instance disable-timeout-in-minutes="30" enabled="true" listeners="http://localhost:1026 https://localhost:38181" name="i1"/>
<instance disable-timeout-in-minutes="30" enabled="true" listeners="http://localhost:1027 https://localhost:38182" name="i2"/>
<web-module context-root="ab" disable-timeout-in-minutes="30" enabled="true"/>
<health-checker interval-in-seconds="5" timeout-in-seconds="60" url="/"/>
</cluster>
<cluster name="domain2">
<instance disable-timeout-in-minutes="30" enabled="true" listeners="http://localhost:1029 https://localhost:38189" name="i3"/>
<instance disable-timeout-in-minutes="30" enabled="true" listeners="http://localhost:1030 https://localhost:38188" name="i4"/>
<web-module context-root="webservice" disable-timeout-in-minutes="30" enabled="true"/>
<health-checker interval-in-seconds="5" timeout-in-seconds="60" url="/"/>
</cluster>
<property name="response-timeout-in-seconds" value="60"/>
<property name="reload-poll-interval-in-seconds" value="5"/>
<property name="https-routing" value="false"/>
<property name="require-monitor-data" value="false"/>
<property name="route-cookie-enabled" value="true"/>
</loadbalancer>
Hope this helps - MarkMark, be my savior, I work for SUN as subcontractor at client site. the only one at site ...so I depend on this forum for solutions........
still having trouble failingover to second instance. I have two AccessManagers behind this loadbalancer.
Here is what I saw......
**************LOGS**********************
[20/Jun/2005:14:22:47] failure (15102): for host 128.114.65.13 trying to GET /amconsole/base/AMA
dminFrame, service-passthrough reports: timed out waiting for request body
[20/Jun/2005:14:22:47] warning (15102): reports: lb.runtime: ROUT1014: Non-idempotent request /
amconsole/base/AMAdminFrame cannot be retried.
So I went and updated the loadbalancer.xml (see at the end of the msg). Now I get a different kind of problem...
**************LOGS******************************
[20/Jun/2005:15:25:18] failure (15295): for host 128.114.65.13 trying to GET /amconsole/base/AMA
dminFrame, service-passthrough reports: timed out waiting for request body
[20/Jun/2005:15:25:18] info (15295): reports: lb.runtime: RNTM3003 : Error servicing the request : NoVal
Here is my loadbalancer.xml file...
<loadbalancer>
<cluster name="cluster1">
<instance name="instance1" enabled="true" disable-timeout-in-minutes="1" listeners="http://idm-test-1.ucsc.
edu:80 "/>
<instance name="instance2" enabled="true" disable-timeout-in-minutes="1" listeners="http://idm-test-2.ucsc.
edu:80 "/>
<web-module context-root="amconsole" disable-timeout-in-minutes="1" enabled="true" error-url="sun-http-lber
ror.html" >
<idempotent-url-pattern url-pattern="/*" no-of-retries="3" />
</web-module>
<web-module context-root="amserver" disable-timeout-in-minutes="1" enabled="true" error-url="sun-http-lberr
or.html" >
<idempotent-url-pattern url-pattern="/*" no-of-retries="3" />
</web-module>
<web-module context-root="ampassword" disable-timeout-in-minutes="1" enabled="true" error-url="sun-http-lb
error.html" />
<web-module context-root="amcommon" disable-timeout-in-minutes="1" enabled="true" error-url="sun-http-lberr
or.html" >
<idempotent-url-pattern url-pattern="/*" no-of-retries="3" />
</web-module>
<health-checker url="/" interval-in-seconds="15" timeout-in-seconds="2" />
</cluster>
<property name="reload-poll-interval-in-seconds" value="60"/>
<property name="response-timeout-in-seconds" value="30"/>
<property name="https-routing" value="false"/>
<property name="require-monitor-data" value="true"/>
<property name="active-healthcheck-enabled" value="true"/>
<property name="number-healthcheck-retries" value="3"/>
<property name="route-cookie-enabled" value="true" />
</loadbalancer>
************************************************************** -
I redeemed my iTunes money card, now how do i use the full balance
it goes like this, you pay your money to get an iTunes store credit redeemable as a gift.
then you wind up with 2 dollars and 10 cents left. you aren't an iTunes aficionado, and you won't ever use it if you don't use it on something that you want right now but what you want costs 5 dollars and 25 cents................
what can i do with my credit on my account, because it will say insufficient funds.
i know what google play does, they won't let you use it unless you have enough play money.
now come one they can't be as dumb as google on this issue can they?
i mean, any store you go to you can use gift card balance plus credit card to make up the difference.
that's all I'm asking here a small courtesy for a company that owns more money than my state. come to think of it, there's not much way of dealing with my state either. unless you're earnest p warrellAdd your credit card to your account - if your next purchase is more than your account's balance then the remainder will be taken from the credit card.
-
Using the load balancing on SAP
Hello,
wa have different SAP job chains using ABAP scripts and we would like that this scripts use the SAP application server because they run under DBCI and this is not correct.
We found that the SAP script use a specific "execution target". This should not be so. The execution target should be blank for using load balancing.
In the init jcs file, the parametetr "sheduler_hostname" and "sheduler_fqdn" are positionned with the hostname of the Redwood SAP Agent. Should this be modified ?
thanks.Hi,
It looks like you have Load balancing enabled from CPS (it is enabled by default). To switch of load balancing go in the Redwood registry in the Redwood Explorer (Configuration->Environment->Registry->PUBLIC->RSI-><SAP instance>) and look for the value at parameter LoadBalancing. You can switch this of (set to N) and restart the RFC agent for this instance. Now the execution target will be left empty.
Regards Gerben -
How can I purchase a GIFT using the credit balance in my iTunes account?
When attepting to gft an app to a friend, the iTunes store is asking for a credit card when I have a rather sizable credit in my iTunes account. ***? I don't want to pay MORE when I already HAVE plenty of money in my account!
How can I gift using my credit?That's a total CROCK!! Now I can't buy my mom a mother's day gift.
-
Using the "V" function in dynamic queries
I have a report region using 'pl/sql function body returning query'. It uses 'return package.function;'. The function makes extensive use of the "V" function to read session state.
If I have a predicate like
if (something) then
q:=q||'
and some_column=v(''P1_ID'')
end if;
When the query is parsed, this gets translated to
and some_column=v('P1_ID')
Question: Is the v('P1_ID') treated like a bind variable similar to the sys_context() concept? So it is evaluated just once per query and the value is plugged into the query. It is NOT evaluated for every row returned by the query, right?
I am pretty sure thats the way it works, just wanted someone to confirm it.
ThanksVikas,
v() is a function, no differently than any other PL/SQL function you would employ in SQL. The way you have composed your query, it would be evaluated for every row.
A simple example to show this:
SQL> create or replace function vv (p_in varchar2) return varchar2
2 is
3 begin
4 dbms_output.put_line('vv was called');
5 return p_in;
6 end;
7 /
Function created.
SQL> set serveroutput on size 100000
SQL> select count(*) from emp where ename = vv('KING')
2 /
COUNT(*)
1
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
vv was called
SQL>
SQL> select count(*) from emp where ename = (select vv('KING') from dual)
2 /
COUNT(*)
1
vv was called
SQL>
Note the last query, how you can specify this without causing it to be evaluated for every row.
Joel -
I have to open up an Internet Explorer browser when I try to to a search for anything. Even though I've selected google as my default search engine, I still get redirected to some random site. It's useless. I would like to use Firefox all the time, but I cannot do so.
Do a malware check with some malware scan programs. You need to scan with all programs because each program detects different malware. Make sure that you update each program to get the latest version of the database before doing a scan.
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and Searches are redirected to another site -
i have a new computer and the itunes store will not allow me to redeem my remaining balance. How to handle.
Details, please. What exactly is happening? How is it "not allowing you" to redeem your balance?
-
Can I use the existing balance of my iTunes account to subscribe to iTunes match?
I bought a 50 dollars card, and after include this into my apple ID aacout, i went to suscribe to itunes match. I don´t want a credit card associated, and I noticed that there is an option to trade itunes cards to suscribe. It is too late for may card because I already trade it, but I bought it just to suscribe! How can I use that money now to get Itunes Match????
http://support.apple.com/kb/HT4914
You do need a permanent form of payment on file to subscribe to iTunes Match. -
Variable for ReportSum of Cumulative Balance Due in the General Ledger
Hello ,
my Customer need in the General Ledger Report only the sum of Balnce Due, Cumulative Balance Due .
Ok, for all i find a varible for Sum of the report. But not for the Cumulative Balance Due.
In the Repetitive Area 0 is the variable 186 setting, thats ok.
But in the Page Footer when i set formula > ReportSum ("Field_with_Variable_186") the sum is the sum about all
the row and not the Summe of all the Repetitve Area´s
Can you help me, or what can we do?
Thank
DanielaHello Gordon,
that is my problem, the variable 186 is for the row, not the end of periode balance for cumulative balance due!
For example for the end of periode of cumulative balance, i find the variable 107 and then the report sum is correct.
The same i need for the cumulative due of all the Repetitive Area Folder in the Page or End of report folder.
Thank´s
Daniela -
Payment block in F-53 even if the amount is due for payment
Hi Gurus
While we are making payment through F-53 we are getting an error message "1 item(s) was/were not activated due to online payment blocku201D Message no. F5528.
Issue:
1. Amount is already due for payment.
2. Payment block is needed if the amount is not due.
3. Now we are manually remove payment block by using t code FB02.
How can we remove this payment block automatically if it is due for payment?
Thanks in advance.
Thanks and regards
SahilDear Friends
We are using FB02 for removing the payment block.
Example:
We are creating a vendor invoice on 01.02.2010 and terms of payment 30 days
so on 05.03.2010 it will be due for payment (Payment is making on 05.03 2010).
Invoice is crating by one user
Payment is done by another user.
While doing F-53, user is getting this error (even the invoice is due for payment) and this user is removing the payment block using T code FB02.
Now our Clients Requirement:
If the payment is due, then the system will allow (without using FB02)
If the payment is not due , System have to Throw Error message.
Their Argument is that what is the need of Payment block. Means we are creating terms of payment for 30 days, 45 days etc....
Two terms of payment is enough.
One for immediate payment without block and another with block.
Requirement: Is it possible that payment block will be removed automatically if it due for payment and other side if the payment is not due system should block.
Thanks and regards
Sahil -
Camera Raw crashes with use of white balance eye dropper.
Using PS CC2014.2.1
Since this update, whenever I use the white balance eyedropper in Camera Raw, if placed over an over exposed region, instead of the dialogue box popping up to warn that the area is too bright, the system just freezes. Have to launch task manager and close PS.
If eyedropper is placed on non-over exposed (not clipped) area, it seems alright. Anyone else experiencing this?Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks!
Maybe you are looking for
-
How can i have a second function running while Threat.sleep is active?
HI, I am not that familiar with the Threat.sleep class, and here is my question: Is it possible that you can execute something else while Threat.sleep is pausing a function, if so, how is it possible? If not is there an another way how i can let a fu
-
Photoshop Elements 12 installation error on windows causing rollback-help needed please
I am installing Photoshop Elements 12 on my windows laptop. When almost done an error occurs and it starts rollback and the installation fails. I consulted the troubleshooting guide which suggests to go to C://Program Files(x86)/Common Files/Adobe/OO
-
As I am a new user of Apple TV i have problems in getting subtitles on purchased / rented films. I have entered information at the subtitles field but no luck. Please help.
-
Hi All I am trying to understand if cloud support SOA components deployment like BPEL, Mediator etc.., It will be great help if someone can confirm this
-
I have an Ipad 2, 3g+Wi-fi 16Gb. It was working very well but a few months ago it started returning the error "Invalid SIM". Went to the operator and changed the card (to a brand new card). The problem persists. It only fails when I shut the "door" (