Files
Fuchs_Intranet/Fuchs/js/intranet/modules/fis.req_txt_de.js
T
Stefan 49e3ed2673 Add unit tests for Fuchs_DataService and related components
- Introduced comprehensive unit tests for the Fuchs_DataService library, covering DATEV header formatting, CSV/XML generation, and FdsMfrClient construction.
- Implemented tests for FdsMfr.UpdateNeed parsing and FdsShared utility helpers, ensuring correct functionality and stability.
- Added tests for FdsConfig and FdsMfrClient to validate configuration resolution and client construction.

Document decisions on backend-authoritative invoice and reminder handling

- Created ADR 0008 to clarify that all invoice types and reminder stages are backend-authoritative during drafting and previewing.
- Established that all calculations and settings must be processed server-side, ensuring consistency between online editor and PDF outputs.

Define irreversible mutations for set-price modes in invoices

- Documented ADR 0009 to specify that the "Set mit Preis" and "Nur Set mit Preis" operations are irreversible mutations affecting service request blocks.
- Clarified that these operations are not display toggles but actual data changes, ensuring clear expectations for invoice handling.

Transition MFR ERP sync to in-process execution within the web app

- Created ADR 0010 to outline the migration of Fuchs_DataService from a standalone service to an in-process library within the Fuchs web application.
- Updated configuration and logging management to be handled by the host application, streamlining the sync process.

Add publish profile and periodic hosted service for job scheduling

- Introduced a publish profile for deployment to a specified folder.
- Implemented PeriodicHostedService to manage multiple independent jobs, including the MFR ERP sync, with configurable execution intervals.

Add dotnet-tools.json for EF Core CLI tools

- Included dotnet-tools.json to manage the version of dotnet-ef for Entity Framework Core migrations and commands.
2026-07-16 13:34:23 +02:00

109 lines
7.1 KiB
JavaScript

