1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
2 |
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
3 |
|
<form title="Remito para Clientes" width="107" height="24"> |
4 |
|
|
5 |
|
<datasource name="tmpValuesDataSource" cache="1"></datasource> |
6 |
|
<datasource name="payDataSource" cache="1"></datasource> |
7 |
|
<datasource name="prodSearchDataSource" cache="1"></datasource> |
8 |
|
<datasource name="prodResultDataSource" cache="1"></datasource> |
9 |
|
|
|
<form width="107" height="24" title="Remito para Clientes"> |
|
|
<datasource name="tmpValuesDataSource" cache="1"/> |
|
|
<datasource name="payDataSource" cache="1"/> |
|
|
<datasource name="prodSearchDataSource" cache="1"/> |
|
|
<datasource name="prodResultDataSource" cache="1"/> |
|
10 |
|
|
11 |
|
|
12 |
|
<datasource name="ownOrganizationDataSource" database="papo" table="_entity_data, _own_entity_data, _organization_data, _persona_tax_profile_data, _tax_profile_data"> |
|
<datasource name="ownOrganizationDataSource" database="papo" |
|
|
table="_entity_data, _own_entity_data, _organization_data, _persona_tax_profile_data, _tax_profile_data"> |
|
13 |
<condition> |
<condition> |
14 |
<and> |
<and> |
15 |
<!-- uniones del objeto n-1 --> |
<!-- uniones del objeto n-1 --> |
16 |
<eq> |
<eq> |
17 |
<cfield name="_own_entity_data._table"/> |
<cfield name="_own_entity_data._table"></cfield> |
18 |
<cfield name="_organization_data.own_entity"/> |
<cfield name="_organization_data.own_entity"></cfield> |
19 |
</eq> |
</eq> |
20 |
<eq> |
<eq> |
21 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
22 |
<cfield name="_own_entity_data.entity"/> |
<cfield name="_own_entity_data.entity"></cfield> |
23 |
</eq> |
</eq> |
24 |
<eq> |
<eq> |
25 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
26 |
<cfield name="_persona_tax_profile_data.persona"/> |
<cfield name="_persona_tax_profile_data.persona"></cfield> |
27 |
</eq> |
</eq> |
28 |
<eq> |
<eq> |
29 |
<cfield name="_tax_profile_data._table"/> |
<cfield name="_tax_profile_data._table"></cfield> |
30 |
<cfield name="_persona_tax_profile_data.tax_profile"/> |
<cfield name="_persona_tax_profile_data.tax_profile"></cfield> |
31 |
</eq> |
</eq> |
32 |
<eq> |
<eq> |
33 |
<cfield name="_tax_profile_data.tax"/> |
<cfield name="_tax_profile_data.tax"></cfield> |
34 |
<cconst value="1"/> <!-- IVA --> |
<cconst value="1"></cconst> <!-- IVA --> |
35 |
</eq> |
</eq> |
36 |
<!-- history tables = null n --> |
<!-- history tables = null n --> |
37 |
<null> |
<null> |
38 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"></cfield> |
39 |
</null> |
</null> |
40 |
<null> |
<null> |
41 |
<cfield name="_own_entity_data._end_t"/> |
<cfield name="_own_entity_data._end_t"></cfield> |
42 |
</null> |
</null> |
43 |
<null> |
<null> |
44 |
<cfield name="_organization_data._end_t"/> |
<cfield name="_organization_data._end_t"></cfield> |
45 |
</null> |
</null> |
46 |
<!--busco el 1 --> |
<!--busco el 1 --> |
47 |
<eq> |
<eq> |
48 |
<cfield name="organization.id"/> |
<cfield name="organization.id"></cfield> |
49 |
<cconst value="1"/> |
<cconst value="1"></cconst> |
50 |
</eq> |
</eq> |
51 |
</and> |
</and> |
52 |
</condition> |
</condition> |
54 |
|
|
55 |
<!-- Origen de datos que sirve para seleccionar el cleinte al que se le --> |
<!-- Origen de datos que sirve para seleccionar el cleinte al que se le --> |
56 |
<!-- va a confeccionar el Remito --> |
<!-- va a confeccionar el Remito --> |
57 |
<datasource name="clientDataSource" database="papo" |
<datasource name="clientDataSource" database="papo" table="_entity_data, _alien_entity_data, _persona_data, _client_data, _price_type_data, _persona_tax_profile_data, _tax_profile_data, _tax_data"> |
|
table="_entity_data, _alien_entity_data, _persona_data, _client_data, |
|
|
_price_type_data, _persona_tax_profile_data, _tax_profile_data, _tax_data"> |
|
58 |
<condition> |
<condition> |
59 |
<and> |
<and> |
60 |
<eq> |
<eq> |
61 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
62 |
<cfield name="_alien_entity_data.entity"/> |
<cfield name="_alien_entity_data.entity"></cfield> |
63 |
</eq> |
</eq> |
64 |
<eq> |
<eq> |
65 |
<cfield name="_alien_entity_data._table"/> |
<cfield name="_alien_entity_data._table"></cfield> |
66 |
<cfield name="_persona_data.alien_entity"/> |
<cfield name="_persona_data.alien_entity"></cfield> |
67 |
</eq> |
</eq> |
68 |
<eq> |
<eq> |
69 |
<cfield name="_persona_data._table"/> |
<cfield name="_persona_data._table"></cfield> |
70 |
<cfield name="_client_data.persona"/> |
<cfield name="_client_data.persona"></cfield> |
71 |
</eq> |
</eq> |
72 |
<eq> |
<eq> |
73 |
<cfield name="_price_type_data._table"/> |
<cfield name="_price_type_data._table"></cfield> |
74 |
<cfield name="_client_data.price_type"/> |
<cfield name="_client_data.price_type"></cfield> |
75 |
</eq> |
</eq> |
76 |
<eq> |
<eq> |
77 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
78 |
<cfield name="_persona_tax_profile_data.persona"/> |
<cfield name="_persona_tax_profile_data.persona"></cfield> |
79 |
</eq> |
</eq> |
80 |
<eq> |
<eq> |
81 |
<cfield name="_tax_profile_data._table"/> |
<cfield name="_tax_profile_data._table"></cfield> |
82 |
<cfield name="_persona_tax_profile_data.tax_profile"/> |
<cfield name="_persona_tax_profile_data.tax_profile"></cfield> |
83 |
</eq> |
</eq> |
84 |
<eq> |
<eq> |
85 |
<cfield name="_tax_data._table"/> |
<cfield name="_tax_data._table"></cfield> |
86 |
<cfield name="_tax_profile_data.tax"/> |
<cfield name="_tax_profile_data.tax"></cfield> |
87 |
</eq> |
</eq> |
88 |
<eq> |
<eq> |
89 |
<cfield name="_tax_data._table"/> |
<cfield name="_tax_data._table"></cfield> |
90 |
<cconst value="1"/> |
<cconst value="1"></cconst> |
91 |
</eq> |
</eq> |
92 |
<null> |
<null> |
93 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"></cfield> |
94 |
</null> |
</null> |
95 |
<null> |
<null> |
96 |
<cfield name="_alien_entity_data._end_t"/> |
<cfield name="_alien_entity_data._end_t"></cfield> |
97 |
</null> |
</null> |
98 |
<null> |
<null> |
99 |
<cfield name="_persona_data._end_t"/> |
<cfield name="_persona_data._end_t"></cfield> |
100 |
</null> |
</null> |
101 |
<null> |
<null> |
102 |
<cfield name="_client_data._end_t"/> |
<cfield name="_client_data._end_t"></cfield> |
103 |
</null> |
</null> |
104 |
<null> |
<null> |
105 |
<cfield name="_price_type_data._end_t"/> |
<cfield name="_price_type_data._end_t"></cfield> |
106 |
</null> |
</null> |
107 |
<null> |
<null> |
108 |
<cfield name="_persona_tax_profile_data._end_t"/> |
<cfield name="_persona_tax_profile_data._end_t"></cfield> |
109 |
</null> |
</null> |
110 |
<null> |
<null> |
111 |
<cfield name="_tax_profile_data._end_t"/> |
<cfield name="_tax_profile_data._end_t"></cfield> |
112 |
</null> |
</null> |
113 |
<null> |
<null> |
114 |
<cfield name="_tax_data._end_t"/> |
<cfield name="_tax_data._end_t"></cfield> |
115 |
</null> |
</null> |
116 |
</and> |
</and> |
117 |
</condition> |
</condition> |
118 |
</datasource> |
</datasource> |
119 |
|
|
120 |
<datasource name="clientSearchDataSource" database="papo" |
<datasource name="clientSearchDataSource" database="papo" table="_entity_data, _alien_entity_data, _persona_data, _client_data, entity_type_uid_conf, _entity_uid_data" order_by="_entity_data.name"> |
|
table="_entity_data, _alien_entity_data, _persona_data, _client_data, entity_type_uid_conf, |
|
|
_entity_uid_data" order_by="_entity_data.name"> |
|
121 |
<condition> |
<condition> |
122 |
<and> |
<and> |
123 |
<eq> |
<eq> |
124 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
125 |
<cfield name="_alien_entity_data.entity"/> |
<cfield name="_alien_entity_data.entity"></cfield> |
126 |
</eq> |
</eq> |
127 |
<eq> |
<eq> |
128 |
<cfield name="_alien_entity_data._table"/> |
<cfield name="_alien_entity_data._table"></cfield> |
129 |
<cfield name="_persona_data.alien_entity"/> |
<cfield name="_persona_data.alien_entity"></cfield> |
130 |
</eq> |
</eq> |
131 |
<eq> |
<eq> |
132 |
<cfield name="_persona_data._table"/> |
<cfield name="_persona_data._table"></cfield> |
133 |
<cfield name="_client_data.persona"/> |
<cfield name="_client_data.persona"></cfield> |
134 |
</eq> |
</eq> |
135 |
<eq> |
<eq> |
136 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"></cfield> |
137 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"></cfield> |
138 |
</eq> |
</eq> |
139 |
<eq> |
<eq> |
140 |
<cconst value="7"/> |
<cconst value="7"></cconst> |
141 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"></cfield> |
142 |
</eq> |
</eq> |
143 |
<eq> |
<eq> |
144 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"></cfield> |
145 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"></cfield> |
146 |
</eq> |
</eq> |
147 |
<null> |
<null> |
148 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"></cfield> |
149 |
</null> |
</null> |
150 |
<null> |
<null> |
151 |
<cfield name="_alien_entity_data._end_t"/> |
<cfield name="_alien_entity_data._end_t"></cfield> |
152 |
</null> |
</null> |
153 |
<null> |
<null> |
154 |
<cfield name="_persona_data._end_t"/> |
<cfield name="_persona_data._end_t"></cfield> |
155 |
</null> |
</null> |
156 |
<null> |
<null> |
157 |
<cfield name="_client_data._end_t"/> |
<cfield name="_client_data._end_t"></cfield> |
158 |
</null> |
</null> |
159 |
<null> |
<null> |
160 |
<cfield name="_entity_uid_data._end_t"/> |
<cfield name="_entity_uid_data._end_t"></cfield> |
161 |
</null> |
</null> |
162 |
</and> |
</and> |
163 |
</condition> |
</condition> |
164 |
</datasource> |
</datasource> |
165 |
|
|
166 |
|
|
167 |
<datasource name="priceDataSource" database="papo" table="_price_data" /> |
<datasource name="priceDataSource" database="papo" table="_price_data"></datasource> |
168 |
|
|
169 |
<!-- Origen de datos que contiene el encabezado del remito --> |
<!-- Origen de datos que contiene el encabezado del remito --> |
170 |
|
|
171 |
<datasource database="papo" name="ownDocumentDataSource" table="own_document" |
<datasource name="ownDocumentDataSource" database="papo" table="own_document" order_by="date"></datasource> |
172 |
order_by="date" /> |
<!--nebulized--> |
173 |
|
<!-- Origen de datos que contiene el número del próximo remito --> |
174 |
<!-- Origen de datos que contiene el número del próximo remito --> |
<!-- <datasource name="ownPosDocumentDataSource" database="papo" --> |
175 |
<datasource name="branchDocumentDataSource" database="papo" |
<!-- table="own_pos_document, _own_pos_document_data" historytable="_own_pos_document_data"> --> |
176 |
table="branch_document, _branch_document_data" historytable="_branch_document_data"> |
<!-- <condition> --> |
177 |
<condition> |
<!-- <and> --> |
178 |
<and> |
<!-- <eq> --> |
179 |
<eq> |
<!-- <cfield name="own_pos_document.id"/> --> |
180 |
<cfield name="branch_document.id"/> |
<!-- <cfield name="_own_pos_document_data._table"/> --> |
181 |
<cfield name="_branch_document_data._table"/> |
<!-- </eq> --> |
182 |
</eq> |
<!-- <null> --> |
183 |
<null> |
<!-- <cfield name="_own_pos_document_data._end_t"/> --> |
184 |
<cfield name="_branch_document_data._end_t"/> |
<!-- </null> --> |
185 |
</null> |
<!-- </and> --> |
186 |
</and> |
<!-- </condition> --> |
187 |
</condition> |
<!-- </datasource> --> |
|
</datasource> |
|
188 |
|
|
189 |
<!-- Origen de datos que contiene los items del remito --> |
<!-- Origen de datos que contiene los items del remito --> |
190 |
|
|
191 |
<datasource name="ownItemDataSource" database="papo" detaillink="own_item.own_document" |
<datasource name="ownItemDataSource" detaillink="own_item.own_document" masterlink="id" database="papo" master="ownDocumentDataSource" table="own_item, own_product_item"> |
|
master="ownDocumentDataSource" masterlink="id" |
|
|
table="own_item, own_product_item"> |
|
192 |
<condition> |
<condition> |
193 |
<eq> |
<eq> |
194 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"></cfield> |
195 |
<cfield name="own_product_item.own_item"/> |
<cfield name="own_product_item.own_item"></cfield> |
196 |
</eq> |
</eq> |
197 |
</condition> |
</condition> |
198 |
</datasource> |
</datasource> |
199 |
|
|
200 |
<!-- Origen de datos que sirve para consultar y asi actualizar el stock --> |
<!-- Origen de datos que sirve para consultar y asi actualizar el stock --> |
201 |
|
|
202 |
<datasource database="papo" name="ownItemToUpdDataSource" |
<datasource name="ownItemToUpdDataSource" database="papo" table="own_item, own_product_item, _price_data, _product_store_data"> |
|
table="own_item, own_product_item, _price_data, _product_store_data"> |
|
203 |
<condition> |
<condition> |
204 |
<and> |
<and> |
205 |
<eq> |
<eq> |
206 |
<cfield name="product_store.id"/> |
<cfield name="product_store.id"></cfield> |
207 |
<cfield name="_product_store_data._table"/> |
<cfield name="_product_store_data._table"></cfield> |
208 |
</eq> |
</eq> |
209 |
<eq> |
<eq> |
210 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"></cfield> |
211 |
<cfield name="own_product_item.own_item"/> |
<cfield name="own_product_item.own_item"></cfield> |
212 |
</eq> |
</eq> |
213 |
<eq> |
<eq> |
214 |
<cfield name="_price_data.id"/> |
<cfield name="_price_data.id"></cfield> |
215 |
<cfield name="own_product_item.price"/> |
<cfield name="own_product_item.price"></cfield> |
216 |
</eq> |
</eq> |
217 |
<eq> |
<eq> |
218 |
<cfield name="_price_data.product"/> |
<cfield name="_price_data.product"></cfield> |
219 |
<cfield name="_product_store_data.product"/> |
<cfield name="_product_store_data.product"></cfield> |
220 |
</eq> |
</eq> |
221 |
<null> |
<null> |
222 |
<cfield name="_product_store_data._end_t"/> |
<cfield name="_product_store_data._end_t"></cfield> |
223 |
</null> |
</null> |
224 |
</and> |
</and> |
225 |
</condition> |
</condition> |
232 |
<trigger name="prodCallFormTrigger" type="NAMED"><![CDATA[ |
<trigger name="prodCallFormTrigger" type="NAMED"><![CDATA[ |
233 |
runForm('product.gfd') |
runForm('product.gfd') |
234 |
]]></trigger> |
]]></trigger> |
235 |
|
<!--nebulized--> |
236 |
|
<!-- <trigger name="searchNextDespatchNoteNumber" type="NAMED"><![CDATA[ --> |
237 |
|
<!-- import gnue.common.GConditions as GConditions --> |
238 |
|
|
239 |
<trigger name="searchNextDespatchNoteNumber" type="NAMED"><![CDATA[ |
<!-- condDespatchNoteNumber = GConditions.GCondition() --> |
|
import gnue.common.GConditions as GConditions |
|
240 |
|
|
241 |
condDespatchNoteNumber = GConditions.GCondition() |
<!-- tmpAnd = GConditions.GCand(condDespatchNoteNumber) --> |
242 |
|
<!-- eq = GConditions.GCeq(tmpAnd) --> |
243 |
|
<!-- GConditions.GCField(eq,"_own_pos_document_data.document_type") --> |
244 |
|
<!-- GConditions.GCConst(eq,str(ownDocumentBlock.typeEntry)) --> |
245 |
|
|
246 |
tmpAnd = GConditions.GCand(condDespatchNoteNumber) |
<!-- ownPosDocumentDataSource.createResultSet(condDespatchNoteNumber) --> |
|
eq = GConditions.GCeq(tmpAnd) |
|
|
GConditions.GCField(eq,"_branch_document_data.document_type") |
|
|
GConditions.GCConst(eq,str(ownDocumentBlock.typeEntry)) |
|
|
|
|
|
branchDocumentDataSource.createResultSet(condDespatchNoteNumber) |
|
247 |
|
|
248 |
]]></trigger> |
<!-- ]]></trigger> --> |
249 |
|
<!--/nebulized--> |
250 |
|
|
251 |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
252 |
setStatusText("Procesando ...") |
setStatusText("Procesando ...") |
282 |
# it's _such_ a pitty |
# it's _such_ a pitty |
283 |
# pleasePrint ('serviceDespatchNote', { 'id': str(ownDocumentBlock.idEntry) }) |
# pleasePrint ('serviceDespatchNote', { 'id': str(ownDocumentBlock.idEntry) }) |
284 |
#report='productDespatchNote-%s' % str(ownDocumentBlock.typeEntry) |
#report='productDespatchNote-%s' % str(ownDocumentBlock.typeEntry) |
285 |
#hack.pleasePrint (self, str(ownDocumentBlock.typeEntry), report, [ 'id='+str(ownDocumentBlock.idEntry) ],branchDocumentBlock.documentPrintCommand) |
#hack.pleasePrint (self, str(ownDocumentBlock.typeEntry), report, [ 'id='+str(ownDocumentBlock.idEntry) ],ownPosDocumentBlock.documentPrintCommand) |
286 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
287 |
callTrigger('endWaitingModeTrigger') |
callTrigger('endWaitingModeTrigger') |
288 |
]]></trigger> |
]]></trigger> |
289 |
|
|
290 |
<trigger name="commitTrigger" type="NAMED"> |
<trigger name="commitTrigger" type="NAMED"> |
291 |
|
|
292 |
ownDocumentBlock.numberEntry= str(branchDocumentBlock.documentNumberEntry) |
ownDocumentBlock.numberEntry= str(ownPosDocumentBlock.documentNumberEntry) |
293 |
branchDocumentBlock.documentNumberEntry.atomicModify (lambda x: int(x)+1) |
ownPosDocumentBlock.documentNumberEntry.atomicModify (lambda x: int(x)+1) |
294 |
|
|
295 |
ownDocumentBlock.dateEntry = str(tmpBlock.tmpDateEntry ) |
ownDocumentBlock.dateEntry = str(tmpBlock.tmpDateEntry ) |
296 |
if len(ownDocumentBlock.dateEntry) == 0: |
if len(ownDocumentBlock.dateEntry) == 0: |
384 |
|
|
385 |
|
|
386 |
<page name="Remito para Clientes"> |
<page name="Remito para Clientes"> |
387 |
<box height="9" label="Remito de Productos para Clientes" |
<box name="despatchNoteHeaderBox" label="Remito de Productos para Clientes" x="0" y="0" width="105" height="9"> |
|
name="despatchNoteHeaderBox" width="105" x="0" y="0"> |
|
388 |
|
|
389 |
<!-- Actualiza los datos del cliente --> |
<!-- Actualiza los datos del cliente --> |
390 |
<trigger type="NAMED" name="bringClientDataTrigger"><![CDATA[ |
<trigger name="bringClientDataTrigger" type="NAMED"><![CDATA[ |
391 |
import hack |
import hack |
392 |
|
|
393 |
rs = clientDataSource.createResultSet({'_entity_data.id':str(ownDocumentBlock.clientRecipientBox.clientEntry)}) |
rs = clientDataSource.createResultSet({'_entity_data.id':str(ownDocumentBlock.clientRecipientBox.clientEntry)}) |
408 |
tmpValuesDataSource.priceTypeId = clientResultSet.current.getField("_price_type_data._table") |
tmpValuesDataSource.priceTypeId = clientResultSet.current.getField("_price_type_data._table") |
409 |
]]></trigger> |
]]></trigger> |
410 |
|
|
411 |
<!-- Bloque para la búsqueda de clientes --> |
<!-- Bloque para la búsqueda de clientes --> |
412 |
<block name="clientResultBlock" datasource="clientSearchDataSource"> |
<block name="clientResultBlock" datasource="clientSearchDataSource"> |
413 |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12" height="1"></entry> |
414 |
<!-- <entry name="uidTypeEntry" field="_entity_uid_data.entity_uid_type" hidden="" x="1" y="1" width="12"/> --> |
<!-- <entry name="uidTypeEntry" field="_entity_uid_data.entity_uid_type" hidden="" x="1" y="1" width="12"/> --> |
415 |
<entry name="uidEntry" field="_entity_uid_data.uid" hidden="" x="1" y="1" width="12"/> |
<entry name="uidEntry" field="_entity_uid_data.uid" hidden="" x="1" y="1" width="12" height="1"></entry> |
416 |
<entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
<entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20" height="1"></entry> |
417 |
</block> |
</block> |
418 |
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
419 |
tmpValuesDataSource.priceTypeId = None |
tmpValuesDataSource.priceTypeId = None |
459 |
|
|
460 |
]]></trigger> |
]]></trigger> |
461 |
|
|
462 |
<block datasource="ownDocumentDataSource" name="ownDocumentBlock" restrictInsert=""> |
<block name="ownDocumentBlock" datasource="ownDocumentDataSource" restrictInsert=""> |
463 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="102" height="1"></entry> |
464 |
<entry field="own_document_type" hidden="" name="typeEntry" default="13" x="1" y="1"/> |
<entry name="typeEntry" hidden="" field="own_document_type" default="13" x="1" y="1" width="102" height="1"></entry> |
465 |
<box height="6" label="Datos del Cliente" name="clientRecipientBox" width="103" x="0" y="2"> |
<box name="clientRecipientBox" label="Datos del Cliente" x="0" y="2" width="103" height="6"> |
466 |
|
|
467 |
<label name="clientLbl" text="Cliente" x="1" y="1" /> |
<label name="clientLbl" text="Cliente" x="1" y="1" width="7"></label> |
468 |
|
|
469 |
<entry x="1" y="1" width="30" name="currentClientEntry" hidden="" /> |
<entry name="currentClientEntry" hidden="" x="1" y="1" width="30" height="1"></entry> |
470 |
<entry x="1" y="2" field="recipient" name="clientEntry" width="30" hidden=""/> |
<entry name="clientEntry" hidden="" field="recipient" x="1" y="2" width="30" height="1"></entry> |
471 |
<entry x="1" y="2" name="clientCodeEntry" width="20"> |
<entry name="clientCodeEntry" x="1" y="2" width="20" height="1"> |
472 |
<options> |
<options> |
473 |
<option name="tip" value="Insertar el Código"/> |
<option name="tip" value="Insertar el Código"></option> |
474 |
</options> |
</options> |
475 |
</entry> |
</entry> |
476 |
<entry x="21" y="2" name="clientNameEntry" width="35"> |
<entry name="clientNameEntry" x="21" y="2" width="35" height="1"> |
477 |
<options> |
<options> |
478 |
<option name="tip" value="Insertar el nombre o descripción"/> |
<option name="tip" value="Insertar el nombre o descripción"></option> |
479 |
</options> |
</options> |
480 |
</entry> |
</entry> |
481 |
|
|
482 |
<button name="clientSearchButton" trigger="clientSearchTrigger" label="Buscar" width="7" height="1" x="56" y="2"/> |
<button name="clientSearchButton" label="Buscar" trigger="clientSearchTrigger" x="56" y="2" width="7" height="1"></button> |
483 |
<button name="clientCallFormButton" trigger="clientCallFormTrigger" label="..." width="4" height="1" x="64" y="2"/> |
<button name="clientCallFormButton" label="..." trigger="clientCallFormTrigger" x="64" y="2" width="4" height="1"></button> |
484 |
|
|
485 |
<label name="clientLbl" text="Lista de precios:" x="1" y="4" /> |
<label name="clientLbl" text="Lista de precios:" x="1" y="4" width="17"></label> |
486 |
|
|
487 |
<entry x="19" y="4" field="recipient" name="priceTypeEntry" readonly="" |
<entry name="priceTypeEntry" readonly="" foreign_key="clientDataSource._entity_data.id" foreign_key_description="_price_type_data.name" style="textlookup" field="recipient" x="19" y="4" width="20" height="1"></entry> |
|
width="20" style="textlookup" foreign_key="clientDataSource._entity_data.id" |
|
|
foreign_key_description="_price_type_data.name" /> |
|
488 |
|
|
489 |
</box> |
</box> |
490 |
<entry field="date" name="dateEntry" style="label" hidden="" typecast="date" |
<entry name="dateEntry" hidden="" rows="10" field="date" style="label" typecast="date" x="7" y="7" width="24" height="1"></entry> |
491 |
rows="10" width="24" x="7" y="7"/> |
<entry name="numberEntry" hidden="" field="number" style="label" x="7" y="7" width="24" height="1"></entry> |
|
<entry field="number" name="numberEntry" style="label" hidden="" width="24" x="7" y="7"/> |
|
492 |
|
|
493 |
</block> |
</block> |
494 |
|
|
495 |
<!-- Fecha del Remito --> |
<!-- Fecha del Remito --> |
496 |
<block name="tmpBlock" datasource="tmpValuesDataSource" transparentBlock=""> |
<block name="tmpBlock" transparentBlock="" datasource="tmpValuesDataSource"> |
497 |
<label name="dateLbl" text="Fecha" x="1" y="1" /> |
<label name="dateLbl" text="Fecha" x="1" y="1" width="5"></label> |
498 |
<entry name="tmpDateEntry" typecast="date" |
<label name="dateLabel" text="Número de Remito:" x="32" y="1" width="17"></label> --> |
499 |
width="14" x="7" y="1"/> |
<entry name="tmpDateEntry" typecast="date" x="7" y="1" width="14" height="1"></entry> |
500 |
</block> |
</block> |
501 |
|
|
502 |
<!-- # de remito --> |
<!-- despatchNote.neb::form::page::box::neb:Sub --> |
503 |
<block name="branchDocumentBlock" datasource="branchDocumentDataSource"> |
<!-- POS DOCUMENT COMPONENT --> |
504 |
<label name="dateLabel" text="Número de Remito:" |
|
505 |
x="32" y="1"/> |
<!-- Origen de datos que contiene el numero de la proxima factura --> |
506 |
<entry name="documentNumberEntry" field="_branch_document_data.number" style="label" |
<datasource name="ownPosDocumentDataSource" database="papo" historytable="_own_pos_document_data" table="own_pos_document, _own_pos_document_data"> |
507 |
x="55" y="1" width="15"/> |
<condition> |
508 |
<entry name="documentTypeEntry" field="_branch_document_data.document_type" hidden="" |
<and> |
509 |
x="50" y="1" width="15"/> |
<eq> |
510 |
<entry name="branchEntry" field="_branch_document_data.branch" hidden="" |
<cfield name="own_pos_document.id"></cfield> |
511 |
x="50" y="1" width="15"/> |
<cfield name="_own_pos_document_data._table"></cfield> |
512 |
<entry name="documentPrintCommand" field="_branch_document_data.print_command" hidden="" |
</eq> |
513 |
x="50" y="1" width="15"/> |
<!-- numero para las facturas de servicios --> |
514 |
</block> |
<!-- <eq> --> |
515 |
|
<!-- <cfield name="_own_pos_document_data.document_type"/> --> |
516 |
|
<!-- <cconst value="4"/> --> |
517 |
|
<!-- </eq> --> |
518 |
|
<!-- que este activo --> |
519 |
|
<null> |
520 |
|
<cfield name="_own_pos_document_data._end_t"></cfield> |
521 |
|
</null> |
522 |
|
</and> |
523 |
|
</condition> |
524 |
|
</datasource> |
525 |
|
|
526 |
|
<!--pos--> |
527 |
|
<datasource name="ownPosDataSource" database="papo" table="_own_pos_data,_own_entity_data,_entity_data"> |
528 |
|
<condition> |
529 |
|
<and> |
530 |
|
<eq> |
531 |
|
<cfield name="_own_pos_data.own_entity"></cfield> |
532 |
|
<cfield name="_own_entity_data._table"></cfield> |
533 |
|
</eq> |
534 |
|
<eq> |
535 |
|
<cfield name="_own_entity_data.entity"></cfield> |
536 |
|
<cfield name="_entity_data._table"></cfield> |
537 |
|
</eq> |
538 |
|
<null> |
539 |
|
<cfield name="_own_pos_data._end_t"></cfield> |
540 |
|
</null> |
541 |
|
<null> |
542 |
|
<cfield name="_own_entity_data._end_t"></cfield> |
543 |
|
</null> |
544 |
|
<null> |
545 |
|
<cfield name="_entity_data._end_t"></cfield> |
546 |
|
</null> |
547 |
|
</and> |
548 |
|
</condition> |
549 |
|
</datasource> |
550 |
|
|
551 |
|
<!--pos--> |
552 |
|
<trigger name="searchOwnPosData" type="NAMED"> |
553 |
|
import os |
554 |
|
try: |
555 |
|
pos = os.environ['PAPO_POS'] |
556 |
|
except KeyError: |
557 |
|
pos = 1 |
558 |
|
print pos |
559 |
|
ownPosBlock.initQuery() |
560 |
|
ownPosBlock.ownPosIdEntry = str(pos) |
561 |
|
ownPosBlock.processQuery() |
562 |
|
</trigger> |
563 |
|
<!--/pos--> |
564 |
|
|
565 |
|
<trigger name="searchNextDespatchNoteNumber" type="NAMED"> |
566 |
|
import gnue.common.GConditions as GConditions |
567 |
|
callTrigger('searchOwnPosData') |
568 |
|
condDocumentNumber = GConditions.GCondition() |
569 |
|
tmpAnd = GConditions.GCand(condDocumentNumber) |
570 |
|
eq = GConditions.GCeq(tmpAnd) |
571 |
|
GConditions.GCField(eq,"_own_pos_document_data.document_type") |
572 |
|
GConditions.GCConst(eq,str(ownDocumentBlock.typeEntry)) |
573 |
|
#pos |
574 |
|
eq1 = GConditions.GCeq(tmpAnd) |
575 |
|
GConditions.GCField(eq1,"_own_pos_document_data.own_pos") |
576 |
|
GConditions.GCConst(eq1,str(ownPosBlock.ownPosEntityIdEntry)) |
577 |
|
#/pos |
578 |
|
ownPosDocumentDataSource.createResultSet(condDocumentNumber) |
579 |
|
|
580 |
|
</trigger> |
581 |
|
|
582 |
|
<block name="ownPosBlock" datasource="ownPosDataSource"> |
583 |
|
<entry name="stockByInvoice" hidden="" field="_own_pos_data.stock_by_invoice" x="65" y="1" width="102" height="1"></entry> |
584 |
|
<entry name="ownPosEntityIdEntry" hidden="" field="_entity_data._table" x="75" y="1" width="102" height="1"></entry> |
585 |
|
<entry name="ownPosIdEntry" hidden="" field="_own_pos_data._table" x="85" y="1" width="102" height="1"></entry> |
586 |
|
</block> |
587 |
|
|
588 |
|
<!-- # de factura --> |
589 |
|
<block name="ownPosDocumentBlock " datasource="ownPosDocumentDataSource"> |
590 |
|
|
591 |
|
<entry name="documentNumberEntry" field="_own_pos_document_data.number" style="label" x="55" y="1" width="15" height="1"></entry> |
592 |
|
<entry name="documentTypeEntry" hidden="" field="_own_pos_document_data.document_type" x="50" y="1" width="15" height="1"></entry> |
593 |
|
<entry name="own_posEntry" hidden="" field="_own_pos_document_data.own_pos" x="50" y="1" width="15" height="1"></entry> |
594 |
|
<entry name="documentPrintCommand" hidden="" field="_own_pos_document_data.print_command" x="50" y="1" width="15" height="1"></entry> |
595 |
|
</block> |
596 |
|
<!--/POS DOCUMENT COMPONENT --> |
597 |
|
|
598 |
|
|
599 |
|
|
600 |
|
|
601 |
|
|
602 |
|
<!-- # de remito --> |
603 |
|
<!-- <block name="ownPosDocumentBlock" datasource="ownPosDocumentDataSource"> --> |
604 |
|
<!-- <label name="dateLabel" text="Número de Remito:" --> |
605 |
|
<!-- x="32" y="1"/> --> |
606 |
|
<!-- <entry name="documentNumberEntry" field="_own_pos_document_data.number" style="label" --> |
607 |
|
<!-- x="55" y="1" width="15"/> --> |
608 |
|
<!-- <entry name="documentTypeEntry" field="_own_pos_document_data.document_type" hidden="" --> |
609 |
|
<!-- x="50" y="1" width="15"/> --> |
610 |
|
<!-- <entry name="own_posEntry" field="_own_pos_document_data.own_pos" hidden="" --> |
611 |
|
<!-- x="50" y="1" width="15"/> --> |
612 |
|
<!-- <entry name="documentPrintCommand" field="_own_pos_document_data.print_command" hidden="" --> |
613 |
|
<!-- x="50" y="1" width="15"/> --> |
614 |
|
<!-- </block> --> |
615 |
|
|
616 |
</box> |
</box> |
617 |
|
|
618 |
<!-- ******************************** --> |
<!-- ******************************** --> |
619 |
<!-- Busqueda del producto a insertar --> |
<!-- Busqueda del producto a insertar --> |
620 |
<!-- ******************************** --> |
<!-- ******************************** --> |
621 |
|
|
622 |
<!-- Datasource que sirve para la búsqueda del producto --> |
<!-- Datasource que sirve para la búsqueda del producto --> |
623 |
<datasource database="papo" name="priceTypeDataSource" table="_price_type_data"> |
<datasource name="priceTypeDataSource" database="papo" table="_price_type_data"> |
624 |
<condition> |
<condition> |
625 |
<null> |
<null> |
626 |
<cfield name="_price_type_data._end_t"/> |
<cfield name="_price_type_data._end_t"></cfield> |
627 |
</null> |
</null> |
628 |
</condition> |
</condition> |
629 |
</datasource> |
</datasource> |
630 |
<!-- Bloque que sirve para la búsqueda del producto respetando lista de precios --> |
<!-- Bloque que sirve para la búsqueda del producto respetando lista de precios --> |
631 |
<block name="priceTypeBlock" datasource="priceTypeDataSource" transparentBlock=""> |
<block name="priceTypeBlock" transparentBlock="" datasource="priceTypeDataSource"> |
632 |
<entry name="priceTypeParentId" field="parent" x="1" |
<entry name="priceTypeParentId" hidden="" field="parent" x="1" y="2" width="40" height="1"></entry> |
633 |
y="2" width="40" hidden=""/> |
<entry name="priceTypeId" hidden="" field="_table" x="40" y="2" width="10" height="1"></entry> |
|
<entry name="priceTypeId" field="_table" x="40" y="2" width="10" hidden="" /> |
|
634 |
</block> |
</block> |
635 |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
636 |
<datasource database="papo" name="productResultDataSource" |
<datasource name="productResultDataSource" database="papo" order_by="_product_data.canonical_name, _price_type_data._table desc" table="_product_code_type_data, _product_code_data, _product_data, _product_tax_data, _price_data, _price_type_data, _currency_type_data"> |
|
table="_product_code_type_data, _product_code_data, _product_data, _product_tax_data, _price_data, _price_type_data, |
|
|
_currency_type_data" |
|
|
order_by = "_product_data.canonical_name, _price_type_data._table desc" > |
|
637 |
<condition> |
<condition> |
638 |
<and> |
<and> |
639 |
<null> |
<null> |
640 |
<cfield name="_product_code_type_data._end_t"/> |
<cfield name="_product_code_type_data._end_t"></cfield> |
641 |
</null> |
</null> |
642 |
<null> |
<null> |
643 |
<cfield name="_product_code_data._end_t"/> |
<cfield name="_product_code_data._end_t"></cfield> |
644 |
</null> |
</null> |
645 |
<null> |
<null> |
646 |
<cfield name="_product_data._end_t"/> |
<cfield name="_product_data._end_t"></cfield> |
647 |
</null> |
</null> |
648 |
<null> |
<null> |
649 |
<cfield name="_product_tax_data._end_t"/> |
<cfield name="_product_tax_data._end_t"></cfield> |
650 |
</null> |
</null> |
651 |
<null> |
<null> |
652 |
<cfield name="_price_data._end_t"/> |
<cfield name="_price_data._end_t"></cfield> |
653 |
</null> |
</null> |
654 |
<null> |
<null> |
655 |
<cfield name="_price_type_data._end_t"/> |
<cfield name="_price_type_data._end_t"></cfield> |
656 |
</null> |
</null> |
657 |
<null> |
<null> |
658 |
<cfield name="_currency_type_data._end_t"/> |
<cfield name="_currency_type_data._end_t"></cfield> |
659 |
</null> |
</null> |
660 |
<eq> |
<eq> |
661 |
<cfield name="_product_code_type_data._table"/> |
<cfield name="_product_code_type_data._table"></cfield> |
662 |
<cfield name="_product_code_data.product_code_type"/> |
<cfield name="_product_code_data.product_code_type"></cfield> |
663 |
</eq> |
</eq> |
664 |
<eq> |
<eq> |
665 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"></cfield> |
666 |
<cfield name="_product_code_data.product"/> |
<cfield name="_product_code_data.product"></cfield> |
667 |
</eq> |
</eq> |
668 |
<eq> |
<eq> |
669 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"></cfield> |
670 |
<cfield name="_product_tax_data.product"/> |
<cfield name="_product_tax_data.product"></cfield> |
671 |
</eq> |
</eq> |
672 |
<eq> |
<eq> |
673 |
<cfield name="_product_tax_data.tax"/> |
<cfield name="_product_tax_data.tax"></cfield> |
674 |
<cconst value="1"/> <!-- IVA --> |
<cconst value="1"></cconst> <!-- IVA --> |
675 |
</eq> |
</eq> |
676 |
<eq> |
<eq> |
677 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"></cfield> |
678 |
<cfield name="_price_data.product"/> |
<cfield name="_price_data.product"></cfield> |
679 |
</eq> |
</eq> |
680 |
<eq> |
<eq> |
681 |
<cfield name="_price_type_data._table"/> |
<cfield name="_price_type_data._table"></cfield> |
682 |
<cfield name="_price_data.price_type"/> |
<cfield name="_price_data.price_type"></cfield> |
683 |
</eq> |
</eq> |
684 |
<!--multicurrency--> |
<!--multicurrency--> |
685 |
<eq> |
<eq> |
686 |
<cfield name="_currency_type_data._table"/> |
<cfield name="_currency_type_data._table"></cfield> |
687 |
<cfield name="_price_data.currency_type"/> |
<cfield name="_price_data.currency_type"></cfield> |
688 |
</eq> |
</eq> |
689 |
<!--/multicurrency--> |
<!--/multicurrency--> |
690 |
<not> |
<not> |
691 |
<cfield name="_price_data.excluded"/> <!-- Solo productos no excluidos --> |
<cfield name="_price_data.excluded"></cfield> <!-- Solo productos no excluidos --> |
692 |
</not> |
</not> |
693 |
</and> |
</and> |
694 |
</condition> |
</condition> |
695 |
</datasource> |
</datasource> |
696 |
<!-- Bloque que sirve para almacenar el resultado intermedio de la búsqueda --> |
<!-- Bloque que sirve para almacenar el resultado intermedio de la búsqueda --> |
697 |
<block name="tmpProdResultBlock" datasource="productResultDataSource" transparentBlock=""> |
<block name="tmpProdResultBlock" transparentBlock="" datasource="productResultDataSource"> |
698 |
<entry name="prodNameEntry" field="_product_data.canonical_name" x="1" y="1" width="15" rows="2" hidden=""/> |
<entry name="prodNameEntry" rows="2" hidden="" field="_product_data.canonical_name" x="1" y="1" width="15" height="1"></entry> |
699 |
<entry name="prodIdEntry" field="_product_data._table" x="15" y="1" width="5" rows="2" hidden=""/> |
<entry name="prodIdEntry" rows="2" hidden="" field="_product_data._table" x="15" y="1" width="5" height="1"></entry> |
700 |
<entry name="prodCodeEntry" field="_product_code_data.code" x="20" y="1" width="10" rows="2" hidden=""/> |
<entry name="prodCodeEntry" rows="2" hidden="" field="_product_code_data.code" x="20" y="1" width="10" height="1"></entry> |
701 |
<entry name="prodCodeTypeEntry" field="_product_code_data.product_code_type" x="30" y="1" width="5" rows="2" hidden=""/> |
<entry name="prodCodeTypeEntry" rows="2" hidden="" field="_product_code_data.product_code_type" x="30" y="1" width="5" height="1"></entry> |
702 |
<entry name="prodPriceTypeEntry" field="_price_type_data.name" x="35 " y="1" width="10" rows="2" hidden=""/> |
<entry name="prodPriceTypeEntry" rows="2" hidden="" field="_price_type_data.name" x="35 " y="1" width="10" height="1"></entry> |
703 |
<entry name="prodPriceTypeIdEntry" field="_price_type_data._table" x="45" y="1" width="5" rows="2" hidden=""/> |
<entry name="prodPriceTypeIdEntry" rows="2" hidden="" field="_price_type_data._table" x="45" y="1" width="5" height="1"></entry> |
704 |
<entry name="prodUnitPriceEntry" field="_price_data.unit_price" x="50" y="1" width="20" rows="2" hidden=""/> |
<entry name="prodUnitPriceEntry" rows="2" hidden="" field="_price_data.unit_price" x="50" y="1" width="20" height="1"></entry> |
705 |
<entry name="prodPriceEntry" field="_price_data.id" x="50" y="1" width="20" rows="2" hidden=""/> |
<entry name="prodPriceEntry" rows="2" hidden="" field="_price_data.id" x="50" y="1" width="20" height="1"></entry> |
706 |
<entry name="prodIVATaxEntry" field="_product_tax_data.amount" x="50" y="1" width="20" rows="2" hidden=""/> |
<entry name="prodIVATaxEntry" rows="2" hidden="" field="_product_tax_data.amount" x="50" y="1" width="20" height="1"></entry> |
707 |
<entry name="prodCurrencyRateEntry" field="_currency_type_data.rate" x="50" y="1" width="20" rows="2" hidden=""/> |
<entry name="prodCurrencyRateEntry" rows="2" hidden="" field="_currency_type_data.rate" x="50" y="1" width="20" height="1"></entry> |
708 |
</block> |
</block> |
709 |
|
|
710 |
<trigger name="prodDeleteTrigger" type="NAMED"> |
<trigger name="prodDeleteTrigger" type="NAMED"> |
737 |
tmpProdResultBlock.initQuery() |
tmpProdResultBlock.initQuery() |
738 |
tmpProdResultBlock.prodNameEntry = ("%s" % ownItemBlock.prodNameSEntry)+"%" |
tmpProdResultBlock.prodNameEntry = ("%s" % ownItemBlock.prodNameSEntry)+"%" |
739 |
tmpProdResultBlock.prodCodeEntry = ("%s" % ownItemBlock.prodCodeSEntry)+"%" |
tmpProdResultBlock.prodCodeEntry = ("%s" % ownItemBlock.prodCodeSEntry)+"%" |
740 |
tmpProdResultBlock.prodCodeTypeEntry = "1" # Ver como elegimos el código adecuado |
tmpProdResultBlock.prodCodeTypeEntry = "1" # Ver como elegimos el código adecuado |
741 |
tmpProdResultBlock.processQuery() |
tmpProdResultBlock.processQuery() |
742 |
# cargar la parte visible de modificacion de precios |
# cargar la parte visible de modificacion de precios |
743 |
tmpProdResultBlock.firstRecord() |
tmpProdResultBlock.firstRecord() |
781 |
genericBox("Debe elegir un cliente para poder cargar productos",['Aceptar']) |
genericBox("Debe elegir un cliente para poder cargar productos",['Aceptar']) |
782 |
</trigger> |
</trigger> |
783 |
|
|
784 |
<!-- En este bloque se almacena el reultado final/real de la búsqueda para seleccion el correcto --> |
<!-- En este bloque se almacena el reultado final/real de la búsqueda para seleccion el correcto --> |
785 |
<block name="prodResultBlock" datasource="prodResultDataSource" restrictInsert="" transparentBlock=""> |
<block name="prodResultBlock" transparentBlock="" restrictInsert="" datasource="prodResultDataSource"> |
786 |
<entry name="prodCodeEntry" width="10" x="37" y="10" rows="2" hidden=""/> |
<entry name="prodCodeEntry" rows="2" hidden="" x="37" y="10" width="10" height="1"></entry> |
787 |
<entry name="prodNameEntry" width="22" x="47" y="10" rows="2" hidden=""/> |
<entry name="prodNameEntry" rows="2" hidden="" x="47" y="10" width="22" height="1"></entry> |
788 |
<entry name="prodPriceTypeEntry" x="1 " y="1" width="10" rows="8" hidden=""/> |
<entry name="prodPriceTypeEntry" rows="8" hidden="" x="1 " y="1" width="10" height="1"></entry> |
789 |
<entry name="prodUnitPriceEntry" x="1" y="1" width="10" rows="8" hidden=""/> |
<entry name="prodUnitPriceEntry" rows="8" hidden="" x="1" y="1" width="10" height="1"></entry> |
790 |
<entry name="prodPriceEntry" x="1" y="1" width="20" rows="2" hidden=""/> |
<entry name="prodPriceEntry" rows="2" hidden="" x="1" y="1" width="20" height="1"></entry> |
791 |
<entry name="prodPricePreviousEntry" x="1" y="1" width="10" rows="8" hidden=""/> |
<entry name="prodPricePreviousEntry" rows="8" hidden="" x="1" y="1" width="10" height="1"></entry> |
792 |
<entry name="prodProductIdEntry" x="1" y="1" width="5" rows="8" hidden=""/> |
<entry name="prodProductIdEntry" rows="8" hidden="" x="1" y="1" width="5" height="1"></entry> |
793 |
<entry name="prodPriceListIdEntry" x="1" y="1" width="5" rows="8" hidden=""/> |
<entry name="prodPriceListIdEntry" rows="8" hidden="" x="1" y="1" width="5" height="1"></entry> |
794 |
<entry name="prodIVATaxEntry" x="1" y="1" width="5" rows="8" hidden=""/> |
<entry name="prodIVATaxEntry" rows="8" hidden="" x="1" y="1" width="5" height="1"></entry> |
795 |
<entry name="prodCurrencyRateEntry" x="1" y="1" width="10" rows="8" hidden=""/> |
<entry name="prodCurrencyRateEntry" rows="8" hidden="" x="1" y="1" width="10" height="1"></entry> |
796 |
</block> |
</block> |
797 |
<!-- Insertar el producto seleccionado --> |
<!-- Insertar el producto seleccionado --> |
798 |
<trigger name="prodInsertTrigger" type="NAMED"> |
<trigger name="prodInsertTrigger" type="NAMED"> |
811 |
|
|
812 |
callTrigger('totalCalcTrigger') |
callTrigger('totalCalcTrigger') |
813 |
</trigger> |
</trigger> |
814 |
<!-- ****** Fin búsqueda ************ --> |
<!-- ****** Fin búsqueda ************ --> |
815 |
|
|
816 |
<!-- Productos del remito --> |
<!-- Productos del remito --> |
817 |
<block datasource="ownItemDataSource" name="ownItemBlock"> |
<block name="ownItemBlock" datasource="ownItemDataSource"> |
818 |
<!-- <trigger name="ownItemFocusOut" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> --> |
<!-- <trigger name="ownItemFocusOut" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> --> |
819 |
<label text="Productos del remito" x="1" y="9"/> |
<label text="Productos del remito" x="1" y="9" width="20"></label> |
820 |
<label text="Código" x="1" y="10"/> |
<label text="Código" x="1" y="10" width="6"></label> |
821 |
<entry name="prodCodeSEntry" width="14" x="1" y="11" rows="10"> |
<entry name="prodCodeSEntry" rows="10" x="1" y="11" width="14" height="1"> |
822 |
<options> |
<options> |
823 |
<option name="tip" value="Insertar el código"/> |
<option name="tip" value="Insertar el código"></option> |
824 |
</options> |
</options> |
825 |
</entry> |
</entry> |
826 |
<label text="Nombre" x="15" y="10"/> |
<label text="Nombre" x="15" y="10" width="6"></label> |
827 |
<entry name="prodNameSEntry" width="20" x="15" y="11" rows="10"> |
<entry name="prodNameSEntry" rows="10" x="15" y="11" width="20" height="1"> |
828 |
<options> |
<options> |
829 |
<option name="tip" value="Insertar el nombre o descripción del producto"/> |
<option name="tip" value="Insertar el nombre o descripción del producto"></option> |
830 |
</options> |
</options> |
831 |
</entry> |
</entry> |
832 |
<button name="prodSearchButton" trigger="prodSearchTrigger" label="Buscar" width="7" height="10" x="35" y="11"/> |
<button name="prodSearchButton" label="Buscar" trigger="prodSearchTrigger" x="35" y="11" width="7" height="10"></button> |
833 |
<button name="prodCallFormButton" trigger="prodCallFormTrigger" label=".." width="3" height="10" x="42" y="11"/> |
<button name="prodCallFormButton" label=".." trigger="prodCallFormTrigger" x="42" y="11" width="3" height="10"></button> |
834 |
|
|
835 |
<entry field="own_item.own_document" name="ownDocumentEntry" hidden="" x="1" y="1"/> |
<entry name="ownDocumentEntry" hidden="" field="own_item.own_document" x="1" y="1" width="107" height="1"></entry> |
836 |
|
|
837 |
<label name="qtyLbl" text="Cantidad" x="45" y="10"/> |
<label name="qtyLbl" text="Cantidad" x="45" y="10" width="8"></label> |
838 |
<!-- mdione's bookmark --> |
<!-- mdione's bookmark --> |
839 |
<entry field="own_product_item.qty" name="qtyEntry" rows="10" typecast="number" displaymask="%0.3f" width="11" x="45" y="11"> |
<entry name="qtyEntry" rows="10" typecast="number" displaymask="%0.3f" field="own_product_item.qty" x="45" y="11" width="11" height="1"> |
840 |
<trigger name="qtyEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger name="qtyEntryPreFocusout" src="totalCalcTrigger" type="PRE-FOCUSOUT"></trigger> |
841 |
</entry> |
</entry> |
842 |
|
|
843 |
<label name="priceLbl" text="Precio" x="56" y="10"/> |
<label name="priceLbl" text="Precio" x="56" y="10" width="6"></label> |
844 |
<entry x="56" y="11" name="unitPriceEntry" field="own_product_item.unit_price" width="10" rows="10" typecast="number" displaymask="%0.2f"> |
<entry name="unitPriceEntry" rows="10" typecast="number" displaymask="%0.2f" field="own_product_item.unit_price" x="56" y="11" width="10" height="1"> |
845 |
<trigger name="unitPriceEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger name="unitPriceEntryPreFocusout" src="totalCalcTrigger" type="PRE-FOCUSOUT"></trigger> |
846 |
</entry> |
</entry> |
847 |
<entry x="1" y="14" readonly="" field="own_product_item.price" name="priceEntry" width="10" rows="5" hidden=""/> |
<entry name="priceEntry" rows="5" hidden="" field="own_product_item.price" readonly="" x="1" y="14" width="10" height="1"></entry> |
848 |
<entry x="1" y="14" readonly="" field="own_item_tax.tax" name="taxTypeEntry" width="10" rows="5" default="1" hidden="" typecast="number" displaymask="%0.2f"/> |
<entry name="taxTypeEntry" rows="5" hidden="" displaymask="%0.2f" typecast="number" field="own_item_tax.tax" default="1" readonly="" x="1" y="14" width="10" height="1"></entry> |
849 |
<entry x="1" y="14" readonly="" field="own_item_tax.amount" name="taxAmountEntry" width="10" rows="5" hidden="" typecast="number" displaymask="%0.2f"/> |
<entry name="taxAmountEntry" rows="5" hidden="" displaymask="%0.2f" typecast="number" field="own_item_tax.amount" readonly="" x="1" y="14" width="10" height="1"></entry> |
850 |
|
|
851 |
|
|
852 |
<label name="ivaLbl" text="IVA" x="66" y="10"/> |
<label name="ivaLbl" text="IVA" x="66" y="10" width="3"></label> |
853 |
<entry name="ivaEntry" displaymask="%0.0f" |
<entry name="ivaEntry" rows="10" default="0" displaymask="%0.0f" x="66" y="11" width="3" height="1"> |
854 |
rows="10" width="3" x="66" y="11" default="0"> |
<trigger name="ivaEntryPreFocusout" src="totalCalcTrigger" type="PRE-FOCUSOUT"></trigger> |
|
<trigger name="ivaEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
|
855 |
</entry> |
</entry> |
856 |
<label name="discountLbl" text="Dto." x="70" y="10"/> |
<label name="discountLbl" text="Dto." x="70" y="10" width="4"></label> |
857 |
<entry field="own_item.discount" name="discountEntry" default="0.00" typecast="number" displaymask="%0.2f" |
<entry name="discountEntry" rows="10" typecast="number" displaymask="%0.2f" field="own_item.discount" default="0.00" x="69" y="11" width="6" height="1"> |
858 |
rows="10" width="6" x="69" y="11"> |
<trigger name="discountEntryPreFocusout" src="totalCalcTrigger" type="PRE-FOCUSOUT"></trigger> |
|
<trigger name="discountEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
|
859 |
</entry> |
</entry> |
860 |
<!-- <label name="bonusLbl" text="Bonif." x="79" y="10"/> --> |
<!-- <label name="bonusLbl" text="Bonif." x="79" y="10"/> --> |
861 |
<entry field="own_item.bonus" name="bonusEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
<entry name="bonusEntry" rows="10" hidden="" default="0.00" displaymask="%0.2f" style="label" typecast="number" field="own_item.bonus" x="79" y="11" width="10" height="1"></entry> |
862 |
rows="10" width="10" x="79" y="11" hidden=""/> |
<label name="itemNetolLbl" text="Neto" x="76" y="10" width="4"></label> |
863 |
<label name="itemNetolLbl" text="Neto" x="76" y="10"/> |
<entry name="itemNetoEntry" rows="10" default="0.00" displaymask="%0.2f" style="label" typecast="number" x="76" y="11" width="10" height="1"></entry> |
864 |
<entry name="itemNetoEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
<label name="itemTotalLbl" text="Total" x="85" y="10" width="5"></label> |
865 |
rows="10" width="10" x="76" y="11"/> |
<entry name="itemTotalEntry" rows="10" default="0.00" displaymask="%0.2f" style="label" typecast="number" x="85" y="11" width="10" height="1"> |
|
<label name="itemTotalLbl" text="Total" x="85" y="10"/> |
|
|
<entry name="itemTotalEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
|
|
rows="10" width="10" x="85" y="11"> |
|
866 |
</entry> |
</entry> |
867 |
<button name="prodDeleteButton" trigger="prodDeleteTrigger" label="Borrar" width="7" height="10" x="95" y="11"/> |
<button name="prodDeleteButton" label="Borrar" trigger="prodDeleteTrigger" x="95" y="11" width="7" height="10"></button> |
868 |
<scrollbar page="5" x="103" y="11" width="1" height="10"/> |
<scrollbar page="5" x="103" y="11" width="1" height="10"></scrollbar> |
869 |
|
|
870 |
<button name="printButton" label="Imprimir" trigger="printTrigger" |
<button name="printButton" label="Imprimir" trigger="printTrigger" x="25" y="24" width="14" height="1"></button> |
871 |
x="25" y="24" width="14" height="1"/> |
<button name="rollbackBtn" label="Cancelar" trigger="rollbackTrigger" x="45" y="24" width="14" height="1"></button> |
|
<button x="45" y="24" trigger="rollbackTrigger" width="14" label="Cancelar" |
|
|
name="rollbackBtn" height="1"/> |
|
872 |
|
|
873 |
</block> |
</block> |
874 |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
875 |
<block datasource="tmpValuesDataSource" name="totalBlock" restrictInsert=""> |
<block name="totalBlock" restrictInsert="" datasource="tmpValuesDataSource"> |
876 |
<label text="Neto " x="55" y="21"/> |
<label text="Neto " x="55" y="21" width="5"></label> |
877 |
<entry name="netoEntry" style="label" readonly="" x="55" y="22" width="12" typecast="number" displaymask="%0.2f" |
<entry name="netoEntry" typecast="number" displaymask="%0.2f" style="label" readonly="" default="0.00" x="55" y="22" width="12" height="1"></entry> |
878 |
default="0.00"/> |
<label text="IVA " x="66" y="21" width="4"></label> |
879 |
<label text="IVA " x="66" y="21"/> |
<entry name="ivaEntry" typecast="number" displaymask="%0.2f" style="label" readonly="" default="0.00" x="66" y="22" width="12" height="1"></entry> |
880 |
<entry name="ivaEntry" style="label" readonly="" x="66" y="22" width="12" typecast="number" displaymask="%0.2f" |
<label text="Total " x="82" y="21" width="6"></label> |
881 |
default="0.00"/> |
<entry name="totalEntry" typecast="number" displaymask="%0.2f" style="label" readonly="" default="0.00" x="82" y="22" width="12" height="1"></entry> |
|
<label text="Total " x="82" y="21"/> |
|
|
<entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f" |
|
|
default="0.00"/> |
|
882 |
</block> |
</block> |
883 |
<block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock"> |
<block name="ownItemToUpdBlock" datasource="ownItemToUpdDataSource"> |
884 |
<entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/> |
<entry name="ownDocumentEntry" hidden="" field="own_item.own_document" x="1" y="109" width="10" height="1"></entry> |
885 |
<entry name="prodIdEntry" field="_price_data.product" hidden="" x="11" y="109" width="10"/> |
<entry name="prodIdEntry" hidden="" field="_price_data.product" x="11" y="109" width="10" height="1"></entry> |
886 |
<entry name="qtyEntry" field="own_product_item.qty" hidden="" x="22" y="109" width="10"/> |
<entry name="qtyEntry" hidden="" field="own_product_item.qty" x="22" y="109" width="10" height="1"></entry> |
887 |
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
<entry name="levelEntry" hidden="" field="_product_store_data.level" x="33" y="109" width="10" height="1"></entry> |
888 |
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
<entry name="productEntry" hidden="" field="_product_store_data.product" x="33" y="109" width="10" height="1"></entry> |
889 |
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
<entry name="storehouseEntry" hidden="" field="_product_store_data.storehouse" x="33" y="109" width="10" height="1"></entry> |
890 |
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
<entry name="hiwaterEntry" hidden="" field="_product_store_data.hiwater" x="33" y="109" width="10" height="1"></entry> |
891 |
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
<entry name="lowaterEntry" hidden="" field="_product_store_data.lowater" x="33" y="109" width="10" height="1"></entry> |
892 |
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
<entry name="tableEntry" hidden="" field="_product_store_data._table" x="33" y="109" width="10" height="1"></entry> |
893 |
</block> |
</block> |
894 |
|
|
895 |
<block name="ownOrganizationBlock" datasource="ownOrganizationDataSource"> |
<block name="ownOrganizationBlock" datasource="ownOrganizationDataSource"> |
896 |
<entry name="condIVAEntry" field="_tax_profile_data._table" hidden="" x="1" y="1" width="10"/> |
<entry name="condIVAEntry" hidden="" field="_tax_profile_data._table" x="1" y="1" width="10" height="1"></entry> |
897 |
</block> |
</block> |
898 |
</page> |
</page> |
899 |
</form> |
</form> |