currentCredit: genericBox ("Está excedido el Límite de Crédito",["Ok"]) else: if ownItemBlock.getRecordCount () > 0 and len (ownItemBlock.serviceEntry) > 0: callTrigger ('commitTrigger') # it's _such_ a pitty # pleasePrint ('serviceInvoice', { 'id': str(ownDocumentBlock.idEntry) }) # BUG: select the correct type of invoice? # pleasePrint (self, 'p1', '1', 'serviceInvoice-discriminated', [ 'id='+str(ownDocumentBlock.idEntry) ]) hack.pleasePrint (self, 'p1', '1', 'serviceInvoice', [ 'id='+str(ownDocumentBlock.idEntry) ]) callTrigger('rollbackTrigger') ]]>