Просмотр исходного кода

backrefy i refy do raportu do poz faktur

a.binder 8 лет назад
Родитель
Сommit
3cf566f60f

+ 2 - 2
SE/schema/ant-object/default_db.BILLS_FVAT_POS/BILLS_FVAT_POS/BILLS_FVAT_POS.xsd

@@ -61,12 +61,12 @@
          <xs:element ref="default_db__x3A__SERVICES:SERVICES">
             <xs:annotation>
                <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                      <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_SERVICES" system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                   Dodatkowa relacja ustawiona jako backref
                 </xs:documentation>
             </xs:annotation>
          </xs:element>

+ 20 - 1
SE/schema/ant-object/default_db.SERVICES/SERVICES/SERVICES.xsd

@@ -17,7 +17,8 @@
    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
    vc:minVersion="1.1"
    xmlns:default_db__x3A__BILLING_NUMBERS_TYPE="https://biuro.biall-net.pl/wfs/default_db/table/BILLING_NUMBERS_TYPE.xsd"
-   xmlns:default_db__x3A__DEALS_TABLE="https://biuro.biall-net.pl/wfs/default_db/table/DEALS_TABLE.xsd">
+   xmlns:default_db__x3A__DEALS_TABLE="https://biuro.biall-net.pl/wfs/default_db/table/DEALS_TABLE.xsd"
+   xmlns:default_db__x3A__BILLS_FVAT_POS="https://biuro.biall-net.pl/wfs/default_db/table/BILLS_FVAT_POS.xsd">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
       schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
@@ -32,6 +33,12 @@
       schemaLocation="../../default_db.BILLING_NUMBERS_TYPE/BILLING_NUMBERS_TYPE/BILLING_NUMBERS_TYPE.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/DEALS_TABLE.xsd"
       schemaLocation="../../default_db.DEALS_TABLE/DEALS_TABLE/DEALS_TABLE.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BILLS_FVAT_POS.xsd"
+      schemaLocation="../../default_db.BILLS_FVAT_POS/BILLS_FVAT_POS/BILLS_FVAT_POS.xsd">
+      <xs:annotation>
+         <xs:documentation>Do wyliczenia raportu w zasadzie wystarcza nam pozycje faktur sprzedanych uslug</xs:documentation>
+      </xs:annotation>
+   </xs:import>
    <xs:simpleType name="A_STATUS_Type" id="A__SERVICES___d5e84557-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -166,6 +173,18 @@
             id="A__SERVICES___d5e84640-1_S_ADDRESS_"/>
          <xs:element name="OLD_ID_SERVICES" type="xs:integer"
             id="A__SERVICES___d5e84641-1_OLD_ID_SER"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__BILLS_FVAT_POS:BILLS_FVAT_POS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache > <!-- to jest dodatkowa relacja, podstawowa powinna byc od umow  -->
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__BILLS_FVAT_POS:BILLS_FVAT_POS/ID_SERVICES"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Do raportu wystarcza pozycje faktur. 
+Ta relacja jest podstawowa, relacja od POZYCJI do SERVICES ustawiono jako backref</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="SERVICES" type="default_db__x3A__SERVICES:SERVICES"