Считать НДС по дате покупки за налоговый квартал

This commit is contained in:
2026-05-25 23:24:34 +03:00
parent af4b01d954
commit 0eb583f7dc
3 changed files with 49 additions and 2 deletions
@@ -3023,8 +3023,14 @@ class AddressQueryService {
(filters.warnings.includes("period_from_from_followup_context") ||
filters.warnings.includes("period_to_from_followup_context")) &&
isFullCalendarMonthWindow(filters.extracted_filters.period_from, filters.extracted_filters.period_to);
const vatTaxPeriodFromPurchaseBridgeMonth = intent.intent === "vat_liability_confirmed_for_tax_period" &&
(filters.warnings.includes("period_from_purchase_date_bridge_followup_context") ||
filters.warnings.includes("period_to_purchase_date_bridge_followup_context")) &&
isFullCalendarMonthWindow(filters.extracted_filters.period_from, filters.extracted_filters.period_to);
if (intent.intent === "vat_liability_confirmed_for_tax_period" &&
(filters.warnings.includes("period_derived_from_month_phrase") || vatTaxPeriodFromCarriedMonth)) {
(filters.warnings.includes("period_derived_from_month_phrase") ||
vatTaxPeriodFromCarriedMonth ||
vatTaxPeriodFromPurchaseBridgeMonth)) {
const taxQuarterWindow = deriveTaxQuarterWindowForDate(filters.extracted_filters.period_to);
if (taxQuarterWindow) {
filters.extracted_filters = {