Entwickler-Dokumentation

Hinweis: Das Plugin wurde erst kürzlich veröffentlicht. Diese Dokumentation befindet sich im Aufbau und wird fortlaufend ergänzt. Aufgrund häufiger Nachfragen habe ich die Liste mit Hooks/Filter aber bereits jetzt veröffentlicht.

Allgemeiner Aufbau

Todo

Veränderung von Buchungen mittels Filter

Abfrage von Kontonummern

apply_filters( 'wcdtvfe_revenue_account_data', $tax_rate_data, $order, $tax_rate_id );
ACHTUNG: Das hier ist ein Objekt, in dem revenue_account_number, ggfs. Bu-Schlüssel, Backup-Konto gesetzt sein müssen

apply_filters( 'wcdtvfe_debtor_account_number', $debtor_account, $order );

apply_filters( 'wcdtvfe_payment_gateway_account_number', $payment_account, $order );

Erstellung von Buchungssätzen

apply_filters( 'wcdtvfe_create_receivables_record', $accounting_record_data, $order_id, $tax_rate_id );

apply_filters( 'wcdtvfe_create_receivables_record_manual_tax', $accounting_record_data, $order_id, $tax_rate_id );

wcdtvfe_create_payment_record: $accounting_record_data, $order_id

Einfügen der Buchungssätze in die Datenbank

apply_filters( 'wcdtvfe_create_raw_accounting_record_before_preprocessing', $record_data, $order_id, $type );

apply_filters( 'wcdtvfe_create_raw_accounting_record_after_preprocessing', $record_data, $order_id, $type );

Erstellung der eigentlichen CSV-Datei

apply_filters( 'wcdtvfe_create_export_file_before_preprocessing', $accounting_record );

apply_filters( 'wcdtvfe_create_export_file_after_preprocessing', $accounting_record );

Abruf von Belegdateien

Todo

Dokumentation Datenbank-Spalten und $accounting_record_data-Array

Bezeichnung gem. DATEV-FormatbeschreibungArray/DB-Spalten-SchlüsselHinweise/Beschreibung
/'actual_date'Datum von "010: Belegdatum" im Format Y-m-d. Wird als DB-Typ "year" abgespeichert.
Notwendig, da das Belegdatum alleine nur das Format "TTMM" nutzt. Dadurch geht die Information über das Jahr verloren.
Umsatz'001_revenue'
Soll-/Haben-Kennzeichen'002_soll_haben'
WKZ Umsatz'003_revenue_currency'
Kurs'004_exchange_rate'
Basisumsatz'005_base_revenue'
WKZ Basisumsatz'006_base_revenue_currency'
Konto'007_debit'
...'008_credit'
'009_tax_code'
'010_transaction_date'
'011_note1'
'012_note2'
'013_cashback'
'014_posting_text'
'015_post_lock'
'016_various_address_number'
'017_business_partner_bank'
'018_circumstance'
'019_interest_lock'
'020_receipt_link'
'021_receipt_info_type_1'
'022_receipt_info_content_1'
'023_receipt_info_type_2'
'024_receipt_info_content_2'
'025_receipt_info_type_3'
'026_receipt_info_content_3'
'027_receipt_info_type_4'
'028_receipt_info_content_4'
'029_receipt_info_type_5'
'030_receipt_info_content_5'
'031_receipt_info_type_6'
'032_receipt_info_content_6'
'033_receipt_info_type_7'
'034_receipt_info_content_7'
'035_receipt_info_type_8'
'036_receipt_info_content_8'
'037_cost_centre_1'
'038_cost_centre_2'
'039_cost_centre_reference'
'040_vat_no_destination'
'041_eu_tax_destination'
'042_alternating_taxation'
'043_p13b_record'
'044_p13b_value'
'045_bu_49_main_function_type'
'046_bu_49_main_function_number'
'047_bu_49_function_addition'
'048_additional_information_type_1'
'049_additional_information_content_1'
'050_additional_information_type_2'
'051_additional_information_content_2'
'050_additional_information_type_2'
'051_additional_information_content_2'
'052_additional_information_type_3'
'053_additional_information_content_3'
'054_additional_information_type_4'
'055_additional_information_content_4'
'056_additional_information_type_5'
'057_additional_information_content_5'
'058_additional_information_type_6'
'059_additional_information_content_6'
'060_additional_information_type_7'
'061_additional_information_content_7'
'062_additional_information_type_8'
'063_additional_information_content_8'
'064_additional_information_type_9'
'065_additional_information_content_9'
'066_additional_information_type_10'
'067_additional_information_content_10'
'068_additional_information_type_11'
'069_additional_information_content_11'
'070_additional_information_type_12'
'071_additional_information_content_12'
'072_additional_information_type_13'
'073_additional_information_content_13'
'074_additional_information_type_14'
'075_additional_information_content_14'
'076_additional_information_type_15'
'077_additional_information_content_15'
'078_additional_information_type_16'
'079_additional_information_content_16'
'080_additional_information_type_17'
'081_additional_information_content_17'
'082_additional_information_type_18'
'083_additional_information_content_18'
'084_additional_information_type_19'
'085_additional_information_content_19'
'086_additional_information_type_20'
'087_additional_information_content_20'
'088_piece'
'089_weight'
'090_payment_method'
'091_claim_type'
'092_assessment_year'
'093_assigned_due_date'
'094_skonto_type'
'095_job_number'
'096_booking_type'
'097_tax_key_deposits'
'098_eu_member_state_deposits'
'099_p13b_record_deposits'
'100_eu_tax_deposits'
'101_receivables_account_deposit'
'102_origin_tag'
'103_empty_field'
'104_kost_date'
'105_sepa_mandate_reference'
'106_skonto_lock'
'107_partner_name'
'108_participant_number'
'109_id_number'
'110_signee_number'
'111_post_lock_until'
'112_designation_special_balance_circumstance'
'113_designator_special_balance_booking'
'114_fixation'
'115_delivery_date'
'116_date_assignment_tax_period'
'117_due_date'
'118_general_reverse'
'120_country'
'121_settlement_reference'
'122_bvv_position'
'123_vat_no_origin'
'124_eu_tax_origin'

Sie haben Fragen oder möchten ein Angebot anfordern?

Jetzt Kontakt aufnehmen
crosslist