I haven’t managed to find it either and I would find it very useful too.
The only similar thing I managed to find (which is only screen display is:
Click Third Party
Click Customer Tab
Click All Invoices
The address should looks something like this:
/dolibarr/compta/facture.php?socid=6
… not much useful
The best thing you can do is to write a detailed analysis of your needs, then maybe ask one of the numerous companies working around dolibarr to develop the functionality.
That’s the best way to see your needs fulfilled and integrated into the software strategy.
Otherwise, wait for a nice developer to take care freely of your needs, or another customer to finance its development.
Someone said “free software is free once it have been paid” or something like that.
When you use a software like dolibarr, you have it for free but other companies have already financed its evolutions, so if you do need some improvements, feel free to finance them
I have finally created a Customer statements by generating the values of all the data from the selected invoices and generating it in to one pdf instead of just merging all the pdfs
It took a long and lenghty process but finally achieved it. Will soon post the code
I installed an addon called mylist from dollistore but it’s Menu text was patastools so I changed it to reports from here:
Home->Setup–>Menu–>Menu Editor
This is the xml code I used for the customer statement list in myList:
Omit warehouse as that is a custom field in the table that I created
[code]
<?xml version='1.0' encoding='ISO-8859-1'?>
Invoice Status
Invoice Status
accountancy
false
0
<model_pdf>-1</model_pdf>
from custstat c
ORDER BY datec desc
Date Created
datec
Date_Created
Date
1
left
1
0
0
1
1
100
0
Invoice Date
Inv_Date
Date
2
left
1
0
0
1
1
100
0
Invoice No.
Inv_No
Text
3
Facture:/compta/facture/class/facture.class.php:facture:facnumber
left
1
1
1
100
Customer
Customer_Name
Text
4
left
1
0
0
1
1
100
0
Customer Ref
Customer_Ref
Text
5
left
1
0
0
1
1
100
0
Invoice Amount
Inv_Amount
Number
6
left
1
0
0
1
1
100
0
Paid Amount
Paid_Amount
Number
7
left
1
0
0
1
1
100
0
Balance
Balance
Number
8
left
1
0
0
1
1
100
0
Payment Status
Payment_Status
Text
9
left
1
0
0
1
1
100
0
By
user
Text
10
left
1
0
0
1
1
100
0
Warehouse
warehouse
Warehouse
Text
11
left
1
1
1
15
[/code]
I first created this View called custat in the mysql database:
SELECT DISTINCT
f.facnumber AS Inv_No,
f.datef AS Inv_Date,
f.datec,
UCASE(s.nom) AS Customer_Name,
f.ref_client as Customer_Ref,
f.total_ttc AS Inv_Amount,
p.datep AS Payment_date,
p.ref AS Payment_Ref,
sum(coalesce(pf.amount, " ")) AS Paid_Amount,
f.total_ttc - sum(coalesce(pf.amount, " ")) AS Balance,
CASE
/* WHEN f.paye = 1 AND p.datep IS NOT NULL and cp.id = 4 then 'Paid by Cash'
WHEN f.paye = 1 AND p.datep IS NOT NULL and cp.id = 2 then 'Paid by Bank Transfer'
WHEN f.paye = 1 AND p.datep IS NOT NULL and cp.id = 3 then 'Paid by Credit Card'
WHEN f.paye = 1 AND p.datep IS NOT NULL and cp.id = 7 then 'Paid by Check'
WHEN f.paye = 0 AND p.datep IS NOT NULL and cp.id = 4 then 'Partial Payment by Cash'
WHEN f.paye = 0 AND p.datep IS NOT NULL and cp.id = 2 then 'Partial Payment by Bank Transfer'
WHEN f.paye = 0 AND p.datep IS NOT NULL and cp.id = 3 then 'Partial Payment by Credit Card'
WHEN f.paye = 0 AND p.datep IS NOT NULL and cp.id = 7 then 'Partial Payment by Check' */
WHEN f.paye = 1 AND p.datep IS NOT NULL and p.ref is not null then 'Paid'
WHEN f.paye = 1 AND p.datep IS NULL and f.total_ttc = 0 then 'Free of Cost'
WHEN f.paye = 0 AND p.datep IS NULL THEN 'Not paid'
WHEN f.paye = 0 AND p.datep IS NOT NULL THEN 'Partial Payment'
END AS 'Payment_Status',
CASE
WHEN cp.id = 4 THEN COALESCE(CONCAT(cp.libelle,' ', p.num_paiement), "-")
WHEN p.num_paiement = '' AND cp.id <> 4 THEN COALESCE(CONCAT(cp.libelle,' ', p.num_paiement), "-")
ELSE
COALESCE(CONCAT(cp.libelle,' ', 'No.', p.num_paiement), "-")
END AS 'Payment_No',
uc.login as user,
extra.warehouse as warehouse
FROM
llx_societe AS s
LEFT JOIN llx_c_country AS c ON s.fk_pays = c.rowid,
llx_facture AS f
LEFT JOIN llx_projet AS pj ON f.fk_projet = pj.rowid
LEFT JOIN llx_user AS uc ON f.fk_user_author = uc.rowid
LEFT JOIN llx_user AS uv ON f.fk_user_valid = uv.rowid
LEFT JOIN llx_facture_extrafields AS extra ON f.rowid = extra.fk_object
LEFT JOIN llx_paiement_facture AS pf ON pf.fk_facture = f.rowid
LEFT JOIN llx_paiement AS p ON pf.fk_paiement = p.rowid
LEFT JOIN llx_c_paiement AS pt ON pt.id = p.fk_paiement
LEFT JOIN llx_c_paiement AS cp ON cp.id = p.fk_paiement
LEFT JOIN llx_bank AS b ON b.rowid = p.fk_bank
LEFT JOIN llx_bank_account AS ba ON ba.rowid = b.fk_account
WHERE
f.fk_soc = s.rowid AND f.entity IN(1) AND f.facnumber NOT LIKE '%PROV%' and f.facnumber not like '%CN%'
GROUP BY f.facnumber
ORDER BY
s.nom,
f.datef DESC
Q. where did you created or inserted this table view?
Q. Can this list be exported to PDF or ODT template? as export csv is scrambled
Q. Any idea how to get totals at the end of page?