let $rct = {
mdl: 'Aufträge',
or: 'offene Aufträge',
orr: 'offene Aufträge (4 W)',
rn: 'Auftragsnummer',
iov: { all: 'Auftragsübersicht (alle)', '': 'Auftragsübersicht' },
wk: 'Woche',
nd: 'Keine Daten gefunden.',
h: 'Uhr',
rq1: 'Auftragsdaten werden von MFR abgerufen.\nDer Vorgang kann bis zu 90Sek dauern.',
rq2: 'Auftragsdaten werden geladen',
rq1f: 'Die Auftragsdaten von MFR konnten nicht oder nicht schnell genug abgerufen werde.\nMöchten Sie mit den bestehenden Daten trotzdem weitermachen?',
note1: 'Im Bruttobetrag sind {0} Lohnkosten enthalten (netto {1}). Die darin enthaltene Umsatzsteuer beträgt {2}.',
note2: 'Bitte beachten Sie, nach §14 Abs. 1 Umsatzsteuergesetz ist diese Rechnung ein Zahlungsbeleg oder eine andere beweiskräftige Unterlage für 2 Jahre nach Ablauf des Kalenderjahres der Ausstellung dieser Rechnung aufzubewahren, soweit nicht aufgrund anderer gesetzlicher Regelungen andere ggf.längere Aufbewahrungsfristen gelten.',
note3: 'Privathaushalten erstattet das Finanzamt bis zu {0} des Arbeitslohns mit der nächsten Steuererklärung.',
note4: 'Für bereits erbrachte Arbeiten, Dienstleistungen, Materiallieferungen und getätigte Bestellvorgänge zum oben genannten Bauvorhaben, die sich aus dem mit Ihnen geschlossenen Vertrag ergeben, stellen wir Ihnen vertragsgemäß unsere Akontozahlung in Rechnung. ' +
'Eine Endabrechnung erhalten Sie als Schlussrechnung nach Abschluss des gesamten Bauvorhabens. Das Ausführungsdatum entnehmen Sie bitte dem Schlusstext dieser Rechnung. Wir danken Ihnen herzlich für das entgegengebrachte Vertrauen und bitten Sie um kurzfristigen Ausgleich der Akontorechnung.',
note13b: 'Gem. §13b Umsatzsteuergesetz unterliegen Sie der Steuerschuldnerschaft des Leistungsempfängers zur Umsatzsteuer aus dieser Rechnung mit einem Steuersatz von 19%.',
crI: 'Rechnung erstellen',
crII: 'Abschlagsrechnung erstellen',
dII: 'Für eine Abschlagsrechnung darf nur ein Auftrag gewählt werden.',
dnS: 'Für eine Rechnung muss mindestens ein Auftrag gewählt werden.',
inv: 'Rechnung',
invs: 'Rechnungen',
req: 'Auftrag',
provP: 'Leistungszeitraum',
provD: 'Leistungsdatum',
cP: 'Position ändern',
iRb: 'Zeile darunter einfügen',
dR: 'Zeile löschen',
sV: 'USt festlegen',
cD: 'Löschen?',
mR: 'Zeile verschieben',
svcPart: 'Service-Anteil',
vat: 'Umsatzsteuer',
combP: 'Positionen zusammenfassen',
toSetP: 'Auf Setpreis umstellen (Positionen ohne Preis)',
toSetPc: 'Der Set-Preis wird auf die Summe seiner Positionen gesetzt und die Positionen selbst verlieren ihren Preis. Das ist nicht rückgängig zu machen (der Betrag kann danach nur noch manuell geändert werden). Fortfahren?',
toSetMc: 'Jeder Leistungsauftrag wird zu einer Set-Position mit der Summe als Preis zusammengefasst. Das ist nicht rückgängig zu machen (die Set-Preise können danach nur noch manuell geändert werden). Fortfahren?',
iSum: 'Zwischensumme',
dtRel: 'Freigegeben am: ',
dtCr: 'Erstellt am: ',
rqV: 'USt des Auftrags?',
cthd: 'wirklich aus-/einblenden ?',
cst: { style: 'currency', currency: 'EUR' },
sts: {
IsWorkDone: 'Arbeiten erledigt'
, Closed: 'Auftrag geschlossen'
, SubcontractorPendingConfirmation: 'Warten auf Bestätigung (Unterauftrag)'
, Scheduled: 'Geplant'
, OfferIsRejected: 'Angebot abgelehnt'
, OfferIsSend: 'Offen (Angebot versandt)'
, CollaborationWaitingConfirmation: 'Warten auf Bestätigung (Zusammenarbeit)'
, Released: 'Freigegeben'
, OfferIsConfirmed: 'Bestätigt'
, InProgress: 'In Bearbeitung'
, ReadyForScheduling: 'Zur Planung'
, Created: 'Erstellt'
, Rejected: 'Abgebrochen'
, Invoiced: 'Rechnung gestellt'
, '-': '-'
}, invHR: ['Pos.', 'Menge', 'Artikelbezeichnung', 'VK', 'Summe']
, frm: {
invoiceaddress: 'Adresse'
, loc: 'Leistungsort / Lieferadresse'
, invoiceemail: 'Email'
}
}, $rcol = {
req: new fields_definition('Auftrag', 'Aufträge', [
{
name: 'tags', label: '', type: 'string', dfnc: function (i, x) {
if ((i || '') !== '') {
$(this).aC('tags');
i.split(',').forEach((j) => {
if (j !== '') {
$(this).append($$.sc('tag ' + j.replace(' ', '_').replace('\/', '_').toLowerCase(), j));
}
})
}
}
},
{ name: 'DateOfCreation', label: 'Datum', type: 'date', title: function (x) { $(this).attr('title', $rct.dtCr + fdt(x.DateOfCreation).ne('-') + ' \n' + $rct.dtRel + fdt(x.DateReleased).ne('-')); } },
{ name: 'CustomerName', label: 'Kunde (Firma)', type: 'string' },
{ name: 'Name', label: 'Auftragsname', type: 'string' },
{ name: 'ExternalId', label: 'Auftragsnummer', type: 'string' },
{ name: 'ParentExtenalId', label: 'PAuftrag', type: 'string' },
{ name: 'InvoiceId', label: 'RNummer', type: 'string', dfnc: function (i, x) { $(this).rwText(i, ' ').find('span').each(function () { $(this).aC('cla').click({ id: $(this).text() }, $inv.jdbn); }) } },
{ name: 'State', label: 'Status', type: 'string' },
{ name: 'WorkDoneAt', label: 'Erledigt am', type: 'date' },
{ name: 'Description', label: 'Beschreibung', type: 'html' }
]),
itm: new fields_definition('Auftragsposition', 'Auftragspositionen', [
{ name: 'NameOrNumber', label: 'Bezeichnung', type: 'string' },
{ name: 'Type', label: 'Typ', type: 'select', required: true, value: 'Text', url: [{ value: 'Text', label: 'Text' }, { value: 'Equipment', label: 'Ausrüstung' }, { value: 'Material', label: 'Material' }, { value: 'Service', label: 'Arbeitsleistung' }], change: function (x) { $req.quantChange.call(this, x); } },
{ name: 'quantityhours', label: 'Anzahl / Menge', type: 'number', precision: '0.01', value: 1, change: function (x) { $inv.quantChange.call(this, x); } },
{ name: 'UnitString', label: 'Einheit', type: 'select', url: ['LFDM', 'Stck', 'Std.', 'QM', 'AW', 'Pauschal'], change: function (x) { $inv.quantChange.call(this, x); } },
{ name: 'net', label: 'EinzelPreis netto', type: 'number', precision: '0.01', value: 0, change: function (x) { $inv.quantChange.call(this, x); }},
{ name: 'net_val', label: 'GesamtPreis netto', type: 'number', precision: '0.01', value: 0 },
{ name: 'vat_val', label: 'GesamtPreis USt', type: 'number', precision: '0.01', value: 0 },
{ name: 'svcnet_val', label: 'Arbeitslohn netto', type: 'number', precision: '0.01', value: 0 },
{ name: 'svcvat_val', label: 'Arbeitslohn USt', type: 'number', precision: '0.01', value: 0 },
{ name: 'net_pos', label: 'Netto', type: 'string' },
{ name: 'bo_pos', label: 'Brutto', type: 'string' },
{ name: 'vat', label: 'USt', type: 'string', value: '19,0%', change: function (x) { $inv.quantChange.call(this, x); } },
{ name: 'Note', label: 'Details', type: 'html', tinymce: true }
])
};