[POS-commit] r7440 - stoq/trunk/stoq/gui/receivable
george at async.com.br
george at async.com.br
Tue Feb 19 17:55:36 BRT 2008
Author: george
Date: Tue Feb 19 17:55:36 2008
New Revision: 7440
Log:
#3638: Ao adicionar um recebimento avulso com caixa fechado, um erro
ocorre. (stoq) r=jdahlin
Modified:
stoq/trunk/stoq/gui/receivable/receivable.py
Modified: stoq/trunk/stoq/gui/receivable/receivable.py
==============================================================================
--- stoq/trunk/stoq/gui/receivable/receivable.py (original)
+++ stoq/trunk/stoq/gui/receivable/receivable.py Tue Feb 19 17:55:36 2008
@@ -43,7 +43,6 @@
from stoqlib.domain.payment.payment import Payment
from stoqlib.domain.payment.views import InPaymentView
from stoqlib.domain.sale import SaleView
-from stoqlib.domain.till import Till
from stoqlib.reporting.payment import ReceivablePaymentReport
from stoqlib.reporting.receival_receipt import ReceivalReceipt
from stoqlib.gui.printing import print_report
@@ -52,7 +51,6 @@
from stoqlib.gui.dialogs.paymentduedatedialog import PaymentDueDateChangeDialog
from stoqlib.gui.dialogs.saledetails import SaleDetailsDialog
from stoqlib.gui.slaves.installmentslave import SaleInstallmentConfirmationSlave
-from stoqlib.lib.message import info
from stoq.gui.application import SearchableAppWindow
@@ -178,13 +176,7 @@
def _add_receiving(self):
trans = new_transaction()
- till = Till.get_current(trans)
- if till is None:
- trans.close()
- info(_(u'This action requires an open till.'))
- return
-
- retval = self.run_dialog(InPaymentAdditionDialog, trans, till)
+ retval = self.run_dialog(InPaymentAdditionDialog, trans)
if finish_transaction(trans, retval):
self.results.refresh()
More information about the POS-commit
mailing list