252 |
paymentBlock.ctaCteEntry = "0.0" |
paymentBlock.ctaCteEntry = "0.0" |
253 |
]]></trigger> |
]]></trigger> |
254 |
|
|
255 |
<trigger type="On-Startup"><![CDATA[ |
<trigger name="onStartUp" type="On-Startup"><![CDATA[ |
256 |
dateBlock.dateEntry= ownDocumentDataSource.getTimeStamp () |
dateBlock.dateEntry= ownDocumentDataSource.getTimeStamp () |
257 |
]]></trigger> |
]]></trigger> |
258 |
|
|
259 |
<!-- buttons triggers --> |
<!-- buttons triggers --> |
260 |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
261 |
from os import system |
from hack import pleasePrint |
|
from tempfile import mktemp |
|
262 |
|
|
263 |
callTrigger ('commitTrigger') |
callTrigger ('commitTrigger') |
264 |
fileName= mktemp (".html") |
# it's _such_ a pitty |
265 |
print fileName |
# pleasePrint ('serviceInvoice', { 'id': str(ownDocumentBlock.idEntry) }) |
266 |
print "exec'ing grcvs -D file --filter html -d "+fileName+" ../report/serviceInvoice.grd id="+str(ownDocumentBlock.idEntry) |
pleasePrint ('serviceInvoice', [ 'id='+str(ownDocumentBlock.idEntry) ]) |
|
system ("grcvs -D file --filter html -d "+fileName+" ../report/serviceInvoice.grd id="+str(ownDocumentBlock.idEntry)) |
|
|
system ("galeon "+fileName) |
|
267 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
268 |
]]></trigger> |
]]></trigger> |
269 |
|
|
367 |
<entry name="clientEntry" field="recipient" style="dropdown" |
<entry name="clientEntry" field="recipient" style="dropdown" |
368 |
foreign_key="clientDataSource._entity_data.id" foreign_key_description="_entity_data.name" |
foreign_key="clientDataSource._entity_data.id" foreign_key_description="_entity_data.name" |
369 |
x="1" y="2" width="30"> |
x="1" y="2" width="30"> |
370 |
<trigger type="PRE-FOCUSOUT" name="showClientDataTrigger"><![CDATA[ |
<trigger name="showClientDataTrigger" type="PRE-FOCUSOUT"><![CDATA[ |
371 |
rs = clientDataSource.createResultSet({'_entity_data.id':str(ownDocumentBlock.clientRecipientBox.clientEntry)}) |
rs = clientDataSource.createResultSet({'_entity_data.id':str(ownDocumentBlock.clientRecipientBox.clientEntry)}) |
372 |
if rs.firstRecord(): |
if rs.firstRecord(): |
373 |
ownDocumentBlock.clientRecipientBox.currentClientEntry = rs.current.getField('_entity_data._table') |
ownDocumentBlock.clientRecipientBox.currentClientEntry = rs.current.getField('_entity_data._table') |
502 |
### FALTA GRABAR EL BALANCE ### |
### FALTA GRABAR EL BALANCE ### |
503 |
]]></trigger> |
]]></trigger> |
504 |
|
|
505 |
<trigger type="PRE-FOCUSIN" name="showScoreTrigger"><![CDATA[ |
<trigger name="showScoreTrigger" type="PRE-FOCUSIN"><![CDATA[ |
506 |
ownDocumentBlock.processRollback () |
ownDocumentBlock.processRollback () |
507 |
]]></trigger> |
]]></trigger> |
508 |
</entry> |
</entry> |
579 |
<!-- lo cual me lleva a pensar que se puede devolver cosas de ventanas a traves de tablas --> |
<!-- lo cual me lleva a pensar que se puede devolver cosas de ventanas a traves de tablas --> |
580 |
<entry name="priceEntry" field="own_service_item.amount" |
<entry name="priceEntry" field="own_service_item.amount" |
581 |
x="42" y="2" width="10" rows="5" rowSpacer="1"> |
x="42" y="2" width="10" rows="5" rowSpacer="1"> |
582 |
<trigger type="PRE-FOCUSOUT" src="calculateEndPriceTrigger"/> |
<trigger name="priceEntryPreFocusOut" type="PRE-FOCUSOUT" src="calculateEndPriceTrigger"/> |
583 |
</entry> |
</entry> |
584 |
<label name="taxLabel" text="IVA (%)" |
<label name="taxLabel" text="IVA (%)" |
585 |
x="53" y="1"/> |
x="53" y="1"/> |
586 |
<entry name="taxEntry" field="own_item_tax.amount" value="0" typecast="number" |
<entry name="taxEntry" field="own_item_tax.amount" value="0" typecast="number" |
587 |
x="53" y="2" width="10" rows="5" rowSpacer="1"> |
x="53" y="2" width="10" rows="5" rowSpacer="1"> |
588 |
<trigger type="PRE-FOCUSOUT" src="calculateEndPriceTrigger"/> |
<trigger name="taxEntryPreFocusOut" type="PRE-FOCUSOUT" src="calculateEndPriceTrigger"/> |
589 |
</entry> |
</entry> |
590 |
<label name="endPriceLabel" text="Precio final" |
<label name="endPriceLabel" text="Precio final" |
591 |
x="64" y="1"/> |
x="64" y="1"/> |
611 |
x="1" y="1"/> |
x="1" y="1"/> |
612 |
<entry name="cashEntry" |
<entry name="cashEntry" |
613 |
x="11" y="1" width="12"> |
x="11" y="1" width="12"> |
614 |
<trigger type="Pre-Focusout"><![CDATA[ |
<trigger name="cashEntryPreFocusOut" type="Pre-Focusout"><![CDATA[ |
615 |
from hack import a2f |
from hack import a2f |
616 |
|
|
617 |
paymentBlock.ctaCteEntry= str (a2f (totalBlock.totalEntry) - a2f (paymentBlock.cashEntry)) |
paymentBlock.ctaCteEntry= str (a2f (totalBlock.totalEntry) - a2f (paymentBlock.cashEntry)) |
621 |
x="24" y="1"/> |
x="24" y="1"/> |
622 |
<entry name="ctaCteEntry" |
<entry name="ctaCteEntry" |
623 |
x="36" y="1" width="12"> |
x="36" y="1" width="12"> |
624 |
<trigger type="Pre-Focusout"><![CDATA[ |
<trigger name="ctaCteEntryPreFocusOut" type="Pre-Focusout"><![CDATA[ |
625 |
from hack import a2f |
from hack import a2f |
626 |
|
|
627 |
paymentBlock.cashEntry= str (a2f (totalBlock.totalEntry) - a2f (paymentBlock.ctaCteEntry)) |
paymentBlock.cashEntry= str (a2f (totalBlock.totalEntry) - a2f (paymentBlock.ctaCteEntry)) |