1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
|
2 |
|
|
3 |
<!-- entity -> OwnEntity --> |
<!-- GNUe Forms 0.5.0 Migration Tool |
4 |
<!-- start_timestamp (timestamp) --> |
Saved on: 2003-02-11 17:42:18 --> |
|
<!-- end_timestamp (timestamp) --> |
|
|
<!-- observations (text) --> |
|
5 |
|
|
6 |
<form tabbed="top" width="85" height="21" title="Carga de Facturas de Proveedores"> |
<form title="Carga de Facturas de Proveedores"> |
7 |
|
<datasource name="alienItemDataSource" connection="papo" |
8 |
<datasource name="nil" cache="1"/> |
detaillink="alien_item.alien_document" master="alienDocumentDataSource" masterlink="id" |
9 |
<datasource name="payDataSource" cache="1"/> |
table="alien_item, alien_service_item, alien_item_tax"> |
|
<datasource name="tmpSearchDataSource" cache="1"/> |
|
|
|
|
|
<!-- Origen de datos que sirve para dar de alta procedimientos de pago (en este caso de la factura) --> |
|
|
<datasource name="proceedingDataSource" database="papo" table="proceeding"/> |
|
|
|
|
|
<!-- Origen de datos que sirve para dar de alta pagos con algun tipo de currency --> |
|
|
<datasource name="alienDocumentProceedingDataSource" database="papo" table="alien_document_proceeding"/> |
|
|
|
|
|
<!-- Origen de datos que sirve para dar de alta pagos con algun tipo de currency --> |
|
|
<datasource name="currencyMovementDataSource" database="papo" |
|
|
table="movement, currency_movement"> |
|
|
<condition> |
|
|
<eq> |
|
|
<cfield name="movement.id"/> |
|
|
<cfield name="currency_movement.movement"/> |
|
|
</eq> |
|
|
</condition> |
|
|
</datasource> |
|
|
|
|
|
<datasource name="contactDataSource" database="papo" |
|
|
table="entity, _entity_data, alien_entity, _alien_entity_data,contact, _contact_data" |
|
|
order_by="_entity_data.name"> |
|
10 |
<condition> |
<condition> |
11 |
<and> |
<and> |
12 |
<eq> |
<eq> |
13 |
<cfield name="entity.id"/> |
<cfield name="alien_item.id"/> |
14 |
<cfield name="_entity_data._table"/> |
<cfield name="alien_service_item.alien_item"/> |
|
</eq> |
|
|
<eq> |
|
|
<cfield name="alien_entity.id"/> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="contact.id"/> |
|
|
<cfield name="_contact_data._table"/> |
|
15 |
</eq> |
</eq> |
16 |
<eq> |
<eq> |
17 |
<cfield name="entity.id"/> |
<cfield name="alien_item.id"/> |
18 |
<cfield name="_alien_entity_data.entity"/> |
<cfield name="alien_item_tax.alien_item"/> |
19 |
</eq> |
</eq> |
20 |
<eq> |
<eq> |
21 |
<cfield name="alien_entity.id"/> |
<cfield name="alien_item_tax.tax"/> |
22 |
<cfield name="_contact_data.alien_entity"/> |
<cconst value="1"/> |
23 |
</eq> |
</eq> |
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_alien_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_contact_data._end_t"/> |
|
|
</null> |
|
24 |
</and> |
</and> |
25 |
</condition> |
</condition> |
26 |
</datasource> |
</datasource> |
27 |
|
<datasource name="alienDocumentDataSource" connection="papo" order_by="date" |
28 |
<datasource name="receivedDataSource" database="papo" |
table="alien_document"> |
|
table="entity, _entity_data, own_entity, _own_entity_data, employee, _employee_data" order_by="_entity_data.name"> |
|
29 |
<condition> |
<condition> |
30 |
<and> |
<eq> |
31 |
<eq> |
<cfield name="alien_document.alien_document_type"/> |
32 |
<cfield name="entity.id"/> |
<cconst value="5"/> |
33 |
<cfield name="_entity_data._table"/> |
</eq> |
|
</eq> |
|
|
<eq> |
|
|
<cfield name="own_entity.id"/> |
|
|
<cfield name="_own_entity_data._table"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="employee.id"/> |
|
|
<cfield name="_employee_data._table"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="entity.id"/> |
|
|
<cfield name="_own_entity_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="own_entity.id"/> |
|
|
<cfield name="_employee_data.own_entity"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_own_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_employee_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
34 |
</condition> |
</condition> |
35 |
</datasource> |
</datasource> |
36 |
|
<datasource name="resultAlienDocumentDataSource" connection="papo" |
37 |
<datasource name="providerDataSource" database="papo" |
order_by="date" table="alien_document"/> |
38 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
<datasource name="transportDataSource" connection="papo" |
39 |
order_by="_entity_data.name"> |
order_by="_entity_data.name" |
40 |
|
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data"> |
41 |
<condition> |
<condition> |
42 |
<and> |
<and> |
43 |
<eq> |
<eq> |
68 |
<cfield name="persona.id"/> |
<cfield name="persona.id"/> |
69 |
<cfield name="_provider_data.persona"/> |
<cfield name="_provider_data.persona"/> |
70 |
</eq> |
</eq> |
71 |
<null> |
<null> |
72 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"/> |
73 |
</null> |
</null> |
74 |
<null> |
<null> |
75 |
<cfield name="_alien_entity_data._end_t"/> |
<cfield name="_alien_entity_data._end_t"/> |
76 |
</null> |
</null> |
77 |
<null> |
<null> |
78 |
<cfield name="_persona_data._end_t"/> |
<cfield name="_persona_data._end_t"/> |
79 |
</null> |
</null> |
80 |
<null> |
<null> |
81 |
<cfield name="_provider_data._end_t"/> |
<cfield name="_provider_data._end_t"/> |
82 |
</null> |
</null> |
83 |
</and> |
</and> |
84 |
</condition> |
</condition> |
85 |
</datasource> |
</datasource> |
86 |
|
<datasource name="providerDataSource" connection="papo" |
87 |
<datasource name="transportDataSource" database="papo" |
order_by="_entity_data.name" |
88 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data"> |
|
order_by="_entity_data.name"> |
|
89 |
<condition> |
<condition> |
90 |
<and> |
<and> |
91 |
<eq> |
<eq> |
116 |
<cfield name="persona.id"/> |
<cfield name="persona.id"/> |
117 |
<cfield name="_provider_data.persona"/> |
<cfield name="_provider_data.persona"/> |
118 |
</eq> |
</eq> |
119 |
<null> |
<null> |
120 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"/> |
121 |
</null> |
</null> |
122 |
<null> |
<null> |
123 |
<cfield name="_alien_entity_data._end_t"/> |
<cfield name="_alien_entity_data._end_t"/> |
124 |
</null> |
</null> |
125 |
<null> |
<null> |
126 |
<cfield name="_persona_data._end_t"/> |
<cfield name="_persona_data._end_t"/> |
127 |
</null> |
</null> |
128 |
<null> |
<null> |
129 |
<cfield name="_provider_data._end_t"/> |
<cfield name="_provider_data._end_t"/> |
130 |
</null> |
</null> |
131 |
</and> |
</and> |
132 |
</condition> |
</condition> |
133 |
</datasource> |
</datasource> |
134 |
|
<datasource name="receivedDataSource" connection="papo" |
135 |
<datasource database="papo" name="resultAlienDocumentDataSource" table="alien_document" |
order_by="_entity_data.name" |
136 |
order_by="date" /> |
table="entity, _entity_data, own_entity, _own_entity_data, employee, _employee_data"> |
|
|
|
|
<datasource database="papo" name="alienDocumentDataSource" table="alien_document" |
|
|
order_by="date"> |
|
137 |
<condition> |
<condition> |
138 |
<eq> |
<and> |
139 |
<cfield name="alien_document.alien_document_type"/> |
<eq> |
140 |
<cconst value="5"/> |
<cfield name="entity.id"/> |
141 |
</eq> |
<cfield name="_entity_data._table"/> |
142 |
|
</eq> |
143 |
|
<eq> |
144 |
|
<cfield name="own_entity.id"/> |
145 |
|
<cfield name="_own_entity_data._table"/> |
146 |
|
</eq> |
147 |
|
<eq> |
148 |
|
<cfield name="employee.id"/> |
149 |
|
<cfield name="_employee_data._table"/> |
150 |
|
</eq> |
151 |
|
<eq> |
152 |
|
<cfield name="entity.id"/> |
153 |
|
<cfield name="_own_entity_data.entity"/> |
154 |
|
</eq> |
155 |
|
<eq> |
156 |
|
<cfield name="own_entity.id"/> |
157 |
|
<cfield name="_employee_data.own_entity"/> |
158 |
|
</eq> |
159 |
|
<null> |
160 |
|
<cfield name="_entity_data._end_t"/> |
161 |
|
</null> |
162 |
|
<null> |
163 |
|
<cfield name="_own_entity_data._end_t"/> |
164 |
|
</null> |
165 |
|
<null> |
166 |
|
<cfield name="_employee_data._end_t"/> |
167 |
|
</null> |
168 |
|
</and> |
169 |
</condition> |
</condition> |
170 |
</datasource> |
</datasource> |
171 |
|
<datasource name="contactDataSource" connection="papo" |
172 |
<datasource database="papo" detaillink="alien_item.alien_document" |
order_by="_entity_data.name" |
173 |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
table="entity, _entity_data, alien_entity, _alien_entity_data,contact, _contact_data"> |
|
table="alien_item, alien_service_item, alien_item_tax"> |
|
174 |
<condition> |
<condition> |
175 |
<and> |
<and> |
176 |
<eq> |
<eq> |
177 |
<cfield name="alien_item.id"/> |
<cfield name="entity.id"/> |
178 |
<cfield name="alien_service_item.alien_item"/> |
<cfield name="_entity_data._table"/> |
179 |
</eq> |
</eq> |
180 |
<eq> |
<eq> |
181 |
<cfield name="alien_item.id"/> |
<cfield name="alien_entity.id"/> |
182 |
<cfield name="alien_item_tax.alien_item"/> |
<cfield name="_alien_entity_data._table"/> |
183 |
</eq> |
</eq> |
184 |
<eq> |
<eq> |
185 |
<cfield name="alien_item_tax.tax"/> |
<cfield name="contact.id"/> |
186 |
<cconst value="1"/> |
<cfield name="_contact_data._table"/> |
187 |
</eq> |
</eq> |
188 |
|
<eq> |
189 |
|
<cfield name="entity.id"/> |
190 |
|
<cfield name="_alien_entity_data.entity"/> |
191 |
|
</eq> |
192 |
|
<eq> |
193 |
|
<cfield name="alien_entity.id"/> |
194 |
|
<cfield name="_contact_data.alien_entity"/> |
195 |
|
</eq> |
196 |
|
<null> |
197 |
|
<cfield name="_entity_data._end_t"/> |
198 |
|
</null> |
199 |
|
<null> |
200 |
|
<cfield name="_alien_entity_data._end_t"/> |
201 |
|
</null> |
202 |
|
<null> |
203 |
|
<cfield name="_contact_data._end_t"/> |
204 |
|
</null> |
205 |
</and> |
</and> |
206 |
</condition> |
</condition> |
207 |
</datasource> |
</datasource> |
208 |
|
<datasource name="currencyMovementDataSource" connection="papo" |
209 |
<trigger name="toDayTrigger" type="NAMED"> |
table="movement, currency_movement"> |
210 |
alienDocumentBlock.dateEntry = alienDocumentDataSource.getTimeStamp() |
<condition> |
211 |
</trigger> |
<eq> |
212 |
|
<cfield name="movement.id"/> |
213 |
<trigger name="commitTrigger" type="NAMED"> |
<cfield name="currency_movement.movement"/> |
214 |
|
</eq> |
215 |
|
</condition> |
216 |
|
</datasource> |
217 |
|
<datasource name="alienDocumentProceedingDataSource" connection="papo" |
218 |
|
table="alien_document_proceeding"/> |
219 |
|
<datasource name="proceedingDataSource" connection="papo" table="proceeding"/> |
220 |
|
<datasource name="tmpSearchDataSource" cache="1"/> |
221 |
|
<datasource name="payDataSource" cache="1"/> |
222 |
|
<datasource name="nil" cache="1"/> |
223 |
|
<trigger name="toDayTrigger" type="NAMED"><![CDATA[ |
224 |
|
alienDocumentBlock.dateEntry1 = alienDocumentDataSource.getTimeStamp() |
225 |
|
]]></trigger> |
226 |
|
<trigger name="commitTrigger" type="NAMED"><![CDATA[ |
227 |
if not alienDocumentBlock.getCurrentRecord().isInserted(): |
if not alienDocumentBlock.getCurrentRecord().isInserted(): |
228 |
genericBox("No se puede grabar modificaciones",["Ok"]) |
genericBox("No se puede grabar modificaciones",["Ok"]) |
229 |
elif not str(alienDocumentBlock.numberEntry): |
elif not str(alienDocumentBlock.numberEntry): |
230 |
genericBox("Falta el número del comprobante",["Ok"]) |
genericBox("Falta el número del comprobante",["Ok"]) |
231 |
elif not str(alienDocumentBlock.dateEntry): |
elif not str(alienDocumentBlock.dateEntry1): |
232 |
genericBox("Falta la fecha del comprobante",["Ok"]) |
genericBox("Falta la fecha del comprobante",["Ok"]) |
233 |
else: |
else: |
234 |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.serviceEntry) > 0: |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.serviceEntry) > 0: |
235 |
proceedingBlock.processRollback() |
proceedingBlock.rollback() |
236 |
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
237 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
238 |
|
|
239 |
alienDocumentBlock.idEntry.autofillBySequence('alien_document_id_seq') |
alienDocumentBlock.idEntry1.autofillBySequence('alien_document_id_seq') |
240 |
alienDocumentBlock.typeEntry = "5" |
alienDocumentBlock.typeEntry1 = "5" |
241 |
|
|
242 |
alienDocumentProceedingBlock.processRollback() |
alienDocumentProceedingBlock.rollback() |
243 |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
244 |
alienDocumentProceedingBlock.alienDocumentEntry = str(alienDocumentBlock.idEntry) |
alienDocumentProceedingBlock.alienDocumentEntry1 = str(alienDocumentBlock.idEntry1) |
245 |
alienDocumentProceedingBlock.amountEntry = str(payBlock.cashEntry) |
alienDocumentProceedingBlock.amountEntry = str(payBlock.cashEntry) |
246 |
|
|
247 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.rollback() |
248 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry1 = str(proceedingBlock.idEntry) |
249 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
250 |
currencyMovementBlock.currencyTypeEntry = "1" |
currencyMovementBlock.currencyTypeEntry = "1" |
251 |
currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
currencyMovementBlock.amountEntry1 = str(payBlock.cashEntry) |
252 |
|
|
253 |
|
|
254 |
alienDocumentBlock.commit() |
alienDocumentBlock.commit() |
255 |
else: |
else: |
256 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.rollback() |
257 |
|
|
258 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
259 |
|
|
260 |
totalBlock.totalEntry = "0.00" |
totalBlock.totalEntry = "0.00" |
261 |
payBlock.cashEntry = "0.00" |
payBlock.cashEntry = "0.00" |
262 |
payBlock.ctaCteEntry = "0.00" |
payBlock.ctaCteEntry = "0.00" |
263 |
</trigger> |
]]></trigger> |
264 |
|
<trigger name="rollbackTrigger" type="NAMED"><![CDATA[ |
265 |
<trigger name="rollbackTrigger" type="NAMED"> |
proceedingBlock.rollback() |
266 |
proceedingBlock.processRollback() |
alienDocumentBlock.rollback() |
267 |
alienDocumentBlock.processRollback() |
alienItemBlock.rollback() |
268 |
alienItemBlock.processRollback() |
currencyMovementBlock.rollback() |
269 |
currencyMovementBlock.processRollback() |
alienDocumentProceedingBlock.rollback() |
|
alienDocumentProceedingBlock.processRollback() |
|
270 |
|
|
271 |
alienDocumentBlock.newRecord() |
alienDocumentBlock.newRecord() |
272 |
|
|
273 |
</trigger> |
]]></trigger> |
274 |
|
<trigger name="deleteTrigger" type="NAMED"><![CDATA[ |
|
<trigger name="deleteTrigger" type="NAMED"> |
|
275 |
lRecordCount = alienItemBlock.getRecordCount() |
lRecordCount = alienItemBlock.getRecordCount() |
276 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
277 |
alienItemBlock.jumpRecord(recNum) |
alienItemBlock.gotoRecord(recNum) |
278 |
alienItemBlock.deleteRecord() |
alienItemBlock.deleteRecord() |
279 |
alienItemBlock.commit() |
alienItemBlock.commit() |
280 |
alienDocumentBlock.deleteRecord() |
alienDocumentBlock.deleteRecord() |
281 |
alienDocumentBlock.commit() |
alienDocumentBlock.commit() |
282 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.rollback() |
283 |
|
|
284 |
totalBlock.totalEntry = "0.00" |
totalBlock.totalEntry = "0.00" |
285 |
payBlock.cashEntry = "0.00" |
payBlock.cashEntry = "0.00" |
286 |
payBlock.ctaCteEntry = "0.00" |
payBlock.ctaCteEntry = "0.00" |
287 |
</trigger> |
]]></trigger> |
288 |
|
<trigger name="quitTrigger" type="NAMED"><![CDATA[ |
289 |
<trigger name="quitTrigger" type="NAMED"> |
alienDocumentBlock.rollback() |
|
alienDocumentBlock.processRollback() |
|
290 |
self.exit() |
self.exit() |
291 |
</trigger> |
]]></trigger> |
292 |
|
<trigger name="totalCalcTrigger" type="NAMED"><![CDATA[ |
|
<trigger name="totalCalcTrigger" type="NAMED"> |
|
293 |
import hack |
import hack |
294 |
|
|
295 |
alienItemBlock.taxAmountEntry = hack.a2f(alienItemBlock.priceEntry) * (hack.a2f(alienItemBlock.taxPercentEntry)/100) |
alienItemBlock.taxAmountEntry = hack.a2f(alienItemBlock.priceEntry) * (hack.a2f(alienItemBlock.taxPercentEntry)/100) |
307 |
totalBlock.totalEntry = str(sum) |
totalBlock.totalEntry = str(sum) |
308 |
payBlock.cashEntry = str(sum) |
payBlock.cashEntry = str(sum) |
309 |
payBlock.ctaCteEntry = "0.00" |
payBlock.ctaCteEntry = "0.00" |
310 |
</trigger> |
]]></trigger> |
311 |
|
<trigger name="newSearchTrigger" type="NAMED"><![CDATA[ |
312 |
<trigger name="newSearchTrigger" type="NAMED"> |
alienDocumentSearchBlock.rollback() |
313 |
alienDocumentSearchBlock.processRollback() |
]]></trigger> |
314 |
</trigger> |
<trigger name="searchTrigger" type="NAMED"><![CDATA[ |
315 |
|
resultBlock.rollback() |
|
<trigger name="searchTrigger" type="NAMED"> |
|
|
resultBlock.processRollback() |
|
316 |
resultBlock.initQuery() |
resultBlock.initQuery() |
317 |
resultBlock.typeREntry = "5" |
resultBlock.typeREntry = "5" |
318 |
resultBlock.providerREntry = str(alienDocumentSearchBlock.providerSEntry) |
resultBlock.providerREntry = str(alienDocumentSearchBlock.providerSEntry) |
324 |
resultBlock.guideNumerREntry = str(alienDocumentSearchBlock.guideNumerSEntry) |
resultBlock.guideNumerREntry = str(alienDocumentSearchBlock.guideNumerSEntry) |
325 |
resultBlock.bundlesREntry = str(alienDocumentSearchBlock.bundlesSEntry) |
resultBlock.bundlesREntry = str(alienDocumentSearchBlock.bundlesSEntry) |
326 |
|
|
327 |
resultBlock.processQuery() |
resultBlock.executeQuery() |
328 |
</trigger> |
]]></trigger> |
329 |
|
<trigger name="resultFocusOutTrigger" type="NAMED"><![CDATA[ |
|
<trigger name="resultFocusOutTrigger" type="NAMED"> |
|
330 |
import hack |
import hack |
331 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.rollback() |
332 |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
333 |
alienDocumentBlock.initQuery() |
alienDocumentBlock.initQuery() |
334 |
alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry) |
alienDocumentBlock.idEntry1 = ("%s" % resultBlock.idREntry) |
335 |
alienDocumentBlock.processQuery() |
alienDocumentBlock.executeQuery() |
336 |
recordCount = alienItemBlock.getRecordCount() |
recordCount = alienItemBlock.getRecordCount() |
337 |
alienItemBlock.firstRecord() |
alienItemBlock.firstRecord() |
338 |
for index in range(recordCount): |
for index in range(recordCount): |
340 |
if index != recordCount-1: |
if index != recordCount-1: |
341 |
alienItemBlock.nextRecord() |
alienItemBlock.nextRecord() |
342 |
|
|
343 |
</trigger> |
]]></trigger> |
344 |
|
<trigger name="providerTrigger" type="NAMED"><![CDATA[ |
|
<trigger name="providerTrigger" type="NAMED"> |
|
345 |
runForm('provider.gfd') |
runForm('provider.gfd') |
346 |
</trigger> |
]]></trigger> |
347 |
|
<logic> |
348 |
<page name="Búsqueda de Facturas de Proveedor"> |
<block name="alienDocumentSearchBlock" datasource="tmpSearchDataSource" |
349 |
<trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> |
restrictInsert=""> |
350 |
<box height="10" label="Factura de Servicios de Proveedor" |
<field name="typeEntry" field="alien_document_type"/> |
351 |
name="invoiceSearchBox" width="84" x="0" y="0"> |
<field name="providerSEntry" field="alien_document.sender" |
352 |
|
fk_description="_entity_data.name" fk_key="entity.id" fk_source="providerDataSource"/> |
353 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<field name="transportSEntry" field="alien_document.transport" |
354 |
|
fk_description="_entity_data.name" fk_key="entity.id" fk_source="transportDataSource"/> |
355 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<field name="salesPersonSEntry" field="alien_document.salesperson" |
356 |
|
fk_description="_entity_data.name" fk_key="entity.id" fk_source="contactDataSource"/> |
357 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<field name="receivedSEntry" field="alien_document.received_by" |
358 |
<entry x="1" y="2" field="alien_document.sender" name="providerSEntry" |
fk_description="_entity_data.name" fk_key="entity.id" fk_source="receivedDataSource"/> |
359 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
<field name="numberSEntry" field="number"/> |
360 |
foreign_key_description="_entity_data.name" > |
<field name="dateSEntry" field="date" typecast="date"/> |
361 |
</entry> |
<field name="guideNumerSEntry" field="guide_number"/> |
362 |
|
<field name="bundlesSEntry" field="bundles"/> |
|
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
|
|
<entry x="27" y="2" field="alien_document.transport" name="transportSEntry" |
|
|
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
|
|
foreign_key_description="_entity_data.name" > |
|
|
</entry> |
|
|
|
|
|
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
|
|
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonSEntry" |
|
|
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
|
|
foreign_key_description="_entity_data.name" > |
|
|
</entry> |
|
|
|
|
|
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
|
|
<entry x="27" y="4" field="alien_document.received_by" name="receivedSEntry" |
|
|
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
|
|
foreign_key_description="_entity_data.name" > |
|
|
</entry> |
|
|
|
|
|
<label name="numberLbl" text="Número" x="1" y="6" /> |
|
|
<entry field="number" name="numberSEntry" width="20" x="1" y="7"/> |
|
|
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
|
|
<entry field="date" name="dateSEntry" typecast="date" |
|
|
rows="1" width="22" x="22" y="7"/> |
|
|
<label name="guideNumberLbl" text="Número de guía" x="45" y="6" /> |
|
|
<entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="7"/> |
|
|
<label name="bundlesLbl" text="Bultos" x="66" y="6" /> |
|
|
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="7"/> |
|
|
|
|
|
<button x="63" y="2" trigger="searchTrigger" width="16" label="Buscar" |
|
|
name="searchBtn" height="1"/> |
|
|
<button x="63" y="3" trigger="newSearchTrigger" width="16" label="Cancelar" |
|
|
name="newSearchBtn" height="1"/> |
|
|
</block> |
|
|
</box> |
|
|
|
|
|
<box height="14" label="Facturas encontradas" name="searchResultBox" |
|
|
width="84" x="0" y="9"> |
|
|
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
|
|
|
|
|
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
|
|
|
|
|
<entry field="alien_document_type" hidden="" name="typeREntry" x="1" y="1"/> |
|
|
|
|
|
<entry x="1" y="1" field="sender" name="providerREntry" |
|
|
width="25" hidden=""/> |
|
|
|
|
|
<entry x="27" y="2" field="transport" name="transportREntry" |
|
|
width="25" hidden=""/> |
|
|
|
|
|
<entry x="1" y="4" field="salesperson" name="salesPersonREntry" |
|
|
width="25" hidden=""/> |
|
|
|
|
|
<entry x="27" y="4" field="received_by" name="receivedREntry" |
|
|
width="25" hidden=""/> |
|
|
|
|
|
<entry field="number" name="numberREntry" hidden="" width="20" x="1" y="7"/> |
|
|
|
|
|
<entry field="date" name="dateREntry" typecast="date" hidden="" |
|
|
width="22" x="22" y="7"/> |
|
|
|
|
|
<entry field="guide_number" name="guideNumerREntry" width="20" x="45" y="7" hidden=""/> |
|
|
|
|
|
<entry field="bundles" name="bundlesREntry" width="10" x="66" y="7" hidden="" /> |
|
|
|
|
|
|
|
|
|
|
|
<label name="resNumberLbl" text="Número" x="1" y="1" /> |
|
|
<entry field="number" name="resNumberEntry" width="20" x="1" y="2" rows="9"/> |
|
|
<label name="resDateLbl" text="Fecha" x="22" y="1" /> |
|
|
<entry field="date" name="resDateEntry" typecast="date" width="22" x="22" y="2" rows="9"/> |
|
|
<scrollbar page="5" |
|
|
x="45" y="2" width="1" height="9"/> |
|
|
|
|
|
</block> |
|
|
</box> |
|
|
</page> |
|
|
|
|
|
<!-- Página de carga de facturas --> |
|
|
<page name="Factura de Proveedor"> |
|
|
<trigger type="PRE-FOCUSIN" src="totalCalcTrigger" /> |
|
|
<box height="10" label="Factura de Servicios de Proveedor" |
|
|
name="invoiceHeaderBox" width="84" x="0" y="0"> |
|
|
|
|
|
<!-- Estos bloques son para la gestion del pago de la factura --> |
|
|
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
|
|
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
|
363 |
</block> |
</block> |
364 |
<block datasource="alienDocumentDataSource" name="alienDocumentBlock" restrictInsert=""> |
<block name="resultBlock" datasource="resultAlienDocumentDataSource"> |
365 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<field name="idREntry" field="id"/> |
366 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<field name="typeREntry" field="alien_document_type"/> |
367 |
|
<field name="providerREntry" field="sender"/> |
368 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<field name="transportREntry" field="transport"/> |
369 |
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" |
<field name="salesPersonREntry" field="salesperson"/> |
370 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
<field name="receivedREntry" field="received_by"/> |
371 |
foreign_key_description="_entity_data.name" > |
<field name="numberREntry" field="number"/> |
372 |
</entry> |
<field name="dateREntry" field="date" typecast="date"/> |
373 |
|
<field name="guideNumerREntry" field="guide_number"/> |
374 |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
<field name="bundlesREntry" field="bundles"/> |
375 |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" |
<field name="resNumberEntry" field="number"/> |
376 |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
<field name="resDateEntry" field="date" typecast="date"/> |
377 |
foreign_key_description="_entity_data.name" > |
</block> |
378 |
</entry> |
<block name="proceedingBlock" datasource="proceedingDataSource"> |
379 |
|
<field name="idEntry" field="id"/> |
380 |
<button x="53" y="2" trigger="providerTrigger" width="3" label="..." |
<field name="dateEntry" field="date"/> |
381 |
name="providerBtn" height="1"/> |
</block> |
382 |
|
<block name="alienDocumentBlock" datasource="alienDocumentDataSource" |
383 |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
restrictInsert=""> |
384 |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonEntry" |
<field name="idEntry1" field="id"/> |
385 |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
<field name="typeEntry1" field="alien_document_type"/> |
386 |
foreign_key_description="_entity_data.name" > |
<field name="providerEntry" field="alien_document.sender" |
387 |
</entry> |
fk_description="_entity_data.name" fk_key="entity.id" fk_source="providerDataSource"/> |
388 |
|
<field name="transportEntry" field="alien_document.transport" |
389 |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
fk_description="_entity_data.name" fk_key="entity.id" fk_source="transportDataSource"/> |
390 |
<entry x="27" y="4" field="alien_document.received_by" name="receivedEntry" |
<field name="salesPersonEntry" field="alien_document.salesperson" |
391 |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
fk_description="_entity_data.name" fk_key="entity.id" fk_source="contactDataSource"/> |
392 |
foreign_key_description="_entity_data.name" > |
<field name="receivedEntry" field="alien_document.received_by" |
393 |
</entry> |
fk_description="_entity_data.name" fk_key="entity.id" fk_source="receivedDataSource"/> |
394 |
|
<field name="numberEntry" field="number"/> |
395 |
<label name="numberLbl" text="Número" x="1" y="6" /> |
<field name="dateEntry1" field="date" typecast="date"/> |
396 |
<entry field="number" name="numberEntry" width="20" x="1" y="7"/> |
<field name="guideNumerEntry" field="guide_number"/> |
397 |
|
<field name="bundlesEntry" field="bundles"/> |
398 |
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
</block> |
399 |
<entry field="date" name="dateEntry" typecast="date" |
<block name="alienItemBlock" datasource="alienItemDataSource"> |
400 |
rows="1" width="22" x="22" y="7"/> |
<field name="alienDocumentEntry" field="alien_item.alien_document"/> |
401 |
|
<field name="serviceEntry" field="alien_service_item.description"/> |
402 |
<button x="44" y="7" trigger="toDayTrigger" width="4" label="hoy" |
<field name="priceEntry" displaymask="%0.2f" |
403 |
name="dateBtn" height="1"/> |
field="alien_service_item.amount" typecast="number"> |
404 |
|
<trigger src="totalCalcTrigger" type="PRE-FOCUSOUT"/> |
405 |
<label name="guideNumberLbl" text="Número de guía" x="48" y="6" /> |
</field> |
406 |
<entry field="guide_number" name="guideNumerEntry" width="20" x="48" y="7"/> |
<field name="taxAmountEntry" field="alien_item_tax.amount" readonly=""/> |
407 |
|
<field name="taxPercentEntry" default="21" displaymask="%0.2f" |
408 |
<label name="bundlesLbl" text="Bultos" x="69" y="6" /> |
typecast="number"> |
409 |
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="7"/> |
<trigger name="taxPercentEntryPreFocusout" src="totalCalcTrigger" |
410 |
|
type="PRE-FOCUSOUT"/> |
411 |
</block> |
</field> |
412 |
</box> |
<field name="taxTypeEntry" default="1" field="alien_item_tax.tax" |
413 |
|
readonly=""/> |
414 |
<box height="11" label="Servicios a facturar" name="invoiceItemBox" |
<field name="discountEntry" default="0" displaymask="%0.2f" |
415 |
width="84" x="0" y="9"> |
field="alien_item.discount" typecast="number" value="0"> |
416 |
<block datasource="alienItemDataSource" name="alienItemBlock"> |
<trigger src="totalCalcTrigger" type="PRE-FOCUSOUT"/> |
417 |
|
</field> |
418 |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
<field name="bonusEntry" default="0" displaymask="%0.2f" |
419 |
|
field="alien_item.bonus" typecast="number" value="0"> |
420 |
<label name="serviceLbl" text="Servicio" x="1" y="1"/> |
<trigger src="totalCalcTrigger" type="PRE-FOCUSOUT"/> |
421 |
<entry x="1" y="2" field="alien_service_item.description" name="serviceEntry" |
</field> |
422 |
width="34" rows="5"/> |
</block> |
423 |
|
<block name="totalBlock" datasource="nil"> |
424 |
<label name="priceLbl" text="Precio" x="36" y="1"/> |
<field name="totalEntry" default="0.00" displaymask="%0.2f" readonly="" |
425 |
<entry x="36" y="2" field="alien_service_item.amount" name="priceEntry" typecast="number" displaymask="%0.2f" |
typecast="number"/> |
426 |
width="10" rows="5"> |
</block> |
427 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<block name="alienDocumentProceedingBlock" |
428 |
</entry> |
datasource="alienDocumentProceedingDataSource"> |
429 |
<label name="taxLbl" text="IVA" x="47" y="1" /> |
<field name="proceedingEntry" field="proceeding"/> |
430 |
<entry x="47" y="2" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
<field name="alienDocumentEntry1" field="alien_document"/> |
431 |
<entry x="47" y="2" name="taxPercentEntry" width="5" rows="5" default="21" typecast="number" displaymask="%0.2f"> |
<field name="amountEntry" field="amount"/> |
432 |
<trigger name="taxPercentEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger"/> |
</block> |
433 |
</entry> |
<block name="currencyMovementBlock" |
434 |
<entry x="47" y="2" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
datasource="currencyMovementDataSource"> |
435 |
<label name="discountLbl" text="Descuento" x="53" y="1"/> |
<field name="proceedingEntry1" field="movement.proceeding"/> |
436 |
<entry field="alien_item.discount" name="discountEntry" value="0" typecast="number" displaymask="%0.2f" |
<field name="movementTypeEntry" field="movement.movement_type"/> |
437 |
rows="5" width="12" x="53" y="2" default="0"> |
<field name="amountEntry1" field="movement.amount"/> |
438 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<field name="currencyTypeEntry" field="currency_movement.currency_type"/> |
439 |
</entry> |
</block> |
440 |
<label name="bonusLbl" text="Bonificación" x="66" y="1"/> |
<block name="payBlock" datasource="payDataSource"> |
441 |
<entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f" |
<field name="cashEntry" default="0.00" displaymask="%0.2f" |
442 |
rows="5" width="12" x="66" y="2" default="0"> |
typecast="number"> |
443 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="Pre-Focusout"><![CDATA[ |
|
</entry> |
|
|
<scrollbar page="5" |
|
|
x="79" y="2" width="1" height="5"/> |
|
|
</block> |
|
|
<block datasource="nil" name="totalBlock"> |
|
|
<label name="totalLbl" text="Total" x="29" y="8"/> |
|
|
<entry name="totalEntry" readonly="" x="36" y="8" width="12" typecast="number" displaymask="%0.2f" default="0.00"/> |
|
|
</block> |
|
|
<!-- Bloques que sirven para el pago --> |
|
|
<block name="alienDocumentProceedingBlock" datasource="alienDocumentProceedingDataSource" transparentBlock=""> |
|
|
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/> |
|
|
</block> |
|
|
<block name="currencyMovementBlock" datasource="currencyMovementDataSource" transparentBlock=""> |
|
|
<entry name="proceedingEntry" field="movement.proceeding" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="movementTypeEntry" field="movement.movement_type" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="amountEntry" field="movement.amount" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" x="1" y="1" width="12"/> |
|
|
</block> |
|
|
</box> |
|
|
<box height="4" label="Pago de la factura" name="payBox" |
|
|
width="84" x="0" y="19"> |
|
|
<block datasource="payDataSource" name="payBlock"> |
|
|
<label text="Efectivo : " x="1" y="1"/> |
|
|
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
|
|
<trigger type="Pre-Focusout"> |
|
444 |
import hack |
import hack |
445 |
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
446 |
</trigger> |
]]></trigger> |
447 |
</entry> |
</field> |
448 |
<label text="Cta. Cte. : " x="24" y="1"/> |
<field name="ctaCteEntry" default="0.00" displaymask="%0.2f" |
449 |
<entry name="ctaCteEntry" x="36" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
typecast="number"> |
450 |
<trigger type="Pre-Focusout"> |
<trigger type="Pre-Focusout"><![CDATA[ |
451 |
import hack |
import hack |
452 |
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
453 |
</trigger> |
]]></trigger> |
454 |
</entry> |
</field> |
455 |
<button x="50" y="1" trigger="commitTrigger" width="10" label="Aceptar" |
</block> |
456 |
name="commitBtn" height="1"/> |
</logic> |
457 |
<button x="61" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" |
<layout xmlns:c="GNUe:Layout:Char" c:height="24" tabbed="top" c:width="85"> |
458 |
name="rollbackBtn" height="1"/> |
<page name="Búsqueda de Facturas de Proveedor"> |
459 |
<button x="72" y="1" trigger="deleteTrigger" width="10" label="Borrar" |
<trigger src="resultFocusOutTrigger" type="Pre-Focusout"/> |
460 |
name="deleteBtn" height="1"/> |
<box name="invoiceSearchBox" c:height="10" |
461 |
|
label="Factura de Servicios de Proveedor" c:width="84" c:x="0" c:y="0"/> |
462 |
</block> |
<entry block="alienDocumentSearchBlock" field="typeEntry" hidden="" |
463 |
</box> |
c:x="2" c:y="2"/> |
464 |
</page> |
<label name="providerLbl" text="Proveedor" c:x="2" c:y="2"/> |
465 |
|
<entry block="alienDocumentSearchBlock" field="providerSEntry" |
466 |
|
style="dropdown" c:width="25" c:x="2" c:y="3"/> |
467 |
|
<label name="transportLbl" text="Transporte" c:x="28" c:y="2"/> |
468 |
|
<entry block="alienDocumentSearchBlock" field="transportSEntry" |
469 |
|
style="dropdown" c:width="25" c:x="28" c:y="3"/> |
470 |
|
<label name="salesPersonLbl" text="Vendedor" c:x="2" c:y="4"/> |
471 |
|
<entry block="alienDocumentSearchBlock" field="salesPersonSEntry" |
472 |
|
style="dropdown" c:width="25" c:x="2" c:y="5"/> |
473 |
|
<label name="receivedLbl" text="Recibido por:" c:x="28" c:y="4"/> |
474 |
|
<entry block="alienDocumentSearchBlock" field="receivedSEntry" |
475 |
|
style="dropdown" c:width="25" c:x="28" c:y="5"/> |
476 |
|
<label name="numberLbl" text="Número" c:x="2" c:y="7"/> |
477 |
|
<entry block="alienDocumentSearchBlock" field="numberSEntry" |
478 |
|
c:width="20" c:x="2" c:y="8"/> |
479 |
|
<label name="dateLbl" text="Fecha" c:x="23" c:y="7"/> |
480 |
|
<entry block="alienDocumentSearchBlock" field="dateSEntry" rows="1" |
481 |
|
c:width="22" c:x="23" c:y="8"/> |
482 |
|
<label name="guideNumberLbl" text="Número de guía" c:x="46" c:y="7"/> |
483 |
|
<entry block="alienDocumentSearchBlock" field="guideNumerSEntry" |
484 |
|
c:width="20" c:x="46" c:y="8"/> |
485 |
|
<label name="bundlesLbl" text="Bultos" c:x="67" c:y="7"/> |
486 |
|
<entry block="alienDocumentSearchBlock" field="bundlesSEntry" |
487 |
|
c:width="10" c:x="67" c:y="8"/> |
488 |
|
<button name="searchBtn" c:height="1" label="Buscar" c:width="16" |
489 |
|
c:x="64" c:y="3"> |
490 |
|
<trigger src="searchTrigger" type="On-Action"/> |
491 |
|
</button> |
492 |
|
<button name="newSearchBtn" c:height="1" label="Cancelar" c:width="16" |
493 |
|
c:x="64" c:y="4"> |
494 |
|
<trigger src="newSearchTrigger" type="On-Action"/> |
495 |
|
</button> |
496 |
|
<box name="searchResultBox" c:height="14" label="Facturas encontradas" |
497 |
|
c:width="84" c:x="0" c:y="9"/> |
498 |
|
<entry block="resultBlock" field="idREntry" hidden="" c:x="2" c:y="11"/> |
499 |
|
<entry block="resultBlock" field="typeREntry" hidden="" c:x="2" c:y="11"/> |
500 |
|
<entry block="resultBlock" field="providerREntry" hidden="" c:width="25" |
501 |
|
c:x="2" c:y="11"/> |
502 |
|
<entry block="resultBlock" field="transportREntry" hidden="" |
503 |
|
c:width="25" c:x="28" c:y="12"/> |
504 |
|
<entry block="resultBlock" field="salesPersonREntry" hidden="" |
505 |
|
c:width="25" c:x="2" c:y="14"/> |
506 |
|
<entry block="resultBlock" field="receivedREntry" hidden="" c:width="25" |
507 |
|
c:x="28" c:y="14"/> |
508 |
|
<entry block="resultBlock" field="numberREntry" hidden="" c:width="20" |
509 |
|
c:x="2" c:y="17"/> |
510 |
|
<entry block="resultBlock" field="dateREntry" hidden="" c:width="22" |
511 |
|
c:x="23" c:y="17"/> |
512 |
|
<entry block="resultBlock" field="guideNumerREntry" hidden="" |
513 |
|
c:width="20" c:x="46" c:y="17"/> |
514 |
|
<entry block="resultBlock" field="bundlesREntry" hidden="" c:width="10" |
515 |
|
c:x="67" c:y="17"/> |
516 |
|
<label name="resNumberLbl" text="Número" c:x="2" c:y="11"/> |
517 |
|
<entry block="resultBlock" field="resNumberEntry" rows="9" c:width="20" |
518 |
|
c:x="2" c:y="12"/> |
519 |
|
<label name="resDateLbl" text="Fecha" c:x="23" c:y="11"/> |
520 |
|
<entry block="resultBlock" field="resDateEntry" rows="9" c:width="22" |
521 |
|
c:x="23" c:y="12"/> |
522 |
|
<scrollbar block="resultBlock" c:height="9" page="5" c:width="1" |
523 |
|
c:x="46" c:y="12"/> |
524 |
|
</page> |
525 |
|
<page name="Factura de Proveedor"> |
526 |
|
<trigger src="totalCalcTrigger" type="PRE-FOCUSIN"/> |
527 |
|
<box name="invoiceHeaderBox" c:height="10" |
528 |
|
label="Factura de Servicios de Proveedor" c:width="84" c:x="0" c:y="0"/> |
529 |
|
<entry block="proceedingBlock" field="idEntry" hidden="" c:width="12" |
530 |
|
c:x="2" c:y="2"/> |
531 |
|
<entry block="proceedingBlock" field="dateEntry" hidden="" c:width="12" |
532 |
|
c:x="2" c:y="2"/> |
533 |
|
<entry block="alienDocumentBlock" field="idEntry1" hidden="" c:x="2" |
534 |
|
c:y="2"/> |
535 |
|
<entry block="alienDocumentBlock" field="typeEntry1" hidden="" c:x="2" |
536 |
|
c:y="2"/> |
537 |
|
<label name="providerLbl" text="Proveedor" c:x="2" c:y="2"/> |
538 |
|
<entry block="alienDocumentBlock" field="providerEntry" style="dropdown" |
539 |
|
c:width="25" c:x="2" c:y="3"/> |
540 |
|
<label name="transportLbl" text="Transporte" c:x="28" c:y="2"/> |
541 |
|
<entry block="alienDocumentBlock" field="transportEntry" |
542 |
|
style="dropdown" c:width="25" c:x="28" c:y="3"/> |
543 |
|
<button name="providerBtn" c:height="1" label="..." c:width="3" c:x="54" |
544 |
|
c:y="3"> |
545 |
|
<trigger src="providerTrigger" type="On-Action"/> |
546 |
|
</button> |
547 |
|
<label name="salesPersonLbl" text="Vendedor" c:x="2" c:y="4"/> |
548 |
|
<entry block="alienDocumentBlock" field="salesPersonEntry" |
549 |
|
style="dropdown" c:width="25" c:x="2" c:y="5"/> |
550 |
|
<label name="receivedLbl" text="Recibido por:" c:x="28" c:y="4"/> |
551 |
|
<entry block="alienDocumentBlock" field="receivedEntry" style="dropdown" |
552 |
|
c:width="25" c:x="28" c:y="5"/> |
553 |
|
<label name="numberLbl" text="Número" c:x="2" c:y="7"/> |
554 |
|
<entry block="alienDocumentBlock" field="numberEntry" c:width="20" |
555 |
|
c:x="2" c:y="8"/> |
556 |
|
<label name="dateLbl" text="Fecha" c:x="23" c:y="7"/> |
557 |
|
<entry block="alienDocumentBlock" field="dateEntry1" rows="1" |
558 |
|
c:width="22" c:x="23" c:y="8"/> |
559 |
|
<button name="dateBtn" c:height="1" label="hoy" c:width="4" c:x="45" |
560 |
|
c:y="8"> |
561 |
|
<trigger src="toDayTrigger" type="On-Action"/> |
562 |
|
</button> |
563 |
|
<label name="guideNumberLbl" text="Número de guía" c:x="49" c:y="7"/> |
564 |
|
<entry block="alienDocumentBlock" field="guideNumerEntry" c:width="20" |
565 |
|
c:x="49" c:y="8"/> |
566 |
|
<label name="bundlesLbl" text="Bultos" c:x="70" c:y="7"/> |
567 |
|
<entry block="alienDocumentBlock" field="bundlesEntry" c:width="10" |
568 |
|
c:x="70" c:y="8"/> |
569 |
|
<box name="invoiceItemBox" c:height="11" label="Servicios a facturar" |
570 |
|
c:width="84" c:x="0" c:y="9"/> |
571 |
|
<entry block="alienItemBlock" field="alienDocumentEntry" hidden="" |
572 |
|
c:x="2" c:y="11"/> |
573 |
|
<label name="serviceLbl" text="Servicio" c:x="2" c:y="11"/> |
574 |
|
<entry block="alienItemBlock" field="serviceEntry" rows="5" c:width="34" |
575 |
|
c:x="2" c:y="12"/> |
576 |
|
<label name="priceLbl" text="Precio" c:x="37" c:y="11"/> |
577 |
|
<entry block="alienItemBlock" field="priceEntry" rows="5" c:width="10" |
578 |
|
c:x="37" c:y="12"/> |
579 |
|
<label name="taxLbl" text="IVA" c:x="48" c:y="11"/> |
580 |
|
<entry block="alienItemBlock" field="taxAmountEntry" hidden="" rows="5" |
581 |
|
c:width="5" c:x="48" c:y="12"/> |
582 |
|
<entry block="alienItemBlock" field="taxPercentEntry" rows="5" |
583 |
|
c:width="5" c:x="48" c:y="12"/> |
584 |
|
<entry block="alienItemBlock" field="taxTypeEntry" hidden="" rows="5" |
585 |
|
c:width="5" c:x="48" c:y="12"/> |
586 |
|
<label name="discountLbl" text="Descuento" c:x="54" c:y="11"/> |
587 |
|
<entry block="alienItemBlock" field="discountEntry" rows="5" |
588 |
|
c:width="12" c:x="54" c:y="12"/> |
589 |
|
<label name="bonusLbl" text="Bonificación" c:x="67" c:y="11"/> |
590 |
|
<entry block="alienItemBlock" field="bonusEntry" rows="5" c:width="12" |
591 |
|
c:x="67" c:y="12"/> |
592 |
|
<scrollbar block="alienItemBlock" c:height="5" page="5" c:width="1" |
593 |
|
c:x="80" c:y="12"/> |
594 |
|
<label name="totalLbl" text="Total" c:x="30" c:y="18"/> |
595 |
|
<entry block="totalBlock" field="totalEntry" c:width="12" c:x="37" |
596 |
|
c:y="18"/> |
597 |
|
<entry block="alienDocumentProceedingBlock" field="proceedingEntry" |
598 |
|
hidden="" c:width="12" c:x="2" c:y="11"/> |
599 |
|
<entry block="alienDocumentProceedingBlock" field="alienDocumentEntry1" |
600 |
|
hidden="" c:width="12" c:x="2" c:y="11"/> |
601 |
|
<entry block="alienDocumentProceedingBlock" field="amountEntry" |
602 |
|
hidden="" c:width="12" c:x="2" c:y="11"/> |
603 |
|
<entry block="currencyMovementBlock" field="proceedingEntry1" hidden="" |
604 |
|
c:width="12" c:x="2" c:y="11"/> |
605 |
|
<entry block="currencyMovementBlock" field="movementTypeEntry" hidden="" |
606 |
|
c:width="12" c:x="2" c:y="11"/> |
607 |
|
<entry block="currencyMovementBlock" field="amountEntry1" hidden="" |
608 |
|
c:width="12" c:x="2" c:y="11"/> |
609 |
|
<entry block="currencyMovementBlock" field="currencyTypeEntry" hidden="" |
610 |
|
c:width="12" c:x="2" c:y="11"/> |
611 |
|
<box name="payBox" c:height="4" label="Pago de la factura" c:width="84" |
612 |
|
c:x="0" c:y="19"/> |
613 |
|
<label text="Efectivo : " c:x="2" c:y="21"/> |
614 |
|
<entry block="payBlock" field="cashEntry" c:width="12" c:x="12" c:y="21"/> |
615 |
|
<label text="Cta. Cte. : " c:x="25" c:y="21"/> |
616 |
|
<entry block="payBlock" field="ctaCteEntry" c:width="12" c:x="37" |
617 |
|
c:y="21"/> |
618 |
|
<button name="commitBtn" c:height="1" label="Aceptar" c:width="10" |
619 |
|
c:x="51" c:y="21"> |
620 |
|
<trigger src="commitTrigger" type="On-Action"/> |
621 |
|
</button> |
622 |
|
<button name="rollbackBtn" c:height="1" label="Deshacer" c:width="10" |
623 |
|
c:x="62" c:y="21"> |
624 |
|
<trigger src="rollbackTrigger" type="On-Action"/> |
625 |
|
</button> |
626 |
|
<button name="deleteBtn" c:height="1" label="Borrar" c:width="10" |
627 |
|
c:x="73" c:y="21"> |
628 |
|
<trigger src="deleteTrigger" type="On-Action"/> |
629 |
|
</button> |
630 |
|
</page> |
631 |
|
</layout> |
632 |
</form> |
</form> |