Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function local_by_date() #3815

Closed
calidadesystems opened this issue Oct 28, 2015 · 4 comments
Closed

Call to undefined function local_by_date() #3815

calidadesystems opened this issue Oct 28, 2015 · 4 comments
Assignees
Labels
Bug This is a bug (something does not work as expected) Priority - Medium Bug or Expected functionality. If bug, a feature may be blocked but a workaround is found easily.

Comments

@calidadesystems
Copy link

This error appears when I go to Financiera tab ( a coins stack) and go to Pagos especiales (Special payments) IRPF (Spain tax) and select Report by tax (last option ).
I attach a capture for clarify where this happens.

dolibar_error

In Php-fpm log appears this message

[28-Oct-2015 11:52:55 Europe/Madrid] PHP Fatal error: Call to undefined function local_by_date() in htdocs/compta/localtax/quadri_detail.php on line 213

In file htdocs/compta/localtax/quadri_detail.php at line 213 and 215 appears a call to function local_by_date()

// Load arrays of datas
$x_coll= local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell', $local);
//$x_coll = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell');
$x_paye = local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'buy', $local);

I have searched in git log for references to these function but I haven't found nothing

I suppose that these function should be implemented at file htdocs/core/lib/tax.lib.php
and should be similar to vat_by_date implementation.

I can try to create this function with some help copying vat_by_date and make some modifications.
it's the right way?

Thanks

@eldy
Copy link
Member

eldy commented Nov 2, 2015

@simnandez Have you an idea where this function is coming from ?

@eldy eldy added the Bug This is a bug (something does not work as expected) label Nov 2, 2015
@rdoursenaud
Copy link
Contributor

@simnandez FYI, introduced in 747b6a9

@rdoursenaud rdoursenaud added Priority - Medium Bug or Expected functionality. If bug, a feature may be blocked but a workaround is found easily. version develop labels Nov 4, 2015
@marcosgdf
Copy link
Contributor

@simnandez Could you please review this?

simnandez pushed a commit that referenced this issue Apr 15, 2016
FIX #3815 Call to undefined function local_by_date(). branch 3.7
simnandez pushed a commit that referenced this issue Apr 15, 2016
FIX #3815 Call to undefined function local_by_date(). branch 3.8
simnandez pushed a commit that referenced this issue Apr 15, 2016
simnandez pushed a commit that referenced this issue Apr 15, 2016
@simnandez
Copy link
Member

Fixed (better late than never), also with bad day correction included 😓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Priority - Medium Bug or Expected functionality. If bug, a feature may be blocked but a workaround is found easily.
Projects
None yet
Development

No branches or pull requests

5 participants