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 |
<form title="Recibos" height="17" width="76"> |
<!-- GNUe Forms 0.5.0 Migration Tool |
4 |
|
Saved on: 2003-02-21 17:06:56 --> |
5 |
|
|
6 |
<datasource name="clientSearchDataSource" database="papo" |
<form title="Recibos"> |
7 |
table="_entity_data, _alien_entity_data, _persona_data, _client_data, |
<datasource name="invoiceToPayedDataSource" cache="1"/> |
8 |
_price_type_data, entity_type_uid_conf, _entity_uid_type_data, |
<datasource name="tmpInvToPayedDataSource" cache="1"/> |
9 |
_entity_uid_data" order_by="_entity_data.name"> |
<datasource name="currencyMovementDataSource" connection="papo" |
10 |
|
table="movement, currency_movement"> |
11 |
|
<condition> |
12 |
|
<eq> |
13 |
|
<cfield name="movement.id"/> |
14 |
|
<cfield name="currency_movement.movement"/> |
15 |
|
</eq> |
16 |
|
</condition> |
17 |
|
</datasource> |
18 |
|
<datasource name="ownDocumentProceedingDataSource" connection="papo" |
19 |
|
table="own_document_proceeding"/> |
20 |
|
<datasource name="proceedingDataSource" connection="papo" table="proceeding"/> |
21 |
|
<datasource name="ownItemDataSource" connection="papo" |
22 |
|
detaillink="own_item.own_document" master="ownDocumentDataSource" masterlink="id" |
23 |
|
table="own_item, own_product_item, own_item_tax"> |
24 |
<condition> |
<condition> |
25 |
<and> |
<and> |
26 |
<eq> |
<eq> |
27 |
<cfield name="_entity_data._table"/> |
<cfield name="own_item.id"/> |
28 |
<cfield name="_alien_entity_data.entity"/> |
<cfield name="own_product_item.own_item"/> |
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
<cfield name="_persona_data.alien_entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_persona_data._table"/> |
|
|
<cfield name="_client_data.persona"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_price_type_data._table"/> |
|
|
<cfield name="_client_data.price_type"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_entity_uid_data.entity"/> |
|
29 |
</eq> |
</eq> |
30 |
<eq> |
<eq> |
31 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="own_item.id"/> |
32 |
<cfield name="_entity_uid_type_data._table"/> |
<cfield name="own_item_tax.own_item"/> |
33 |
</eq> |
</eq> |
34 |
<eq> |
<eq> |
35 |
<cfield name="_entity_type_data._table"/> |
<cfield name="own_item_tax.tax"/> |
36 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cconst value="1"/> |
37 |
</eq> |
</eq> |
38 |
|
</and> |
39 |
|
</condition> |
40 |
|
</datasource> |
41 |
|
<datasource name="ownDocumentDataSource" connection="papo" order_by="date" |
42 |
|
table="own_document"/> |
43 |
|
<datasource name="payTotDataSource" connection="papo" |
44 |
|
table="_entity_data, own_document, own_document_proceeding"> |
45 |
|
<condition> |
46 |
|
<and> |
47 |
<eq> |
<eq> |
48 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="_entity_data._table"/> |
49 |
<cconst value="8"/> <!-- Es el id del entity_type correspondiente a cliente --> |
<cfield name="own_document.recipient"/> |
50 |
</eq> |
</eq> |
51 |
<eq> |
<eq> |
52 |
<cfield name="_entity_uid_type_data._table"/> |
<cfield name="own_document.id"/> |
53 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="own_document_proceeding.own_document"/> |
54 |
</eq> |
</eq> |
55 |
<null> |
<and> |
56 |
<cfield name="_entity_data._end_t"/> |
<or> |
57 |
</null> |
<eq> |
58 |
<null> |
<cfield name="own_document.own_document_type"/> |
59 |
<cfield name="_alien_entity_data._end_t"/> |
<cconst value="1"/> |
60 |
</null> |
</eq> |
61 |
<null> |
<eq> |
62 |
<cfield name="_persona_data._end_t"/> |
<cfield name="own_document.own_document_type"/> |
63 |
</null> |
<cconst value="4"/> |
64 |
<null> |
</eq> |
65 |
<cfield name="_client_data._end_t"/> |
</or> |
66 |
</null> |
</and> |
|
<null> |
|
|
<cfield name="_price_type_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_type_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_type_data._end_t"/> |
|
|
</null> |
|
67 |
</and> |
</and> |
68 |
</condition> |
</condition> |
69 |
</datasource> |
</datasource> |
70 |
|
<datasource name="invTaxTotDataSource" connection="papo" |
71 |
|
table="own_document, own_document_tax"> |
72 |
<!-- Origen de datos que srive para calcular el total facturado --> |
<condition> |
73 |
|
<eq> |
74 |
<datasource name="productInvoiceDataSource" database="papo" |
<cfield name="own_document.id"/> |
75 |
table="_entity_data, own_document, own_item, own_product_item, own_item_tax" |
<cfield name="own_document_tax.own_document"/> |
76 |
order_by="own_product_item.id"> |
</eq> |
77 |
<condition> |
</condition> |
78 |
|
</datasource> |
79 |
|
<datasource name="serviceInvoiceDataSource" connection="papo" |
80 |
|
order_by="own_service_item.id" |
81 |
|
table="_entity_data, own_document, own_item, own_service_item, own_item_tax"> |
82 |
|
<condition> |
83 |
<and> |
<and> |
84 |
<eq> |
<eq> |
|
<!-- Aqui se refiere al cliente --> |
|
85 |
<cfield name="_entity_data.id"/> |
<cfield name="_entity_data.id"/> |
86 |
<cfield name="own_document.recipient"/> |
<cfield name="own_document.recipient"/> |
87 |
</eq> |
</eq> |
91 |
</eq> |
</eq> |
92 |
<eq> |
<eq> |
93 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"/> |
94 |
<cfield name="own_product_item.own_item"/> |
<cfield name="own_service_item.own_item"/> |
95 |
</eq> |
</eq> |
96 |
<eq> |
<eq> |
97 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"/> |
99 |
</eq> |
</eq> |
100 |
<eq> |
<eq> |
101 |
<cfield name="own_document.own_document_type"/> |
<cfield name="own_document.own_document_type"/> |
102 |
<cconst value="4"/> |
<cconst value="1"/> |
103 |
</eq> |
</eq> |
104 |
</and> |
</and> |
105 |
</condition> |
</condition> |
106 |
</datasource> |
</datasource> |
107 |
|
<datasource name="productInvoiceDataSource" connection="papo" |
108 |
<datasource name="serviceInvoiceDataSource" database="papo" |
order_by="own_product_item.id" |
109 |
table="_entity_data, own_document, own_item, own_service_item, own_item_tax" |
table="_entity_data, own_document, own_item, own_product_item, _price_data, own_item_tax"> |
110 |
order_by="own_service_item.id"> |
<condition> |
|
<condition> |
|
111 |
<and> |
<and> |
112 |
<eq> |
<eq> |
|
<!-- Aqui se refiere al cliente --> |
|
113 |
<cfield name="_entity_data.id"/> |
<cfield name="_entity_data.id"/> |
114 |
<cfield name="own_document.recipient"/> |
<cfield name="own_document.recipient"/> |
115 |
</eq> |
</eq> |
119 |
</eq> |
</eq> |
120 |
<eq> |
<eq> |
121 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"/> |
122 |
<cfield name="own_service_item.own_item"/> |
<cfield name="own_product_item.own_item"/> |
123 |
|
</eq> |
124 |
|
<eq> |
125 |
|
<cfield name="own_product_item.price"/> |
126 |
|
<cfield name="_price_data.id"/> |
127 |
</eq> |
</eq> |
128 |
<eq> |
<eq> |
129 |
<cfield name="own_item.id"/> |
<cfield name="own_item.id"/> |
131 |
</eq> |
</eq> |
132 |
<eq> |
<eq> |
133 |
<cfield name="own_document.own_document_type"/> |
<cfield name="own_document.own_document_type"/> |
134 |
<cconst value="1"/> |
<cconst value="4"/> |
135 |
</eq> |
</eq> |
136 |
</and> |
</and> |
137 |
</condition> |
</condition> |
|
</datasource> |
|
|
|
|
|
<datasource name="invTaxTotDataSource" database="papo" |
|
|
table="own_document, own_document_tax"> |
|
|
<condition> |
|
|
<eq> |
|
|
<cfield name="own_document.id"/> |
|
|
<cfield name="own_document_tax.own_document"/> |
|
|
</eq> |
|
|
</condition> |
|
138 |
</datasource> |
</datasource> |
139 |
|
<datasource name="clientSearchDataSource" connection="papo" |
140 |
|
order_by="_entity_data.name" |
141 |
<datasource name="payTotDataSource" database="papo" table="_entity_data, own_document, own_document_proceeding"> |
table="_entity_data, _alien_entity_data, _persona_data, _client_data, _price_type_data, entity_type_uid_conf, _entity_uid_type_data, _entity_uid_data"> |
142 |
<condition> |
<condition> |
143 |
<and> |
<and> |
144 |
<eq> |
<eq> |
145 |
<!-- Aqui se refiere al cliente --> |
<cfield name="_entity_data._table"/> |
146 |
<cfield name="_entity_data._table"/> |
<cfield name="_alien_entity_data.entity"/> |
|
<cfield name="own_document.recipient"/> |
|
147 |
</eq> |
</eq> |
148 |
<eq> |
<eq> |
149 |
<cfield name="own_document.id"/> |
<cfield name="_alien_entity_data._table"/> |
150 |
<cfield name="own_document_proceeding.own_document"/> |
<cfield name="_persona_data.alien_entity"/> |
151 |
</eq> |
</eq> |
|
<and> |
|
|
<or> |
|
|
<eq> |
|
|
<cfield name="own_document.own_document_type"/> |
|
|
<cconst value="1"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="own_document.own_document_type"/> |
|
|
<cconst value="4"/> |
|
|
</eq> |
|
|
</or> |
|
|
</and> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
|
|
|
|
<datasource database="papo" name="ownDocumentDataSource" table="own_document" |
|
|
order_by="date" /> |
|
|
|
|
|
<datasource name="ownItemDataSource" database="papo" detaillink="own_item.own_document" |
|
|
master="ownDocumentDataSource" masterlink="id" |
|
|
table="own_item, own_product_item, own_item_tax"> |
|
|
<condition> |
|
|
<and> |
|
152 |
<eq> |
<eq> |
153 |
<cfield name="own_item.id"/> |
<cfield name="_persona_data._table"/> |
154 |
<cfield name="own_product_item.own_item"/> |
<cfield name="_client_data.persona"/> |
155 |
</eq> |
</eq> |
156 |
<eq> |
<eq> |
157 |
<cfield name="own_item.id"/> |
<cfield name="_price_type_data._table"/> |
158 |
<cfield name="own_item_tax.own_item"/> |
<cfield name="_client_data.price_type"/> |
159 |
</eq> |
</eq> |
160 |
<eq> |
<eq> |
161 |
<cfield name="own_item_tax.tax"/> |
<cfield name="_entity_data._table"/> |
162 |
<cconst value="1"/> |
<cfield name="_entity_uid_data.entity"/> |
163 |
</eq> |
</eq> |
164 |
|
<eq> |
165 |
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
166 |
|
<cfield name="_entity_uid_type_data._table"/> |
167 |
|
</eq> |
168 |
|
<eq> |
169 |
|
<cfield name="_entity_type_data._table"/> |
170 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
171 |
|
</eq> |
172 |
|
<eq> |
173 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
174 |
|
<cconst value="8"/> |
175 |
|
</eq> |
176 |
|
<eq> |
177 |
|
<cfield name="_entity_uid_type_data._table"/> |
178 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
179 |
|
</eq> |
180 |
|
<null> |
181 |
|
<cfield name="_entity_data._end_t"/> |
182 |
|
</null> |
183 |
|
<null> |
184 |
|
<cfield name="_alien_entity_data._end_t"/> |
185 |
|
</null> |
186 |
|
<null> |
187 |
|
<cfield name="_persona_data._end_t"/> |
188 |
|
</null> |
189 |
|
<null> |
190 |
|
<cfield name="_client_data._end_t"/> |
191 |
|
</null> |
192 |
|
<null> |
193 |
|
<cfield name="_price_type_data._end_t"/> |
194 |
|
</null> |
195 |
|
<null> |
196 |
|
<cfield name="_entity_uid_data._end_t"/> |
197 |
|
</null> |
198 |
|
<null> |
199 |
|
<cfield name="_entity_type_data._end_t"/> |
200 |
|
</null> |
201 |
|
<null> |
202 |
|
<cfield name="_entity_uid_type_data._end_t"/> |
203 |
|
</null> |
204 |
</and> |
</and> |
205 |
</condition> |
</condition> |
206 |
</datasource> |
</datasource> |
207 |
|
<trigger name="showInvoiceToPayTrigger" type="NAMED"><![CDATA[ |
|
<datasource name="proceedingDataSource" database="papo" table="proceeding"/> |
|
|
|
|
|
<datasource name="ownDocumentProceedingDataSource" database="papo" table="own_document_proceeding"/> |
|
|
<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="tmpInvToPayedDataSource" cache="1"/> |
|
|
|
|
|
<datasource name="invoiceToPayedDataSource" cache="1"/> |
|
|
|
|
|
<trigger type="NAMED" name="showInvoiceToPayTrigger"><![CDATA[ |
|
208 |
|
|
209 |
callTrigger('startWaitingModeTrigger') |
callTrigger('startWaitingModeTrigger') |
210 |
tmpInvToPayedBlock.processRollback() |
tmpInvToPayedBlock.rollback() |
211 |
invoiceToPayedBlock.processRollback() |
invoiceToPayedBlock.rollback() |
212 |
proceedingBlock.processRollback() |
proceedingBlock.rollback() |
213 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.rollback() |
214 |
ownDocumentProceedingBlock.processRollback() |
ownDocumentProceedingBlock.rollback() |
215 |
|
|
216 |
total = 0.0 |
total = 0.0 |
217 |
if str(ownDocumentBlock.clientRecipientBox.clientEntry): |
if str(ownDocumentBlock.clientEntry): |
218 |
import gnue.common.GConditions as GConditions |
import gnue.common.GConditions as GConditions |
219 |
import hack |
import hack |
220 |
|
|
224 |
|
|
225 |
eq = GConditions.GCeq(condProductInvoice) |
eq = GConditions.GCeq(condProductInvoice) |
226 |
GConditions.GCField(eq,"_entity_data._table") |
GConditions.GCField(eq,"_entity_data._table") |
227 |
GConditions.GCConst(eq,str(ownDocumentBlock.clientRecipientBox.clientEntry)) |
GConditions.GCConst(eq,str(ownDocumentBlock.clientEntry)) |
228 |
|
|
229 |
eq = GConditions.GCeq(condServiceInvoice) |
eq = GConditions.GCeq(condServiceInvoice) |
230 |
GConditions.GCField(eq,"_entity_data._table") |
GConditions.GCField(eq,"_entity_data._table") |
231 |
GConditions.GCConst(eq,str(ownDocumentBlock.clientRecipientBox.clientEntry)) |
GConditions.GCConst(eq,str(ownDocumentBlock.clientEntry)) |
232 |
|
|
233 |
eq = GConditions.GCeq(condPay) |
eq = GConditions.GCeq(condPay) |
234 |
GConditions.GCField(eq,"_entity_data._table") |
GConditions.GCField(eq,"_entity_data._table") |
235 |
GConditions.GCConst(eq,str(ownDocumentBlock.clientRecipientBox.clientEntry)) |
GConditions.GCConst(eq,str(ownDocumentBlock.clientEntry)) |
236 |
|
|
237 |
# Calculo del total facturado por Productos |
# Calculo del total facturado por Productos |
238 |
productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice) |
productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice) |
239 |
more = productInvoiceResultSet.firstRecord() |
more = productInvoiceResultSet.firstRecord() |
240 |
|
|
241 |
|
print "Facturas Producto" |
242 |
while more: |
while more: |
243 |
invoiceTotal = 0 |
invoiceTotal = 0 |
244 |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
245 |
|
|
246 |
tmpInvToPayedBlock.idEntry = str(productInvoiceResultSet.current.getField("own_document.id")) |
tmpInvToPayedBlock.idEntry2 = str(productInvoiceResultSet.current.getField("own_document.id")) |
247 |
tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number")) |
tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number")) |
248 |
tmpInvToPayedBlock.dateEntry = str(productInvoiceResultSet.current.getField("own_document.date")) |
tmpInvToPayedBlock.dateEntry1 = str(productInvoiceResultSet.current.getField("own_document.date")) |
249 |
|
|
250 |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
251 |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty")) |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty")) |
252 |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.unit_price")) |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("_price_data.unit_price")) |
253 |
lBonus = hack.a2f(productInvoiceResultSet.current.getField("own_item.bonus")) |
lBonus = hack.a2f(productInvoiceResultSet.current.getField("own_item.bonus")) |
254 |
lDiscount = hack.a2f(productInvoiceResultSet.current.getField("own_item.discount")) |
lDiscount = hack.a2f(productInvoiceResultSet.current.getField("own_item.discount")) |
255 |
item = lQty * lUnitPrice - lBonus - lDiscount |
item = lQty * lUnitPrice - lBonus - lDiscount |
256 |
itemTaxTotal = 0 |
itemTaxTotal = 0 |
257 |
currItem = productInvoiceResultSet.current.getField("own_item.id") |
currItem = productInvoiceResultSet.current.getField("own_item.id") |
258 |
while productInvoiceResultSet.current.getField("own_item.id") == currItem and more: |
while productInvoiceResultSet.current.getField("own_item.id") == currItem and more: |
259 |
itemTaxTotal += hack.a2f(productInvoiceResultSet.current.getField("own_item_tax.amount")) |
itemTaxTotal += hack.a2f(productInvoiceResultSet.current.getField("own_item_tax.amount")) |
260 |
more = productInvoiceResultSet.nextRecord() |
more = productInvoiceResultSet.nextRecord() |
261 |
invoiceTotal += item + itemTaxTotal |
invoiceTotal += item + itemTaxTotal |
262 |
odt_rs = invTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
odt_rs = invTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
263 |
odt_more = odt_rs.firstRecord() |
odt_more = odt_rs.firstRecord() |
264 |
while odt_more: |
while odt_more: |
265 |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount")) |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount")) |
266 |
odt_more = odt_rs.nextRecord() |
odt_more = odt_rs.nextRecord() |
267 |
|
|
268 |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
269 |
tmpInvToPayedBlock.payedEntry = "0.0" |
tmpInvToPayedBlock.payedEntry = "0.0" |
270 |
tmpInvToPayedBlock.newRecord() |
tmpInvToPayedBlock.newRecord() |
271 |
|
|
272 |
# Calculo del total facturado |
# Calculo del total facturado |
273 |
## Factura de servicios |
## Factura de servicios |
274 |
serviceInvoiceResultSet= serviceInvoiceDataSource.createResultSet (condServiceInvoice) |
serviceInvoiceResultSet= serviceInvoiceDataSource.createResultSet (condServiceInvoice) |
275 |
more= serviceInvoiceResultSet.firstRecord () |
more= serviceInvoiceResultSet.firstRecord () |
276 |
|
|
277 |
|
print "Facturas Servicio" |
278 |
while more: |
while more: |
279 |
invoiceTotal = 0 |
invoiceTotal = 0 |
280 |
currentOwnDocument = serviceInvoiceResultSet.current.getField ("own_document.id") |
currentOwnDocument = serviceInvoiceResultSet.current.getField ("own_document.id") |
281 |
|
|
282 |
tmpInvToPayedBlock.idEntry = str(serviceInvoiceResultSet.current.getField("own_document.id")) |
tmpInvToPayedBlock.idEntry2 = str(serviceInvoiceResultSet.current.getField("own_document.id")) |
283 |
tmpInvToPayedBlock.numberEntry = str(serviceInvoiceResultSet.current.getField("own_document.number")) |
tmpInvToPayedBlock.numberEntry = str(serviceInvoiceResultSet.current.getField("own_document.number")) |
284 |
tmpInvToPayedBlock.dateEntry = str(serviceInvoiceResultSet.current.getField("own_document.date")) |
tmpInvToPayedBlock.dateEntry1 = str(serviceInvoiceResultSet.current.getField("own_document.date")) |
285 |
|
|
286 |
while serviceInvoiceResultSet.current.getField ("own_document.id") == currentOwnDocument and more: |
while serviceInvoiceResultSet.current.getField ("own_document.id") == currentOwnDocument and more: |
287 |
item = hack.a2f(serviceInvoiceResultSet.current.getField ("own_service_item.amount")) |
item = hack.a2f(serviceInvoiceResultSet.current.getField ("own_service_item.amount")) |
288 |
currentItem= serviceInvoiceResultSet.current.getField ("own_item.id") |
currentItem= serviceInvoiceResultSet.current.getField ("own_item.id") |
289 |
itemTaxTotal = 0 |
itemTaxTotal = 0 |
290 |
while serviceInvoiceResultSet.current.getField ("own_item.id") == currentItem and more: |
while serviceInvoiceResultSet.current.getField ("own_item.id") == currentItem and more: |
291 |
itemTaxTotal += hack.a2f(serviceInvoiceResultSet.current.getField ("own_item_tax.amount")) |
itemTaxTotal += hack.a2f(serviceInvoiceResultSet.current.getField ("own_item_tax.amount")) |
292 |
more = serviceInvoiceResultSet.nextRecord () |
more = serviceInvoiceResultSet.nextRecord () |
293 |
invoiceTotal += item + itemTaxTotal |
invoiceTotal += item + itemTaxTotal |
294 |
|
|
295 |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
296 |
tmpInvToPayedBlock.payedEntry = "0.0" |
tmpInvToPayedBlock.payedEntry = "0.0" |
297 |
tmpInvToPayedBlock.newRecord() |
tmpInvToPayedBlock.newRecord() |
298 |
|
|
299 |
# Busco las que ya han sido pagadas |
# Busco las que ya han sido pagadas |
300 |
rs = payTotDataSource.createResultSet(condPay) |
rs = payTotDataSource.createResultSet(condPay) |
301 |
more = rs.firstRecord() |
more = rs.firstRecord() |
302 |
while more: |
while more: |
303 |
rc = tmpInvToPayedBlock.getRecordCount() |
rc = tmpInvToPayedBlock.getRecordCount() |
304 |
for recNum in range(rc): |
for recNum in range(rc): |
305 |
tmpInvToPayedBlock.jumpRecord(recNum) |
tmpInvToPayedBlock.gotoRecord(recNum) |
306 |
if tmpInvToPayedBlock.idEntry == rs.current.getField("own_document_proceeding.own_document"): |
if tmpInvToPayedBlock.idEntry2 == rs.current.getField("own_document_proceeding.own_document"): |
307 |
tmpInvToPayedBlock.payedEntry = str( |
tmpInvToPayedBlock.payedEntry = str( |
308 |
hack.a2f(tmpInvToPayedBlock.payedEntry) + \ |
hack.a2f(tmpInvToPayedBlock.payedEntry) + \ |
309 |
hack.a2f(rs.current.getField("own_document_proceeding.amount") ) ) |
hack.a2f(rs.current.getField("own_document_proceeding.amount") ) ) |
310 |
more = rs.nextRecord() |
more = rs.nextRecord() |
311 |
|
|
312 |
# Busco las que ya han sido pagadas y lleno el block de pedido |
# Busco las que ya han sido pagadas y lleno el block de pedido |
313 |
rc = tmpInvToPayedBlock.getRecordCount() |
rc = tmpInvToPayedBlock.getRecordCount() |
314 |
for recNum in range(rc): |
for recNum in range(rc): |
315 |
tmpInvToPayedBlock.jumpRecord(recNum) |
tmpInvToPayedBlock.gotoRecord(recNum) |
316 |
if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry): |
if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry): |
317 |
invoiceToPayedBlock.invoiceBox.idEntry = str(tmpInvToPayedBlock.idEntry) |
invoiceToPayedBlock.idEntry3 = str(tmpInvToPayedBlock.idEntry2) |
318 |
invoiceToPayedBlock.invoiceBox.numberEntry = str(tmpInvToPayedBlock.numberEntry) |
invoiceToPayedBlock.numberEntry1 = str(tmpInvToPayedBlock.numberEntry) |
319 |
invoiceToPayedBlock.invoiceBox.dateEntry = str(tmpInvToPayedBlock.dateEntry) |
invoiceToPayedBlock.dateEntry2 = str(tmpInvToPayedBlock.dateEntry1) |
320 |
invoiceToPayedBlock.invoiceBox.amountEntry = str(tmpInvToPayedBlock.amountEntry) |
invoiceToPayedBlock.amountEntry1 = str(tmpInvToPayedBlock.amountEntry) |
321 |
invoiceToPayedBlock.invoiceBox.payedEntry = str(tmpInvToPayedBlock.payedEntry) |
invoiceToPayedBlock.payedEntry1 = str(tmpInvToPayedBlock.payedEntry) |
322 |
invoiceToPayedBlock.invoiceBox.payEntry = str( |
invoiceToPayedBlock.payEntry = str( |
323 |
hack.a2f(tmpInvToPayedBlock.amountEntry) - \ |
hack.a2f(tmpInvToPayedBlock.amountEntry) - \ |
324 |
hack.a2f(tmpInvToPayedBlock.payedEntry)) |
hack.a2f(tmpInvToPayedBlock.payedEntry)) |
325 |
total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) |
total += hack.a2f(invoiceToPayedBlock.payEntry) |
326 |
invoiceToPayedBlock.newRecord() |
invoiceToPayedBlock.newRecord() |
327 |
|
|
328 |
invoiceToPayedBlock.invoiceBox.totalEntry = str(total) |
invoiceToPayedBlock.totalEntry = str(total) |
329 |
callTrigger('endWaitingModeTrigger') |
callTrigger('endWaitingModeTrigger') |
330 |
|
|
331 |
]]></trigger> |
]]></trigger> |
332 |
|
<trigger name="cancelTrigger" type="NAMED"><![CDATA[ |
|
<trigger type="NAMED" name="cancelTrigger"><![CDATA[ |
|
333 |
import hack |
import hack |
334 |
|
|
335 |
ownDocumentBlock.processRollback() |
ownDocumentBlock.rollback() |
336 |
tmpInvToPayedBlock.processRollback() |
tmpInvToPayedBlock.rollback() |
337 |
invoiceToPayedBlock.processRollback() |
invoiceToPayedBlock.rollback() |
338 |
proceedingBlock.processRollback() |
proceedingBlock.rollback() |
339 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.rollback() |
340 |
ownDocumentProceedingBlock.processRollback() |
ownDocumentProceedingBlock.rollback() |
341 |
|
|
342 |
]]></trigger> |
]]></trigger> |
343 |
|
<trigger name="acceptTrigger" type="NAMED"><![CDATA[ |
|
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
|
344 |
import hack |
import hack |
345 |
|
|
346 |
proceedingBlock.processRollback() |
proceedingBlock.rollback() |
347 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.rollback() |
348 |
ownDocumentProceedingBlock.processRollback() |
ownDocumentProceedingBlock.rollback() |
349 |
|
|
350 |
ownDocumentBlock.clientRecipientBox.dateEntry = ownDocumentDataSource.getTimeStamp() |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
351 |
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
ownDocumentBlock.idEntry1.autofillBySequence('own_document_id_seq') |
352 |
ownDocumentBlock.typeEntry = "3" |
ownDocumentBlock.typeEntry = "3" |
353 |
|
|
354 |
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
proceedingBlock.idEntry4.autofillBySequence('proceeding_id_seq') |
355 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry3 = proceedingDataSource.getTimeStamp() |
356 |
|
|
357 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry1 = str(proceedingBlock.idEntry4) |
358 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
359 |
currencyMovementBlock.currencyTypeEntry = "1" |
currencyMovementBlock.currencyTypeEntry = "1" |
360 |
currencyMovementBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
currencyMovementBlock.amountEntry3 = str(invoiceToPayedBlock.totalEntry) |
361 |
|
|
362 |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry4) |
363 |
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry1) |
364 |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
ownDocumentProceedingBlock.amountEntry2 = str(invoiceToPayedBlock.totalEntry) |
365 |
|
|
366 |
rc = invoiceToPayedBlock.getRecordCount() |
rc = invoiceToPayedBlock.getRecordCount() |
367 |
for recNum in range(rc): |
for recNum in range(rc): |
368 |
invoiceToPayedBlock.jumpRecord(recNum) |
invoiceToPayedBlock.gotoRecord(recNum) |
369 |
if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0: |
if hack.a2f(invoiceToPayedBlock.payEntry) > 0: |
370 |
ownDocumentProceedingBlock.newRecord() |
ownDocumentProceedingBlock.newRecord() |
371 |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry4) |
372 |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.idEntry3) |
373 |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
ownDocumentProceedingBlock.amountEntry2 = str(invoiceToPayedBlock.payEntry) |
374 |
|
|
375 |
ownDocumentBlock.commit() |
ownDocumentBlock.commit() |
376 |
callTrigger('cancelTrigger') |
callTrigger('cancelTrigger') |
377 |
|
|
378 |
]]></trigger> |
]]></trigger> |
379 |
|
<trigger name="totalTrigger" type="NAMED"><![CDATA[ |
|
<trigger type="NAMED" name="totalTrigger"><![CDATA[ |
|
380 |
|
|
381 |
import hack |
import hack |
382 |
rc = invoiceToPayedBlock.getRecordCount() |
rc = invoiceToPayedBlock.getRecordCount() |
383 |
total = 0.0 |
total = 0.0 |
384 |
|
|
385 |
for recNum in range(rc): |
for recNum in range(rc): |
386 |
invoiceToPayedBlock.jumpRecord(recNum) |
invoiceToPayedBlock.gotoRecord(recNum) |
387 |
total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) |
total += hack.a2f(invoiceToPayedBlock.payEntry) |
388 |
|
|
389 |
invoiceToPayedBlock.invoiceBox.totalEntry = str(total) |
invoiceToPayedBlock.totalEntry = str(total) |
390 |
|
|
391 |
]]></trigger> |
]]></trigger> |
392 |
|
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
393 |
|
codeToSearch = str(ownDocumentBlock.clientCodeEntry) |
394 |
|
nameToSearch = str(ownDocumentBlock.clientNameEntry) |
395 |
|
|
396 |
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
ownDocumentBlock.clientCodeEntry = codeToSearch |
397 |
codeToSearch = str(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
ownDocumentBlock.clientNameEntry = nameToSearch |
|
nameToSearch = str(ownDocumentBlock.clientRecipientBox.clientNameEntry) |
|
|
|
|
|
ownDocumentBlock.clientRecipientBox.clientCodeEntry = codeToSearch |
|
|
ownDocumentBlock.clientRecipientBox.clientNameEntry = nameToSearch |
|
398 |
|
|
399 |
callTrigger('startWaitingModeTrigger') |
callTrigger('startWaitingModeTrigger') |
400 |
clientResultBlock.initQuery() |
clientResultBlock.initQuery() |
401 |
clientResultBlock.uidEntry = codeToSearch+"%" |
clientResultBlock.uidEntry = codeToSearch+"%" |
402 |
clientResultBlock.nameEntry = nameToSearch+"%" |
clientResultBlock.nameEntry = nameToSearch+"%" |
403 |
clientResultBlock.processQuery() |
clientResultBlock.executeQuery() |
404 |
callTrigger('endWaitingModeTrigger') |
callTrigger('endWaitingModeTrigger') |
405 |
recordCount = clientResultBlock.getRecordCount() |
recordCount = clientResultBlock.getRecordCount() |
406 |
if recordCount > 1: |
if recordCount > 1: |
407 |
|
|
408 |
|
global block1, block2 |
409 |
|
block1 = clientResultBlock |
410 |
|
block2 = ownDocumentBlock |
411 |
def callback (returnValue): |
def callback (returnValue): |
412 |
global block |
global block1, block2 |
413 |
|
clientResultBlock = block1 |
414 |
|
ownDocumentBlock = block2 |
415 |
if returnValue >= 0: |
if returnValue >= 0: |
416 |
clientResultBlock.jumpRecord(returnValue) |
clientResultBlock.gotoRecord(returnValue) |
417 |
ownDocumentBlock.clientRecipientBox.clientCodeEntry = str(clientResultBlock.uidEntry) |
ownDocumentBlock.clientCodeEntry = str(clientResultBlock.uidEntry) |
418 |
ownDocumentBlock.clientRecipientBox.clientNameEntry = str(clientResultBlock.nameEntry) |
ownDocumentBlock.clientNameEntry = str(clientResultBlock.nameEntry) |
419 |
ownDocumentBlock.clientRecipientBox.clientEntry = str(clientResultBlock.idEntry) |
ownDocumentBlock.clientEntry = str(clientResultBlock.idEntry) |
420 |
|
|
421 |
runForm ('clientSelect.gfd', {'data': clientResultBlock, 'callback': callback}) |
runForm ('clientSelect.gfd', {'data': clientResultBlock, 'callback': callback}) |
422 |
elif recordCount == 1: |
elif recordCount == 1: |
423 |
clientResultBlock.jumpRecord(0) |
clientResultBlock.gotoRecord(0) |
424 |
ownDocumentBlock.clientRecipientBox.clientCodeEntry = str(clientResultBlock.uidEntry) |
ownDocumentBlock.clientCodeEntry = str(clientResultBlock.uidEntry) |
425 |
ownDocumentBlock.clientRecipientBox.clientNameEntry = str(clientResultBlock.nameEntry) |
ownDocumentBlock.clientNameEntry = str(clientResultBlock.nameEntry) |
426 |
ownDocumentBlock.clientRecipientBox.clientEntry = str(clientResultBlock.idEntry) |
ownDocumentBlock.clientEntry = str(clientResultBlock.idEntry) |
427 |
]]></trigger> |
]]></trigger> |
|
|
|
428 |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
429 |
setStatusText("Procesando ...") |
setStatusText("Procesando ...") |
430 |
try: |
try: |
437 |
# busy clock |
# busy clock |
438 |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
439 |
]]></trigger> |
]]></trigger> |
|
|
|
440 |
<trigger name="endWaitingModeTrigger" type="NAMED"><![CDATA[ |
<trigger name="endWaitingModeTrigger" type="NAMED"><![CDATA[ |
441 |
try: |
try: |
442 |
# gnue version <= 0.4 |
# gnue version <= 0.4 |
448 |
self._object.dispatchEvent(GFEvent('endWAIT')) |
self._object.dispatchEvent(GFEvent('endWAIT')) |
449 |
setStatusText("Listo") |
setStatusText("Listo") |
450 |
]]></trigger> |
]]></trigger> |
451 |
|
<logic> |
|
<page name="Emision de Recibos"> |
|
|
|
|
|
<!-- Bloque para la búsqueda de clientes --> |
|
452 |
<block name="clientResultBlock" datasource="clientSearchDataSource"> |
<block name="clientResultBlock" datasource="clientSearchDataSource"> |
453 |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
<field name="idEntry" field="_entity_data.id"/> |
454 |
<entry name="uidTypeEntry" field="_entity_uid_data.entity_uid_type" hidden="" x="1" y="1" width="12"/> |
<field name="uidTypeEntry" field="_entity_uid_data.entity_uid_type"/> |
455 |
<entry name="uidEntry" field="_entity_uid_data.uid" hidden="" x="1" y="1" width="12"/> |
<field name="uidEntry" field="_entity_uid_data.uid"/> |
456 |
<entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
<field name="nameEntry" field="_entity_data.name"/> |
457 |
</block> |
</block> |
458 |
|
<block name="ownDocumentBlock" datasource="ownDocumentDataSource"> |
459 |
<block datasource="ownDocumentDataSource" name="ownDocumentBlock"> |
<field name="idEntry1" field="id"/> |
460 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<field name="typeEntry" field="own_document_type"/> |
461 |
<entry field="own_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<field name="clientEntry" field="recipient"/> |
462 |
<box height="7" label="Datos del Cliente" name="clientRecipientBox" width="74" x="0" y="1"> |
<field name="clientCodeEntry"/> |
463 |
<label name="clientLbl" text="Cliente" x="1" y="1" /> |
<field name="clientNameEntry"/> |
464 |
|
<field name="dateEntry" field="date" readonly="" typecast="date"/> |
|
<entry x="1" y="2" field="recipient" name="clientEntry" width="30" hidden=""/> |
|
|
<entry x="1" y="2" name="clientCodeEntry" width="20"/> |
|
|
<entry x="21" y="2" name="clientNameEntry" width="35"/> |
|
|
<button name="clientSearchButton" trigger="clientSearchTrigger" label="Buscar" |
|
|
width="7" height="1" x="56" y="2"/> |
|
|
|
|
|
<label name="dateLbl" rows="1" text="Fecha" x="1" y="7" /> |
|
|
<entry field="date" name="dateEntry" style="label" readonly="" typecast="date" |
|
|
rows="1" width="24" x="7" y="7"/> |
|
|
<button name="showInvoicesButton" trigger="showInvoiceToPayTrigger" |
|
|
label="Facturas Pendientes" width="20" height="1" x="28" y="4"/> |
|
|
</box> |
|
465 |
</block> |
</block> |
|
|
|
466 |
<block name="tmpInvToPayedBlock" datasource="tmpInvToPayedDataSource"> |
<block name="tmpInvToPayedBlock" datasource="tmpInvToPayedDataSource"> |
467 |
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="1" /> |
<field name="idEntry2" field="id"/> |
468 |
<entry name="numberEntry" field="number" hidden="" x="1" y="1" width="1" /> |
<field name="numberEntry" field="number"/> |
469 |
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="1"/> |
<field name="dateEntry1" field="date"/> |
470 |
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="1"/> |
<field name="amountEntry" field="amount"/> |
471 |
<entry name="payedEntry" field="payed" hidden="" x="1" y="1" width="1"/> |
<field name="payedEntry" field="payed"/> |
472 |
</block> |
</block> |
|
|
|
473 |
<block name="invoiceToPayedBlock" datasource="invoiceToPayedDataSource"> |
<block name="invoiceToPayedBlock" datasource="invoiceToPayedDataSource"> |
474 |
<box height="12" label="Facturas Pendientes de Pago" name="invoiceBox" |
<field name="idEntry3" field="id"/> |
475 |
width="74" x="0" y="8"> |
<field name="numberEntry1" field="number" readonly=""/> |
476 |
<label name="numberLbl" text="Numero" x="1" y="1"/> |
<field name="dateEntry2" field="date" readonly=""/> |
477 |
<label name="dateLbl" text="Fecha" x="12" y="1"/> |
<field name="amountEntry1" displaymask="%0.2f" field="amount" |
478 |
<label name="amountLbl" text="Monto" x="23" y="1"/> |
readonly="" typecast="number"/> |
479 |
<label name="payedLbl" text="Pagado" x="34" y="1"/> |
<field name="payedEntry1" displaymask="%0.2f" field="payed" readonly="" |
480 |
<label name="payLbl" text="A Pagar" x="45" y="1"/> |
typecast="number"/> |
481 |
|
<field name="payEntry" displaymask="%0.2f" field="pay" typecast="number"> |
482 |
<entry name="idEntry" field="id" style="label" hidden="" rows="8" x="1" y="2" width="1" /> |
<trigger src="totalTrigger" type="PRE-FOCUSOUT"/> |
483 |
<entry name="numberEntry" field="number" style="label" rows="8" |
</field> |
484 |
x="1" y="2" width="10" readonly=""/> |
<field name="totalEntry" displaymask="%0.2f" field="total" readonly="" |
485 |
<entry name="dateEntry" field="date" style="label" rows="8" |
typecast="number"/> |
|
x="11" y="2" width="11" readonly=""/> |
|
|
<entry name="amountEntry" field="amount" style="label" rows="8" typecast="number" displaymask="%0.2f" |
|
|
x="23" y="2" width="10" readonly=""/> |
|
|
<entry name="payedEntry" field="payed" style="label" rows="8" typecast="number" displaymask="%0.2f" |
|
|
x="34" y="2" width="10" readonly=""/> |
|
|
<entry name="payEntry" field="pay" rows="8" x="45" y="2" width="10" typecast="number" displaymask="%0.2f"> |
|
|
<trigger type="PRE-FOCUSOUT" src="totalTrigger"/> |
|
|
</entry> |
|
|
<scrollbar page="2" x="56" y="2" width="1" height="8"/> |
|
|
|
|
|
<label name="totalLbl" text="Total a Pagar" x="59" y="5"/> |
|
|
<entry name="totalEntry" field="total" x="59" y="6" width="10" readonly="" typecast="number" displaymask="%0.2f"/> |
|
|
|
|
|
<button name="acceptButton" trigger="acceptTrigger" label="Aceptar" |
|
|
width="10" height="1" x="59" y="8"/> |
|
|
<button name="cancelButton" trigger="cancelTrigger" label="Cancelar" |
|
|
width="10" height="1" x="59" y="9"/> |
|
|
</box> |
|
486 |
</block> |
</block> |
|
|
|
487 |
<block name="proceedingBlock" datasource="proceedingDataSource"> |
<block name="proceedingBlock" datasource="proceedingDataSource"> |
488 |
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
<field name="idEntry4" field="id"/> |
489 |
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
<field name="dateEntry3" field="date"/> |
490 |
</block> |
</block> |
491 |
<block name="ownDocumentProceedingBlock" datasource="ownDocumentProceedingDataSource"> |
<block name="ownDocumentProceedingBlock" |
492 |
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
datasource="ownDocumentProceedingDataSource"> |
493 |
<entry name="ownDocumentEntry" field="own_document" hidden="" x="1" y="1" width="12"/> |
<field name="proceedingEntry" field="proceeding"/> |
494 |
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/> |
<field name="ownDocumentEntry" field="own_document"/> |
495 |
|
<field name="amountEntry2" field="amount"/> |
496 |
</block> |
</block> |
497 |
<block name="currencyMovementBlock" datasource="currencyMovementDataSource"> |
<block name="currencyMovementBlock" |
498 |
<entry name="proceedingEntry" field="movement.proceeding" hidden="" |
datasource="currencyMovementDataSource"> |
499 |
x="1" y="1" width="12"/> |
<field name="proceedingEntry1" field="movement.proceeding"/> |
500 |
<entry name="movementTypeEntry" field="movement.movement_type" hidden="" |
<field name="movementTypeEntry" field="movement.movement_type"/> |
501 |
x="1" y="1" width="12"/> |
<field name="amountEntry3" field="movement.amount"/> |
502 |
<entry name="amountEntry" field="movement.amount" hidden="" x="1" y="1" width="12"/> |
<field name="currencyTypeEntry" field="currency_movement.currency_type"/> |
|
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" |
|
|
x="1" y="1" width="12"/> |
|
503 |
</block> |
</block> |
504 |
</page> |
</logic> |
505 |
|
<layout xmlns:c="GNUe:Layout:Char" c:height="20" c:width="76"> |
506 |
|
<page name="Emision de Recibos"> |
507 |
|
<entry block="clientResultBlock" field="idEntry" hidden="" c:width="12" |
508 |
|
c:x="1" c:y="1"/> |
509 |
|
<entry block="clientResultBlock" field="uidTypeEntry" hidden="" |
510 |
|
c:width="12" c:x="1" c:y="1"/> |
511 |
|
<entry block="clientResultBlock" field="uidEntry" hidden="" c:width="12" |
512 |
|
c:x="1" c:y="1"/> |
513 |
|
<entry block="clientResultBlock" field="nameEntry" hidden="" |
514 |
|
c:width="20" c:x="1" c:y="1"/> |
515 |
|
<entry block="ownDocumentBlock" field="idEntry1" hidden="" c:x="1" |
516 |
|
c:y="1"/> |
517 |
|
<entry block="ownDocumentBlock" field="typeEntry" hidden="" c:x="1" |
518 |
|
c:y="1"/> |
519 |
|
<box name="clientRecipientBox" c:height="7" label="Datos del Cliente" |
520 |
|
c:width="74" c:x="0" c:y="1"/> |
521 |
|
<label name="clientLbl" text="Cliente" c:x="2" c:y="3"/> |
522 |
|
<entry block="ownDocumentBlock" field="clientEntry" hidden="" |
523 |
|
c:width="30" c:x="2" c:y="4"/> |
524 |
|
<entry block="ownDocumentBlock" field="clientCodeEntry" c:width="20" |
525 |
|
c:x="2" c:y="4"/> |
526 |
|
<entry block="ownDocumentBlock" field="clientNameEntry" c:width="35" |
527 |
|
c:x="22" c:y="4"/> |
528 |
|
<button name="clientSearchButton" c:height="1" label="Buscar" |
529 |
|
c:width="7" c:x="57" c:y="4"> |
530 |
|
<trigger src="clientSearchTrigger" type="On-Action"/> |
531 |
|
</button> |
532 |
|
<label name="dateLbl" rows="1" text="Fecha" c:x="2" c:y="9"/> |
533 |
|
<entry block="ownDocumentBlock" field="dateEntry" rows="1" style="label" |
534 |
|
c:width="24" c:x="8" c:y="9"/> |
535 |
|
<button name="showInvoicesButton" c:height="1" |
536 |
|
label="Facturas Pendientes" c:width="20" c:x="29" c:y="6"> |
537 |
|
<trigger src="showInvoiceToPayTrigger" type="On-Action"/> |
538 |
|
</button> |
539 |
|
<entry block="tmpInvToPayedBlock" field="idEntry2" hidden="" c:width="1" |
540 |
|
c:x="1" c:y="1"/> |
541 |
|
<entry block="tmpInvToPayedBlock" field="numberEntry" hidden="" |
542 |
|
c:width="1" c:x="1" c:y="1"/> |
543 |
|
<entry block="tmpInvToPayedBlock" field="dateEntry1" hidden="" |
544 |
|
c:width="1" c:x="1" c:y="1"/> |
545 |
|
<entry block="tmpInvToPayedBlock" field="amountEntry" hidden="" |
546 |
|
c:width="1" c:x="1" c:y="1"/> |
547 |
|
<entry block="tmpInvToPayedBlock" field="payedEntry" hidden="" |
548 |
|
c:width="1" c:x="1" c:y="1"/> |
549 |
|
<box name="invoiceBox" c:height="12" label="Facturas Pendientes de Pago" |
550 |
|
c:width="74" c:x="0" c:y="8"/> |
551 |
|
<label name="numberLbl" text="Numero" c:x="2" c:y="10"/> |
552 |
|
<label name="dateLbl" text="Fecha" c:x="13" c:y="10"/> |
553 |
|
<label name="amountLbl" text="Monto" c:x="24" c:y="10"/> |
554 |
|
<label name="payedLbl" text="Pagado" c:x="35" c:y="10"/> |
555 |
|
<label name="payLbl" text="A Pagar" c:x="46" c:y="10"/> |
556 |
|
<entry block="invoiceToPayedBlock" field="idEntry3" hidden="" rows="8" |
557 |
|
style="label" c:width="1" c:x="2" c:y="11"/> |
558 |
|
<entry block="invoiceToPayedBlock" field="numberEntry1" rows="8" |
559 |
|
style="label" c:width="10" c:x="2" c:y="11"/> |
560 |
|
<entry block="invoiceToPayedBlock" field="dateEntry2" rows="8" |
561 |
|
style="label" c:width="11" c:x="12" c:y="11"/> |
562 |
|
<entry block="invoiceToPayedBlock" field="amountEntry1" rows="8" |
563 |
|
style="label" c:width="10" c:x="24" c:y="11"/> |
564 |
|
<entry block="invoiceToPayedBlock" field="payedEntry1" rows="8" |
565 |
|
style="label" c:width="10" c:x="35" c:y="11"/> |
566 |
|
<entry block="invoiceToPayedBlock" field="payEntry" rows="8" |
567 |
|
c:width="10" c:x="46" c:y="11"/> |
568 |
|
<scrollbar block="invoiceToPayedBlock" c:height="8" page="2" c:width="1" |
569 |
|
c:x="57" c:y="11"/> |
570 |
|
<label name="totalLbl" text="Total a Pagar" c:x="60" c:y="14"/> |
571 |
|
<entry block="invoiceToPayedBlock" field="totalEntry" c:width="10" |
572 |
|
c:x="60" c:y="15"/> |
573 |
|
<button name="acceptButton" c:height="1" label="Aceptar" c:width="10" |
574 |
|
c:x="60" c:y="17"> |
575 |
|
<trigger src="acceptTrigger" type="On-Action"/> |
576 |
|
</button> |
577 |
|
<button name="cancelButton" c:height="1" label="Cancelar" c:width="10" |
578 |
|
c:x="60" c:y="18"> |
579 |
|
<trigger src="cancelTrigger" type="On-Action"/> |
580 |
|
</button> |
581 |
|
<entry block="proceedingBlock" field="idEntry4" hidden="" c:width="12" |
582 |
|
c:x="1" c:y="1"/> |
583 |
|
<entry block="proceedingBlock" field="dateEntry3" hidden="" c:width="12" |
584 |
|
c:x="1" c:y="1"/> |
585 |
|
<entry block="ownDocumentProceedingBlock" field="proceedingEntry" |
586 |
|
hidden="" c:width="12" c:x="1" c:y="1"/> |
587 |
|
<entry block="ownDocumentProceedingBlock" field="ownDocumentEntry" |
588 |
|
hidden="" c:width="12" c:x="1" c:y="1"/> |
589 |
|
<entry block="ownDocumentProceedingBlock" field="amountEntry2" hidden="" |
590 |
|
c:width="12" c:x="1" c:y="1"/> |
591 |
|
<entry block="currencyMovementBlock" field="proceedingEntry1" hidden="" |
592 |
|
c:width="12" c:x="1" c:y="1"/> |
593 |
|
<entry block="currencyMovementBlock" field="movementTypeEntry" hidden="" |
594 |
|
c:width="12" c:x="1" c:y="1"/> |
595 |
|
<entry block="currencyMovementBlock" field="amountEntry3" hidden="" |
596 |
|
c:width="12" c:x="1" c:y="1"/> |
597 |
|
<entry block="currencyMovementBlock" field="currencyTypeEntry" hidden="" |
598 |
|
c:width="12" c:x="1" c:y="1"/> |
599 |
|
</page> |
600 |
|
</layout> |
601 |
</form> |
</form> |
|
|
|
|
|
|