401 |
</trigger> |
</trigger> |
402 |
|
|
403 |
<trigger name="resultFocusOutTrigger" type="NAMED"> |
<trigger name="resultFocusOutTrigger" type="NAMED"> |
404 |
|
import hack |
405 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
406 |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
407 |
alienDocumentBlock.initQuery() |
alienDocumentBlock.initQuery() |
408 |
alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry) |
alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry) |
409 |
alienDocumentBlock.processQuery() |
alienDocumentBlock.processQuery() |
410 |
|
recordCount = alienItemBlock.getRecordCount() |
411 |
|
alienItemBlock.firstRecord() |
412 |
|
for index in range(recordCount): |
413 |
|
alienItemBlock.taxPercentEntry = hack.a2f(alienItemBlock.taxAmountEntry) / hack.a2f(alienItemBlock.unitPriceEntry) * \ |
414 |
|
hack.a2f(alienItemBlock.qtyEntry) * 100 |
415 |
|
if index != recordCount-1: |
416 |
|
alienItemBlock.nextRecord() |
417 |
|
|
418 |
</trigger> |
</trigger> |
419 |
|
|
420 |
<trigger name="providerTrigger" type="NAMED"> |
<trigger name="providerTrigger" type="NAMED"> |