@vindentech/api-client 3.0.0-next.1 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3086,6 +3086,11 @@ export interface QuoteLineDto {
|
|
|
3086
3086
|
* @nullable
|
|
3087
3087
|
*/
|
|
3088
3088
|
campaignDiscountExVatMinor: number | null;
|
|
3089
|
+
/**
|
|
3090
|
+
* How much the automatic campaigns took off this line, INC-VAT, integer minor units, on the same basis as `campaigns[].discountIncVatMinor`: summed over the lines, it equals the sum of that over the campaigns. Already subtracted from `lineTotalIncVatMinor`. Where no binding discount also reduces the line, `lineTotalIncVatMinor` plus this is the price before the campaign: exactly, on a price that includes VAT (14,95 € off 29,90 €) and on a line billed on an invoice line of its own. On a price that excludes VAT it is what the campaigns took off the net plus this line's part of what that did to the VAT of the invoice line it is billed on. Quote lines billed as one invoice line (the same article, VAT rate and RUT flag) share its VAT in proportion to their totals, and a campaign that reduces it has that VAT rounded again; the cent that can move is counted here on the lines the campaign reduced. Each of those lines can then be a cent off its own price before the campaign, while the invoice line's quote lines together come to exactly theirs. Where a campaign is smaller than that VAT's rounding, this can be zero or below. Null when no campaign reduces this line, even when such a cent moves its total. It can be set where `campaignDiscountExVatMinor` is null: a cent off a price that includes VAT can leave its net part unchanged.
|
|
3091
|
+
* @nullable
|
|
3092
|
+
*/
|
|
3093
|
+
campaignDiscountIncVatMinor: number | null;
|
|
3089
3094
|
/** VAT rate as a percentage, per the platform-wide NUMERIC(6,4) convention (25 = 25%) */
|
|
3090
3095
|
vatRate: number;
|
|
3091
3096
|
/** Whether this line qualifies for the RUT labour deduction */
|
|
@@ -3169,7 +3174,7 @@ export interface QuoteCampaignDto {
|
|
|
3169
3174
|
status: QuoteCampaignDtoStatus;
|
|
3170
3175
|
/** What this campaign took off, ex-VAT, integer minor units — its share of `lines[].campaignDiscountExVatMinor`, already out of `totals`. */
|
|
3171
3176
|
discountExVatMinor: number;
|
|
3172
|
-
/** The same reduction inc-VAT, minor units — the saving to show a consumer: the difference it makes to the taxed total, each invoice line taxed as the invoice taxes it. A line nothing reduces keeps its rows' own VAT, each rounded (a storage month's nights), and a reduced one is taxed on its net, so a reduction smaller than that rounding can show a few cents less than its ex-VAT figure, or below zero. */
|
|
3177
|
+
/** The same reduction inc-VAT, minor units — the saving to show a consumer: the difference it makes to the taxed total, each invoice line taxed as the invoice taxes it. A line nothing reduces keeps its rows' own VAT, each rounded (a storage month's nights), and a reduced one is taxed on its net, so a reduction smaller than that rounding can show a few cents less than its ex-VAT figure, or below zero. Summed over the campaigns, it equals the sum of `lines[].campaignDiscountIncVatMinor`. */
|
|
3173
3178
|
discountIncVatMinor: number;
|
|
3174
3179
|
}
|
|
3175
3180
|
export interface QuoteBindingDto {
|