216 |
callTrigger('startWaitingModeTrigger') |
callTrigger('startWaitingModeTrigger') |
217 |
tmpInvToPayedBlock.processRollback() |
tmpInvToPayedBlock.processRollback() |
218 |
invoiceToPayedBlock.processRollback() |
invoiceToPayedBlock.processRollback() |
|
proceedingBlock.processRollback() |
|
|
currencyMovementBlock.processRollback() |
|
|
ownDocumentProceedingBlock.processRollback() |
|
219 |
|
|
220 |
total = 0.0 |
total = 0.0 |
221 |
if str(ownDocumentBlock.clientRecipientBox.clientEntry): |
if str(ownDocumentBlock.clientRecipientBox.clientEntry): |
277 |
ownDocumentBlock.processRollback() |
ownDocumentBlock.processRollback() |
278 |
tmpInvToPayedBlock.processRollback() |
tmpInvToPayedBlock.processRollback() |
279 |
invoiceToPayedBlock.processRollback() |
invoiceToPayedBlock.processRollback() |
|
proceedingBlock.processRollback() |
|
|
currencyMovementBlock.processRollback() |
|
|
ownDocumentProceedingBlock.processRollback() |
|
280 |
|
|
281 |
]]></trigger> |
]]></trigger> |
282 |
|
|
|
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
|
|
import hack |
|
|
|
|
|
proceedingBlock.processRollback() |
|
|
currencyMovementBlock.processRollback() |
|
|
ownDocumentProceedingBlock.processRollback() |
|
|
|
|
|
ownDocumentBlock.clientRecipientBox.dateEntry = ownDocumentDataSource.getTimeStamp() |
|
|
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
|
ownDocumentBlock.typeEntry = "3" |
|
|
|
|
|
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
|
|
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
|
|
|
|
|
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
|
|
currencyMovementBlock.currencyTypeEntry = "1" |
|
|
currencyMovementBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
|
|
|
|
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
|
|
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
|
|
|
|
|
rc = invoiceToPayedBlock.getRecordCount() |
|
|
for recNum in range(rc): |
|
|
invoiceToPayedBlock.jumpRecord(recNum) |
|
|
if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0: |
|
|
ownDocumentProceedingBlock.newRecord() |
|
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
|
|
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
|
|
|
|
|
ownDocumentBlock.commit() |
|
|
callTrigger('cancelTrigger') |
|
|
|
|
|
]]></trigger> |
|
|
|
|
|
<trigger type="NAMED" name="totalTrigger"><![CDATA[ |
|
|
|
|
|
import hack |
|
|
rc = invoiceToPayedBlock.getRecordCount() |
|
|
total = 0.0 |
|
|
|
|
|
for recNum in range(rc): |
|
|
invoiceToPayedBlock.jumpRecord(recNum) |
|
|
total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) |
|
|
|
|
|
invoiceToPayedBlock.invoiceBox.totalEntry = str(total) |
|
|
|
|
|
]]></trigger> |
|
|
|
|
283 |
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
<trigger name="clientSearchTrigger" type="NAMED"><![CDATA[ |
284 |
codeToSearch = str(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
codeToSearch = str(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
285 |
nameToSearch = str(ownDocumentBlock.clientRecipientBox.clientNameEntry) |
nameToSearch = str(ownDocumentBlock.clientRecipientBox.clientNameEntry) |
390 |
x="1" y="2" width="10" readonly=""/> |
x="1" y="2" width="10" readonly=""/> |
391 |
<entry name="dateEntry" field="date" style="label" rows="8" |
<entry name="dateEntry" field="date" style="label" rows="8" |
392 |
x="11" y="2" width="11" readonly=""/> |
x="11" y="2" width="11" readonly=""/> |
393 |
<entry name="amountEntry" field="amount" style="label" rows="8" typecast="number" displaymask="%0.2f" |
<entry name="amountEntry" field="amount" style="label" rows="8" |
394 |
|
typecast="number" displaymask="%0.2f" |
395 |
x="23" y="2" width="10" readonly=""/> |
x="23" y="2" width="10" readonly=""/> |
396 |
<entry name="totalEntry" field="total" x="59" y="6" width="10" readonly="" typecast="number" displaymask="%0.2f"/> |
<entry name="totalEntry" field="total" style="label" x="60" y="6" |
397 |
|
width="10" readonly="" typecast="number" displaymask="%0.2f"/> |
398 |
</box> |
</box> |
399 |
</block> |
</block> |
400 |
|
|
|
<block name="proceedingBlock" datasource="proceedingDataSource"> |
|
|
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
|
|
</block> |
|
|
<block name="ownDocumentProceedingBlock" datasource="ownDocumentProceedingDataSource"> |
|
|
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
|
|
<entry name="ownDocumentEntry" field="own_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"> |
|
|
<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> |
|
401 |
</page> |
</page> |
402 |
</form> |
</form> |
403 |
|
|