compare_amount_paid_in_ar_and_acc_trans
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
compare_amount_paid_in_ar_and_acc_trans [2016/09/19 13:33] – created sweitmann | compare_amount_paid_in_ar_and_acc_trans [2016/09/19 13:39] – sweitmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | | + | First check the AR amount without payment: |
+ | |||
+ | | ||
+ | |||
+ | Then check payment amount: | ||
+ | |||
+ | SELECT SUM(amount) FROM acc_trans WHERE trans_id = ' | ||
+ | |||
+ | Or run a query to compare all values from the two tables: | ||
+ | |||
+ | SELECT ar.id, invnumber, ar.amount, (SELECT SUM(amount) FROM acc_trans ac WHERE ac.trans_id = ar.id AND ac.chart_id IN (SELECT id FROM chart WHERE link NOT LIKE ' |
compare_amount_paid_in_ar_and_acc_trans.txt · Last modified: 2016/09/20 12:35 by sweitmann