A
A
Anton2017-08-23 20:01:20
1C
Anton, 2017-08-23 20:01:20

Total number of goods remaining for dependent characteristics?

Good afternoon.
Is it possible somehow for a product offer with various variations to make the total number of the remaining goods?
For example, I unload the nomenclature of a t-shirt, the t-shirt has two colors - 1) blue, 2) green
Let the blue cost - 100r, Green - 150r
But, as it turned out to be very disgusting, although this is logical - each variation (offer) of this product has its own remainder fields, i.e., let's say, there are 6 blue and 3 green left.
Question: Is it possible to make the remainder of these two sentences common, as if they were not essentially different goods, something like, if we have an original product in gray, and at the request of the client we will paint it blue or green, but the total number of this product is 10, and no matter which one you buy, there will be 9 of them in the end.
How can this be implemented using the example of such a structure?

<Предложения>
      <Предложение>
        <Ид>dee6e178-55bc-11d9-848a-00112f43529a#3df1947d-7886-11df-b33a-0011955cba6b</Ид>
        <Штрихкод>2000000013091</Штрихкод>
        <Наименование>Женские модельные туфли</Наименование>
        <ХарактеристикиТовара>
          <ХарактеристикаТовара>
            <Наименование>Тип цены</Наименование>
            <Значение>Розничная</Значение>
          </ХарактеристикаТовара>
        </ХарактеристикиТовара>
        <Цены>
          <Цена>
            <Представление>7 000 RUB за пар</Представление>
            <ИдТипаЦены>ec19169a-c400-11e3-853d-00248cae1f0f</ИдТипаЦены>
            <ЦенаЗаЕдиницу>7000.00</ЦенаЗаЕдиницу>
            <Валюта>RUB</Валюта>
            <Единица>пар</Единица>
            <Коэффициент>1</Коэффициент>
          </Цена>
        </Цены>
      </Предложение>
      <Предложение>
        <Ид>dee6e178-55bc-11d9-848a-00112f43529a#3df1947e-7886-11df-b33a-0011955cba6b</Ид>
        <Штрихкод>2000000013138</Штрихкод>
        <Наименование>Женские модельные туфли</Наименование>
        <ХарактеристикиТовара>
          <ХарактеристикаТовара>
            <Наименование>Тип цены</Наименование>
            <Значение>Оптовая</Значение>
          </ХарактеристикаТовара>
        </ХарактеристикиТовара>
        <Цены>
          <Цена>
            <Представление>3 000 RUB за пар</Представление>
            <ИдТипаЦены>9f591aa6-8ea2-11e3-b0fa-00248cae1f0f</ИдТипаЦены>
            <ЦенаЗаЕдиницу>3000.00</ЦенаЗаЕдиницу>
            <Валюта>RUB</Валюта>
            <Единица>пар</Единица>
            <Коэффициент>1</Коэффициент>
          </Цена>
        </Цены>
      </Предложение>
    </Предложения>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2017-08-24
@Eridani

Question: Is it possible to make the remainder of these two sentences common, as if they were not essentially different goods, something like, if we have an original product in gray, and at the request of the client we will paint it blue or green, but the total number of this product is 10, and no matter which one you buy, there will be 9 of them in the end.

Yes, you can, code 1c is written that will generate the necessary data in a file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question