Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1794 มุมมอง

Create a report that collects the names of inactive customers in the last 3 months and depends on payments and invoices

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi 

You can use the following query to fetch the data in order to create a custom report

date = date.today() + relativedelta(months=-3)

"""select p.name from account_move as m inner join res_partner as p on m.partner_id = p.id where p.active=False and p.write_date::date >= '%s' """ %(date)

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 24
2154
0
ส.ค. 24
1912
0
ม.ค. 24
2361
1
พ.ย. 23
2125
0
มิ.ย. 23
2499