Invoice has been fully paid and still be able to choose the payment amount of zero
Background:
Recent users, some of the invoices have been fully paid and still be able to choose zero-sum payment, currently we do not have this feature turned on (enable the Allow Zero Payments option in the Payables Options region of the Bank Accounts window.)
Reasons:
Personally think that may be the bug, leading to no synchronization update flag
Measures:
1> to find the corresponding invoice;
SELECT DISTINCT ai.invoice_id, ai.invoice_num invoice_num,
pv.segment1 vendor_num, pv.vendor_name vendor_name,
'The fully Paid invoice should be closed!' Status
FROM ap.ap_invoices_all ai,
po.po_vendors pv,
ap.ap_payment_schedules_all aps
WHERE ai.invoice_id = aps.invoice_id
AND ai.set_of_books_id = & sob
AND ai.invoice_amount = ai.amount_paid
AND ai.cancelled_date IS NULL
AND ai.vendor_id = pv.vendor_id
AND (ai.payment_status_flag <> 'Y'
OR aps.payment_status_flag <> 'Y'
)
2> update the corresponding flag to conform to the actual operations;
update ap_invoices_all
set payment_status_flag = 'Y'
where invoice_id = & invoice_id;
update ap_payment_schedules_all
set payment_status_flag = 'Y'
where invoice_id = & invoice_id;
Conclusion: The test found
1> 2 form a payment_status_flag any Y, the other values of N or P, in the table would choose not to pay the invoice;
2> the two tables do not payment_status_flag for Y, check whether the two N or P, in the payment table could choose to invoice.
Related Posts of Invoice has been fully paid and still be able to choose the payment amount of zero
-
Foreign key fields to build the index is not caused by deadlock
Conclusion: It has been discussed whether all the database design should comply with the paradigm of the norms, all the main foreign key relationship established. It was also opposed to this, because such complex relations in the OLTP system may beco ...
-
Payables Accounting Process Analysis of invoice entry
Payables Accounting Process Analysis of invoice entry Problem: Invoices state accounted for by the Yes to No, then Yes the course of the demonstration 1. 20090224-1 invoice number generation, authentication / create accounting entries, the current Ac ...
-
SQL on the null data in the scheduling problem
We know, null as "unknown data." However, in order of time, Oracle will think that it is "infinite" to sort out on the "maximum" position. If you do not want this, you need to use the nvl function. Here are some small te ...
-
How to obtain the trace file name
Sql_trace/10046 such as when we use to carry out the process of tracking case, the trace file to generate. Trace file name from the following components: <sid> _ora_ <pid>. trc Users to track the following script file name: For Unix: For ...
-
Oracle Sysdba certification authority management
<br /> Outlined one at ORACLE has a special level of competence - sysdba authority, sysdba privileges ORACLE systems have the highest authority, has opened the database, turn off the database, restore database, such as advanced permissions, the ...
-
Detailed: database name. Instance name. ORACLE_SID. Database name
Detailed: database name, instance name, ORACLE_SID, database name, global database names, service names and hand the script to create oracle database Database name, instance name, database name, global database names, service names, This is easy for some
-
Oracle10g Network Configuration
1.Oracle Net Listener configuration listener configuration file is $ ORACLE_HOME / network / admin / listener.ora: The following format: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = <IP/dbserver_name>) (PORT = 1521))) 2. Client <br /&g ...
-
LISTENER and EZCONNECT
listener =========================== Listener should be noted that there are two methods Register: Dynamic and Static Registration Registration Registration <br /> dynamic, that is, when the listener configuration, Do not need to configure stat ...
-
ProC will select the data on the two-dimensional array
Examples are as follows: (Over)
-
use sqlldr 1 Introduction
The customer is always asked for two days to a number of temporary table to import text data, sql * loader is also not very familiar with the FREE today to sum up. General to set up two files: Control files and data files, if the data can also be les ...













Leave a Reply