Revision cff055a4
Von Jan Büren vor 12 Monaten hinzugefügt
| SL/DATEV.pm | ||
|---|---|---|
| 
       left join files on files.object_id=trans_id
 
   | 
||
| 
       where $fromto
 
   | 
||
| 
       and object_id is null
 
   | 
||
| 
       and trans_id not in (select id from gl)
 
   | 
||
| 
       LIMIT 1|;
 
   | 
||
| 
     | 
||
| 
       my ($booking_has_no_document)  = selectrow_query($::form, SL::DB->client->dbh, $query);
 
   | 
||
| ... | ... | |
| 
     | 
||
| 
     =item check_all_bookings_have_documents
 
   | 
||
| 
     | 
||
| 
     Returns 1 if all transactions for this period have a document entry in files.
 
   | 
||
| 
     Therefore all transactions may be exported (type is not checked and DATEV
 
   | 
||
| 
     only accepts PDF).
 
   | 
||
| 
     Returns 1 if all ar and ap transactions for this period have a document entry in files.
 
   | 
||
| 
     Therefore all ar and ap transactions may be exported.
 
   | 
||
| 
     Note: DATEV accepts only PDF and for some gl bookings a document makes no sense
 
   | 
||
| 
     | 
||
| 
     | 
||
| 
     =back
 
   | 
||
Auch abrufbar als: Unified diff
check_all_bookings_have_documents: Prüfung zu strikt für GL
GL Buchungen können manchmal nur durchlaufende Posten oder
Geldtransfer sein, die Buchungen brauchen nicht zusätzlich mit
einem Beleg dokumentiert werden. POD korrigiert