17 |
$ownDocumentId => "" |
$ownDocumentId => "" |
18 |
$alienDocumentId => "" |
$alienDocumentId => "" |
19 |
$storehouseEntityId => "" |
$storehouseEntityId => "" |
20 |
$operation => "-" |
$stockAddTrigger => "stockAddTrigger" |
21 |
$stockTrigger => "stockTrigger" |
$stockSubstractTrigger => "stockSubstractTrigger" |
22 |
</neb:Vars> |
</neb:Vars> |
23 |
<neb:Block>if ($ownDocumentId ne ""){</neb:Block> |
<neb:Block>if ($ownDocumentId ne ""){</neb:Block> |
24 |
<datasource database="papo" name="ownItemToUpdDataSource" |
<datasource database="papo" name="ownItemToUpdDataSource" |
25 |
table="own_item, own_product_item, _price_data "> |
table="own_item, own_product_item, _price_data "> |
26 |
<condition> |
<condition> |
27 |
<and> |
<and> |
|
<!-- <eq> --> |
|
|
<!-- <cfield name="product_store.id"/> --> |
|
|
<!-- <cfield name="_product_store_data._table"/> --> |
|
|
<!-- </eq> --> |
|
28 |
<eq> |
<eq> |
29 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"/> |
30 |
<cfield name="own_product_item.own_item"/> |
<cfield name="own_product_item.own_item"/> |
33 |
<cfield name="_price_data.id"/> |
<cfield name="_price_data.id"/> |
34 |
<cfield name="own_product_item.price"/> |
<cfield name="own_product_item.price"/> |
35 |
</eq> |
</eq> |
36 |
<!-- <eq> --> |
</and> |
|
<!-- <cfield name="_price_data.product"/> --> |
|
|
<!-- <cfield name="_product_store_data.product"/> --> |
|
|
<!-- </eq> --> |
|
|
</and> |
|
37 |
</condition> |
</condition> |
38 |
</datasource> |
</datasource> |
39 |
<neb:Block>}</neb:Block> |
<neb:Block>}</neb:Block> |
40 |
|
|
41 |
|
<neb:Block>if ($alienDocumentId ne ""){</neb:Block> |
42 |
|
<datasource database="papo" name="alienItemDataSourceToUpd" --> |
43 |
|
<!-- table="alien_item, alien_product_item, _product_data, _product_store_data"> --> |
44 |
|
<!-- <condition> --> |
45 |
|
<!-- <and> --> |
46 |
|
<!-- <eq> --> |
47 |
|
<!-- <cfield name="alien_item.id"/> --> |
48 |
|
<!-- <cfield name="alien_product_item.alien_item"/> --> |
49 |
|
<!-- </eq> --> |
50 |
|
<!-- <eq> --> |
51 |
|
<!-- <cfield name="alien_product_item.product"/> --> |
52 |
|
<!-- <cfield name="_product_data.id"/> --> |
53 |
|
<!-- </eq> --> |
54 |
|
<!-- <eq> --> |
55 |
|
<!-- <cfield name="_product_data._table"/> --> |
56 |
|
<!-- <cfield name="_product_store_data.product"/> --> |
57 |
|
<!-- </eq> --> |
58 |
|
<!-- <null> --> |
59 |
|
<!-- <cfield name="_product_store_data._end_t"/> --> |
60 |
|
<!-- </null> --> |
61 |
|
<!-- </and> --> |
62 |
|
<!-- </condition> --> |
63 |
|
<!-- </datasource> --> |
64 |
|
|
65 |
|
<neb:Block>}</neb:Block> |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
<!-- origen de datos que sirve para modificar el stock --> |
<!-- origen de datos que sirve para modificar el stock --> |
70 |
|
|
71 |
<datasource database="papo" name="productStoreDataSource" |
<datasource database="papo" name="productStoreDataSource" |