| Author |
Message |
|
shamzcc
|
Post subject: discount when Customer Receipts Posted: Mon Jan 24, 2011 2:51 pm |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
hi dave when i do a Customer Receipts and put a discount in then save. Then on the statement report the discount doesn't show and shows the customer balance as outstanding by the discount amount . am i doing something wrong plz advice
|
|
 |
|
 |
|
dave
|
Post subject: Re: discount when Customer Receipts Posted: Tue Jan 25, 2011 6:43 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3499 Location: Colorado, US
|
|
I have a problem with the statement report, it's on the bug list. I'll post a new version to the download store as soon as I can get to it.
Dave
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: discount when Customer Receipts Posted: Sat Jan 29, 2011 2:00 pm |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
hi dave any new on when statements will be fixed ..
|
|
 |
|
 |
|
dave
|
Post subject: Re: discount when Customer Receipts Posted: Fri Mar 04, 2011 5:23 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3499 Location: Colorado, US
|
|
Try this. The .php file goes in /modules/phreebooks/classes/ and the .xml file in /modules/phreebooks/language/en_us/reports/
Delete your current version and import the new one. Let me know if you have any problems.
Dave
|
|
 |
|
 |
|
richardl
|
Post subject: Re: discount when Customer Receipts Posted: Wed Mar 16, 2011 7:11 am |
|
Joined: Fri Oct 15, 2010 8:31 am Posts: 29
|
Hi Dave, a really useful report. Have imported it into R3, made some layout tweaks and is fine except for one thing I cannot work out how to change. The due date of each invoice in the report is calculated from the Terms set up for that customer, not the Terms defined in the invoice. So if you override the customers terms for a particular invoice this does not show in the report. I tried changing Code: due_date in the data table to Code: payment_due_date but now nothing appears in the due date column. I expect this is due to the database set up, but this is where I am stuck as I do not fully understand this part of the form builder. Any pointers would be gratefully appreciated.
|
|
 |
|
 |
|
china
|
Post subject: Re: discount when Customer Receipts Posted: Wed Mar 16, 2011 9:43 am |
|
Joined: Fri Oct 29, 2010 1:23 am Posts: 31
|
Hi Dave I did update the two files .php & xml and now I get this error in the statement Trace information for debug purposes. Phreedom release 3.0, generated 2011-03-16 23:40:12. GET Vars = Array ( [module] => phreeform [page] => popup_gen [rID] => 52 [todo] => open ) POST Vars = Array ( [todo] => exp_pdf [title] => Statement [delivery_method] => I [from_name] => Otto Willum Nielsen [from_email] => on@ctcash.eu [to_name] => [to_email] => [cc_name] => [cc_email] => [message_subject] => Statement From CTcash Limited [message_body] => Attached is your Statement from CTcash Limited To view the attachment, you must have pdf reader software installed on your computer. [rID] => 52 [datedefault] => a [date_from] => [date_to] => [defcritsel0] => EQUAL [fromvalue0] => 15013 [tovalue0] => [defcritsel1] => EQUAL [fromvalue1] => ) The failing sql was: select from journal_main join contacts on journal_main.bill_acct_id = contacts.id where = '15013' and = '' group by mySQL returned: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from journal_main join contacts on journal_main.bill_acct_id = contacts.id where' at line 1
|
|
 |
|
 |
|
dave
|
Post subject: Re: discount when Customer Receipts Posted: Wed Mar 16, 2011 3:21 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3499 Location: Colorado, US
|
|
Edit the statement and in the criteria tab set the fieldname as follows: Date Fieldname: Post Date Sorting First field: Bill Primary Name Sorting Second Field: Invoice Number Criteria First Field: Customer ID Criteria Second Field: Journal ID
Then on properties tab: Set Printed Flag: Record ID Form Page Break Field: Bill Record ID Download Filename Source - Source Field: Bill Record ID
Save and try again.
Dave
|
|
 |
|
 |
|
richardl
|
Post subject: Re: discount when Customer Receipts Posted: Thu Mar 17, 2011 6:58 pm |
|
Joined: Fri Oct 15, 2010 8:31 am Posts: 29
|
|
Hi Dave,
was that fix for my problem or China's ?
|
|
 |
|
 |
|
dave
|
Post subject: Re: discount when Customer Receipts Posted: Fri Mar 18, 2011 12:58 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3499 Location: Colorado, US
|
|
For china. On the terms, the statement builder class (which is used to generate the data) doesn't calculate a different due date. It would need to be modified to do this. Need to know php coding though.
Dave
|
|
 |
|
 |
|
china
|
Post subject: Re: discount when Customer Receipts Posted: Thu Mar 24, 2011 6:24 am |
|
Joined: Fri Oct 29, 2010 1:23 am Posts: 31
|
Hi Dave sorry it did not work, I did exactly what you wrote. Trace information for debug purposes. Phreedom release 3.0, generated 2011-03-24 20:10:54. GET Vars = Array ( [module] => phreeform [page] => popup_gen [rID] => 52 [todo] => open ) POST Vars = Array ( [todo] => exp_pdf [title] => Statement [delivery_method] => I [from_name] => Otto Willum Nielsen [from_email] => on@ctcash.eu [to_name] => [to_email] => [cc_name] => [cc_email] => [message_subject] => Statement From CTcash Limited [message_body] => Attached is your Statement from CTcash Limited To view the attachment, you must have pdf reader software installed on your computer. [rID] => 52 [datedefault] => c [date_from] => [date_to] => [defcritsel0] => ALL [fromvalue0] => [tovalue0] => [defcritsel1] => EQUAL [fromvalue1] => ) The failing sql was: select id, id from journal_main join contacts on journal_main.bill_acct_id = contacts.id where post_date >= '2011-03-24' and post_date < '2011-03-25' and journal_id = '' group by id mySQL returned: 1052 Column 'id' in field list is ambiguous
|
|
 |
|
 |
|
china
|
Post subject: Re: discount when Customer Receipts Posted: Wed Mar 30, 2011 7:30 am |
|
Joined: Fri Oct 29, 2010 1:23 am Posts: 31
|
|
Hi Dave, any idea when there is a fix for this problem ?
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: discount when Customer Receipts Posted: Wed Apr 20, 2011 12:41 am |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
hi dave same problem like china ..but some observation when when u open report and in date and customer id u leave it the same then nothing happens but when u choose range in any fields i.e date or customer id then u get the error like chinas . but in properties when u edit the statement report i dont see Form Page Break Field: Bill Record ID Download Filename Source - Source Field: Bill Record ID so it doesnt seem to b working
|
|
 |
|
 |
|
dave
|
Post subject: Re: discount when Customer Receipts Posted: Thu Apr 21, 2011 3:14 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3499 Location: Colorado, US
|
|
 |
|
 |
|