621 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
622 |
more = rs.nextRecord() |
more = rs.nextRecord() |
623 |
|
|
624 |
|
currencyTypeBlock.firstRecord () |
625 |
currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry) |
currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry) |
626 |
currencyDataBlock.recipientBox.numberEntry = str(ownPosDocumentBlock.documentNumberEntry) |
currencyDataBlock.recipientBox.numberEntry = str(ownPosDocumentBlock.documentNumberEntry) |
627 |
|
|
675 |
callTrigger ('commitTrigger') |
callTrigger ('commitTrigger') |
676 |
# it's _such_ a pitty |
# it's _such_ a pitty |
677 |
# pleasePrint ('serviceInvoice', { 'id': str(ownDocumentBlock.idEntry) }) |
# pleasePrint ('serviceInvoice', { 'id': str(ownDocumentBlock.idEntry) }) |
678 |
report='productInvoice-%s' % str(ownDocumentBlock.typeEntry) |
reportNo= str(ownDocumentBlock.typeEntry) |
679 |
hack.pleasePrint (self, str(ownDocumentBlock.typeEntry), report, [ 'id='+str(ownDocumentBlock.idEntry) ],str(ownPosDocumentBlock.documentPrintCommand)) |
print 'here: %s, %s' % (str(tmpValuesDataSource.alienIVACond), str(tmpValuesDataSource.ownIVACond)) |
680 |
|
if str(tmpValuesDataSource.alienIVACond)=='2' and str(tmpValuesDataSource.ownIVACond)=='1': |
681 |
|
# hack to use alternative report and print config |
682 |
|
reportNo= '4_and_half' |
683 |
|
report='productInvoice-%s' % reportNo |
684 |
|
print 'here: %s' % reportNo |
685 |
|
hack.pleasePrint (self, reportNo, report, [ 'id='+str(ownDocumentBlock.idEntry) ],str(ownPosDocumentBlock.documentPrintCommand)) |
686 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
687 |
except DBError: |
except DBError: |
688 |
# just ignore, as the commit trigger already reports the error to the user |
# just ignore, as the commit trigger already reports the error to the user |
1347 |
</page> |
</page> |
1348 |
|
|
1349 |
<!--=== SECOND PAGE ===--> |
<!--=== SECOND PAGE ===--> |
1350 |
<page name="Determinacion de Monedas"> |
<page name="Determinación de Monedas"> |
1351 |
<block name="currencyDataBlock" datasource="dataCurrencyDataSource"> |
<block name="currencyDataBlock" datasource="dataCurrencyDataSource"> |
1352 |
<box height="4" label="Factura de Productos a Clientes" |
<box height="4" label="Factura de Productos a Clientes" |
1353 |
name="recipientBox" width="105" x="0" y="0"> |
name="recipientBox" width="105" x="0" y="0"> |