mirror of
https://github.com/itsdave-de/msp.git
synced 2026-09-28 04:02:42 -03:00
feat(msp): ADN-Supplier-Import-Profile als Fixture + hooks.py Export
Checkt ein vollständiges Profil „ADN Monthly CSV v1" als Fixture ein und erweitert die fixtures-Konfiguration in hooks.py, damit der Record bei Bench-Install/-Update idempotent angelegt wird. Damit ist der ADN-Import nach Installation der MSP-App sofort einsatzbereit, ohne dass das Profil manuell konfiguriert werden muss. Die Defaults entsprechen der bisherigen adnconnect-Konfiguration (itsdave GmbH, MwSt. 19 %, Standard-AGBs, Titelpräfix „Abrechnung Microsoft Abo ").
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"default_company": "itsdave GmbH",
|
||||||
|
"default_cost_center": null,
|
||||||
|
"default_output_mode": "Sales Invoice",
|
||||||
|
"default_payment_terms_template": null,
|
||||||
|
"default_taxes_and_charges": "MwSt. 19%",
|
||||||
|
"default_tc_name": "itsdave Standard AGBs",
|
||||||
|
"default_warehouse": "SST - IG",
|
||||||
|
"docstatus": 0,
|
||||||
|
"doctype": "Supplier Import Profile",
|
||||||
|
"enabled": 1,
|
||||||
|
"fallback_customer": null,
|
||||||
|
"file_type": "CSV",
|
||||||
|
"intro_text_credit_note": null,
|
||||||
|
"intro_text_invoice": null,
|
||||||
|
"list_price_discount_pct": 0.0,
|
||||||
|
"modified": "2026-04-14 11:47:29.503782",
|
||||||
|
"name": "ADN Monthly CSV v1",
|
||||||
|
"parser_key": "adn_monthly_csv_v1",
|
||||||
|
"profile_name": "ADN Monthly CSV v1",
|
||||||
|
"supplier": "SUPP-00887",
|
||||||
|
"title_prefix": "Abrechnung Microsoft Abo ",
|
||||||
|
"title_prefix_credit_note": "Gutschrift Microsoft Abo ",
|
||||||
|
"vendor": "Microsoft"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -164,4 +164,5 @@ override_doctype_class = {
|
|||||||
fixtures = [
|
fixtures = [
|
||||||
{"doctype": "Print Format", "filters": {"name": "Standard IT Landscape Documentation"}},
|
{"doctype": "Print Format", "filters": {"name": "Standard IT Landscape Documentation"}},
|
||||||
{"doctype": "Custom Field", "filters": {"module": "MSP"}},
|
{"doctype": "Custom Field", "filters": {"module": "MSP"}},
|
||||||
|
{"doctype": "Supplier Import Profile", "filters": {"profile_name": ["in", ["ADN Monthly CSV v1"]]}},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user