mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
Sourced wnframework-modules from Google Code as erpnext
This commit is contained in:
12
accounts/search_criteria/payment_report/payment_report.sql
Normal file
12
accounts/search_criteria/payment_report/payment_report.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
SELECT `tabJournal Voucher`.`name`,`tabJournal Voucher Detail`.`account`,`tabJournal Voucher Detail`.`credit`,`tabJournal Voucher Detail`.`debit`,`tabJournal Voucher Detail`.`against_voucher`,`tabJournal Voucher Detail`.`is_advance`,`tabJournal Voucher`.`voucher_date`,`tabJournal Voucher`.`aging_date`,`tabJournal Voucher`.`cheque_no`,`tabJournal Voucher`.`cheque_date`,`tabSupplier`.`supplier_type`,`tabJournal Voucher`.`remark`
|
||||
FROM `tabJournal Voucher Detail`,`tabJournal Voucher`,`tabAccount`,`tabSupplier`
|
||||
WHERE `tabJournal Voucher`.docstatus=1
|
||||
AND `tabJournal Voucher`.`posting_date`>='%(posting_date)s'
|
||||
AND `tabJournal Voucher`.`posting_date`<='%(posting_date1)s'
|
||||
AND `tabJournal Voucher`.`company` LIKE '%(company)s%%'
|
||||
AND `tabJournal Voucher Detail`.`account` LIKE '%(account)s%%'
|
||||
AND `tabAccount`.`master_type` = 'Supplier'
|
||||
AND `tabAccount`.`account_name` = `tabSupplier`.`name`
|
||||
AND `tabJournal Voucher Detail`.`account` = `tabAccount`.`name`
|
||||
AND `tabJournal Voucher Detail`.`parent` = `tabJournal Voucher`.`name`
|
||||
ORDER BY `tabJournal Voucher`.`name`
|
||||
Reference in New Issue
Block a user