Calhoun266 / simpleinvoices

Automatically exported from code.google.com/p/simpleinvoices
GNU General Public License v3.0
0 stars 0 forks source link

SAFT implementation in Portugal. #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

In Portugal, starting 2008-01-01, a new law (321 A/2007) demands that all
invoicing and accounting software provide a simple way to export the
information in the database for the IRS personal. Yes, we love this guys too.

This may affect other European country's because this is a resolution from
OCDE.

Since I'm commited in using this software, I'm going to implement this
feature (against my will :().

Do you have any suggestions?
Do you want this feature "on the side" (just for my personal use), or do
you think this could serve other users?

Thanks for your time

Original issue reported on code.google.com by rui.gouv...@gmail.com on 30 Dec 2007 at 4:42

GoogleCodeExporter commented 9 years ago
Hey Rui

Tebas from the forum has started work on a remote framework for Simple Invoices

basically an api that exports stuff to xml

search the forums and reply to his posts - i think hes in europe somewhere so
probably has to do something like this to

Cheers

Justin

Original comment by justinke...@gmail.com on 30 Dec 2007 at 11:24

GoogleCodeExporter commented 9 years ago
Hello again,

As I've said I have implemented the OCDE resolution named SAFT applied to the
Portuguese version (SAFT-PT). This feature is mandatory now so I had to do it. 
I made
this on top of the simple invoices as a hack and is very tailored to my needs, 
but if
this code is useful to somebody else, just right me a message. I'll be happy to
release the code with a GPLv3 license.

Original comment by rui.gouv...@gmail.com on 8 Mar 2008 at 6:29

GoogleCodeExporter commented 9 years ago
Hey Rui,

if you could attach the files to this issue it would be great

i can then look at includign this as an add-on/extension to Simple Invoices

Cheers

Justin

Original comment by justinke...@gmail.com on 11 Mar 2008 at 6:28

GoogleCodeExporter commented 9 years ago
Hi,

Sorry for the delay. I wanted to apply the proper license (GPLv3) and add some 
comments.

Original comment by rui.gouv...@gmail.com on 22 Apr 2008 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Rui,

im getting the following error

XML Parsing Error: no element found
Location: 
http://localhost/simpleinvoices/branches/nextrelease/saft-pt.php?biller=4
Line Number 17, Column 1:
^

is there any special things that need to be set for this script to work?

Cheers

Justin

Original comment by linux...@gmail.com on 22 Apr 2008 at 10:15

GoogleCodeExporter commented 9 years ago
also just as a reference for anyone else
- http://www.assoft.pt/saft-pt/default.asp
- 
http://www.assoft.pt/newsletter/2006/dezembro/01/download/estrutura_dados_saft-p
t.zip

Original comment by linux...@gmail.com on 22 Apr 2008 at 10:16

GoogleCodeExporter commented 9 years ago
I don't think so.
However I've just tested it with the version "20071231 stable".

Give me a few days. I'll look in to it.

Original comment by rui.gouv...@gmail.com on 23 Apr 2008 at 11:15

GoogleCodeExporter commented 9 years ago
Hi,

I've coded that script on top of the 20071231 stable version. The error you 
refer was
from the version in the trunk (200801 unstable).

To make the script work again I had to make the following changes:

1. comment this code in the file config/config.php, lines 102:109.

//TODO remove this before release
//dev stuff
/*
$config_inc_style       = "true";
$config_inc_old_js      = "true";
if ($smarty) {
        $smarty->assign('config_inc_style', $config_inc_style);
        $smarty->assign('config_inc_old_js', $config_inc_old_js);
}
*/

2. add the 'return' keyword in the file include/sql_queries.php, line 28.

function mysqlQuery($sqlQuery) {
  return dbQuery($sqlQuery);
}

without the 'return' I suspect the function didn't return anything.

I hope this helps.

Rui Gouveia

Original comment by rui.gouv...@gmail.com on 3 May 2008 at 2:14

GoogleCodeExporter commented 9 years ago
Hello Justin , 

Nobody explain where we have to palce that file

where do i put the files saft-pt.php

Witch configs i should do , in each folders or files ???

Original comment by guto.oni...@gmail.com on 3 Apr 2009 at 11:28

GoogleCodeExporter commented 9 years ago
Hi,

as of the 1st of January 2010 a new SAFT-PT version is obligatory 1.01_01.
http://www.saftpt.com/
Is there any support for this? 

Thanks a lot
Andreas

Original comment by andr...@claan.com on 19 Jan 2010 at 4:34

GoogleCodeExporter commented 9 years ago
thanks andreas

there is currently no support for 1.01_01 in Simple Invoices :(

cheers

justin

Original comment by justinke...@gmail.com on 21 Jan 2010 at 2:28

GoogleCodeExporter commented 9 years ago
Hi.

I was also looking for an invoicing app that would support SAFT-PT when I just 
found this forum.

So, I understand that right now SimpleInvoices does not support SAFT-PT.
My question is, will it eventually add SAFT-PT support?

Thank you!
Pedro

Original comment by pedro%fa...@gtempaccount.com on 10 Feb 2010 at 4:04

GoogleCodeExporter commented 9 years ago
hey pedro

saft-pt is a planned feature - just hasn't happened yet - but will happen

cheers

justin

Original comment by justinke...@gmail.com on 11 Feb 2010 at 4:28

GoogleCodeExporter commented 9 years ago
Hi,

We have recently started to look into this as we have customers using our EPOS 
application in Portugal.  Is there a definitive list of what changes we need to 
make to our application in order to make it SAFT compliant and obtain 
certification?

Many thanks
Mike

Original comment by michael....@googlemail.com on 17 Feb 2011 at 9:22

GoogleCodeExporter commented 9 years ago
Hi Mike.

I'm trying to find some info that it's not in Portuguese.
So for I couldn't find anything.

The only official info is in Portuguese.
I don't know if you want to take a look on it, but just in case here goes the 
link:
http://www.saftpt.com/docs/portaria%201192_2009.pdf

At least the fields names are in english, so you might get a basic notion what 
what they are asking.

As soon as I find anything else, I'll let you know.

And thank you for trying to make this work here in Portugal.

Take care
Pedro

Original comment by pedro%fa...@gtempaccount.com on 18 Feb 2011 at 11:08

GoogleCodeExporter commented 9 years ago
I've started to work on the 2011 version of saft-pt 1.01-01 to simpleinvoices.

Original comment by j...@jbsantos.com on 10 Oct 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Great to hear that.

Thank you!

Original comment by fardi...@gmail.com on 10 Oct 2011 at 11:13

GoogleCodeExporter commented 9 years ago
Hi,

I've closed down them company, so the need for simpleinvoices is no more. But, 
I still read the community threads.

In another topic, the Portuguese authorities do not make this easy for FOOS 
projects. Nowadays, all the invoice and accounting software products have to 
authorized individually (I imagine you pay for this privilege).

I'm just informing you guys, in case you want to invest your efforts in other 
features, not related to Portugal. :(

If are any Portuguese members reading this, do you confirm what I'm saying?

Thanks for your time.
Rui Gouveia

PS: List of certified software (Portuguese):
http://www.portaldasfinancas.gov.pt/pt/consultaProgCertificadosM24.action

Original comment by rui.gouv...@gmail.com on 10 Oct 2011 at 11:36

GoogleCodeExporter commented 9 years ago
I just realized. My English is getting worst over time.
My apologies. I hope the message could be understood.

Rui Gouveia

Original comment by rui.gouv...@gmail.com on 10 Oct 2011 at 11:38