@vindentech/api-client 3.0.0-next.0 → 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 {
|
|
@@ -6464,12 +6469,12 @@ export interface WarehouseOrderProductDto {
|
|
|
6464
6469
|
/** The line's warehouse_order_product_status value. */
|
|
6465
6470
|
status: string;
|
|
6466
6471
|
/**
|
|
6467
|
-
* Referenced product's own name (public.product.name). Null when the product has no name: an item checked in at the customer has none until the customer names it. On GET /v1/warehouse-orders/:id it is also null when the product is not visible in the caller's RLS scope (e.g. a warehouse operator viewing an inbound line for a catalogue product with no goods yet); the command responses that return this detail read the product as tenant-wide staff, so it is never null for that reason there. A client labels the line by this name, else the category's name in the reader's language (`categoryId`, GET /v1/categories), else `placeholderName`, and treats a blank value as absent.
|
|
6472
|
+
* Referenced product's own name (public.product.name). Null when the product has no name: an item checked in at the customer, or received at the warehouse as a new product, has none until the customer names it. On GET /v1/warehouse-orders/:id it is also null when the product is not visible in the caller's RLS scope (e.g. a warehouse operator viewing an inbound line for a catalogue product with no goods yet); the command responses that return this detail read the product as tenant-wide staff, so it is never null for that reason there. A client labels the line by this name, else the category's name in the reader's language (`categoryId`, GET /v1/categories), else `placeholderName`, and treats a blank value as absent.
|
|
6468
6473
|
* @nullable
|
|
6469
6474
|
*/
|
|
6470
6475
|
productName: string | null;
|
|
6471
6476
|
/**
|
|
6472
|
-
* The text the referenced product was checked in with (public.product.placeholder_name): its label when it has neither a name nor a category. Same visibility caveat as productName.
|
|
6477
|
+
* The text the referenced product was checked in or received with (public.product.placeholder_name): its label when it has neither a name nor a category. Same visibility caveat as productName.
|
|
6473
6478
|
* @nullable
|
|
6474
6479
|
*/
|
|
6475
6480
|
placeholderName: string | null;
|
|
@@ -7100,7 +7105,7 @@ export interface ReceiveNewProductCommandDto {
|
|
|
7100
7105
|
/** The inbound warehouse order to receive against. */
|
|
7101
7106
|
warehouseOrderId: string;
|
|
7102
7107
|
/**
|
|
7103
|
-
*
|
|
7108
|
+
* The staff's text for the goods, stored as the product's placeholderName. The product is created unnamed: until the customer names it, they see its category, or this text when it has no category.
|
|
7104
7109
|
* @maxLength 255
|
|
7105
7110
|
*/
|
|
7106
7111
|
placeholderName: string;
|