Would anyone know where can I find in Oracle tables Invoice Voucher Number (normally stored on the invoice header level in the payables module) and invoice sequence number?
I have searched far and wide but seem not to be able to find the answer.
Thank you!
AP.AP_INVOICES_ALL.DOC_SEQUENCE_VALUE column actually stores what on Invoice header level in the Payables module appears as Voucher Number
Related
I have a string that contains the following:
Invoice Type|Vanula|Invoice|December| Invoice to be submitted according to Invoice type-priority|2022
I want to keep the first Invoice Type and remove/replace all other instances where Invoice or Invoice type.
The first Invoice Type will always be constant but the rest can be dynamic. Please advise?
I got one question for SQL query (sql server) for which I am very confused what they want to me display in the first place. This is one exam question, so I do not believe it's a mistake and unfortunately I cannot ask for clarification.
Question:
"Write a query that has the following columns:
Transaction ID, Stock type.
Group the rows according to the portfolio."
My current query will be:
select p.prfid 'Portfolio', t.trdnbr 'Transaction ID', s.instype 'Stock Type'
from transaction t, stock s, portfolio p
where t.insaddr = s.insaddr
and t.prfnbr = p.prfnbr
One portfolio can have multiple transactions, but I am confused because they are not looking for number of transactions per portfolio (in which way "group by" will have total sense), so I am not sure in which way I should group them (except of simple sorting).
Also I was wondered if they expected me to write portfolio name in the where clause in order to group similar transactions... I don't know I am very confused.
Please help at least in which way you think they want me to present the result.
My current sample output for better view of data (it DOES NOT mean it should look like that))
Portfolio Transaction ID Stock Type
Cash 1001 Deposit
Cash 1002 Currency
Crypto 1003 Stock
Thanks
I am looking to extract records with purchase invoice discrepancies from Purchase Invoice Line [PIL], Purchase Invoice header [PIH] and Purchase line [PL], and purchase header [PH] tables.
Do I really need to take any columns from PL AND PH at all or is it sufficient if I make use of only PIH AND PIL tables? And how to cross verify the result set at the end?
Thanks
To identify discrepancies you need to compare your purchase orders with your invoices. There's no way to compare an invoice with its purchase order without reading its purchase order. So yes you need to read from PL and PH.
Having worked on professional systems which do exactly this task I can say it tends to be more complicated. Usually the user will set acceptable limits on which discrepancies need to be flagged.
For example some companies will pay an invoice and never flag a discrepancy as long as the invoice total does not exceed the PO total. In those cases you don't need to look at the line PO / Invoice line level, just the header level.
I'm pretty new to CR and this is stumping me. I have two SQL tables, let's call them Invoice and AdditionalCosts. AdditionalCosts is linked to Invoice by invoice number. My report prints details regarding invoices for a particular day. AdditionalCosts can have multiple records for an invoice. I need to sum the costs and display the total with the invoice in the detail section.
I have several groups already and I tried adding an additional group for invoice number. I then suppressed the detail section. That works for the total of additional costs but it also sums the other fields in the report (total price, total cost, etc) if there are multiple records in AdditionalCosts.
I have two tables, one contains a set of line items with amounts:
LEDGERTRANS:
Invoice ID LineAmount
CM-00011054 -122.500000000000
CM-00011054 -246.000000000000
CM-00011054 -159.840000000000
CM-00011054 -39.3600000000000
And one with an item number i want, which happens to have a field, AMOUNTMST that is the sum of the above amounts
CUSTINVOICETRANS
INVOICE ID AMOUNTMST
110100 -567.700000000000
400100 567.700000000000
I would like to take the sum of the CustInvoiceTrans lines, then grab the corresponding invoice id from the LedgerTrans Table.
This is for SQL Server 2008R2.
As I said, all I want is the InvoiceId. I think i'm making this too complicated. any help appreciated