<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="STOR" 
Name="INVENTORY_ELEMENTS_REMAINS" 
Description="Остатки элементов инвентаризации" 
PrimaryKey="InventoryElementsRemainsID" 
DNAttributes="{InventoryElements/DisplayName}" 
DisplayName="{0}">
  <Fields>
    <Attribute Name="InventoryElementsRemainsID" Type="guid" Description="Идентификатор" />
    <Parent Name="InventoryElements" Type="STOR.INVENTORY_ELEMENTS" Description="Элемент инвентаризации" Required="1" />
    <Attribute Name="Amount" Type="float" DefaultFormat="{0:0.#####}" Description="Количество(ед.покупки)" NumericPrecision="20" NumericScale="6" Required="1" />
    <Parent Name="Remains" Type="STOR.REMAINS" Description="Остатки на складе" />
    <Parent Name="SupplierContractAbr" Type="STOR.SUPPLIER_CONTRACT_ABR" Description="Аббревиатура договора" CharacterMaximumLength="20" />
    <Parent Name="SupplierContract" Type="STOR.SUPPLIER_CONTRACT" Description="Договор от поставщика" />
    <Attribute Name="SpecifiedQuantity" Type="float" DefaultFormat="{0:0.#####}" Description="Указанное количество" NumericPrecision="20" NumericScale="6" Required="1" />
    <Parent Name="SpecifiedPackageType" Type="PHARM.PACKAGE_TYPE" Description="Вид упаковки" />
  </Fields>
  <DbMapping>
    <Table name="T_INVENTORY_ELEMENTS_REMAINS">
      <Map Name="InventoryElementsRemainsID" Column="InventoryElementsRemainsID" />
      <Map Name="InventoryElements" Column="InventoryElements" />
      <Map Name="Amount" Column="Amount" />
      <Map Name="Remains" Column="Remains" />
      <Map Name="SupplierContractAbr" Column="SupplierContractAbr" />
      <Map Name="SupplierContract" Column="SupplierContract" />
      <Map Name="SpecifiedQuantity" Column="SpecifiedQuantity" />
      <Map Name="SpecifiedPackageType" Column="SpecifiedPackageType" />
    </Table>
  </DbMapping>
</Entity>