Update queries.py
Browse files- queries.py +24 -24
queries.py
CHANGED
@@ -311,30 +311,30 @@ queries = {
|
|
311 |
|
312 |
|
313 |
# Query 18
|
314 |
-
'18. PPD seller amount validation': '''
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
''',
|
338 |
|
339 |
|
340 |
# Query 19
|
|
|
311 |
|
312 |
|
313 |
# Query 18
|
314 |
+
# '18. PPD seller amount validation': '''
|
315 |
+
# select
|
316 |
+
# *
|
317 |
+
# from
|
318 |
+
# (SELECT
|
319 |
+
# *
|
320 |
+
# FROM
|
321 |
+
# `fynd-db.Outstanding.09_Payable_File`
|
322 |
+
# where
|
323 |
+
# expected_payout_date <= current_date()
|
324 |
+
# and order_type = "PPD"
|
325 |
+
# and lower(collection_partner) = "seller") as A
|
326 |
+
# left join
|
327 |
+
# (select
|
328 |
+
# bag_id,
|
329 |
+
# txn_id,
|
330 |
+
# collected_amount
|
331 |
+
# from
|
332 |
+
# `fynd-db.finance_recon_tool_asia.05_partner_collection`) as B
|
333 |
+
# on
|
334 |
+
# A.bag_id = B.bag_id
|
335 |
+
# where
|
336 |
+
# B.bag_id is not null
|
337 |
+
# ''',
|
338 |
|
339 |
|
340 |
# Query 19
|