Merge lp:~gergagabriel/stoq/bug4194 into lp:~stoq-dev/stoq/master-old

Proposed by Gabriel Gerga
Status: Merged
Merged at revision: 1624
Proposed branch: lp:~gergagabriel/stoq/bug4194
Merge into: lp:~stoq-dev/stoq/master-old
Diff against target: 56 lines (+14/-0)
2 files modified
data/glade/receivable.glade (+7/-0)
stoq/gui/receivable/receivable.py (+7/-0)
To merge this branch: bzr merge lp:~gergagabriel/stoq/bug4194
Reviewer Review Type Date Requested Status
Stoq Developers Pending
Review via email: mp+38979@code.launchpad.net

Description of the change

Added menu -> card payment search in accounts receivable application.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/glade/receivable.glade'
--- data/glade/receivable.glade 2010-05-12 17:26:08 +0000
+++ data/glade/receivable.glade 2010-10-20 20:33:56 +0000
@@ -107,6 +107,12 @@
107 </widget>107 </widget>
108 </child>108 </child>
109 <child>109 <child>
110 <widget class="GtkAction" id="CardPaymentSearch">
111 <property name="name">CardPaymentSearch</property>
112 <property name="label" translatable="yes">Card Payment...</property>
113 </widget>
114 </child>
115 <child>
110 <widget class="GtkAction" id="Copy">116 <widget class="GtkAction" id="Copy">
111 <property name="name">Copy</property>117 <property name="name">Copy</property>
112 <property name="tooltip" translatable="yes">Copy selected object into the clipboard</property>118 <property name="tooltip" translatable="yes">Copy selected object into the clipboard</property>
@@ -254,6 +260,7 @@
254 </menu>260 </menu>
255 <menu action="SearchMenu">261 <menu action="SearchMenu">
256 <menuitem action="BillCheckSearch"/>262 <menuitem action="BillCheckSearch"/>
263 <menuitem action="CardPaymentSearch"/>
257 </menu> 264 </menu>
258 <menu action="help_menu">265 <menu action="help_menu">
259 <menuitem action="about_menu"/>266 <menuitem action="about_menu"/>
260267
=== modified file 'stoq/gui/receivable/receivable.py'
--- stoq/gui/receivable/receivable.py 2010-10-01 15:54:39 +0000
+++ stoq/gui/receivable/receivable.py 2010-10-20 20:33:56 +0000
@@ -58,6 +58,7 @@
58from stoqlib.gui.dialogs.saledetails import SaleDetailsDialog58from stoqlib.gui.dialogs.saledetails import SaleDetailsDialog
59from stoqlib.gui.dialogs.renegotiationdetails import RenegotiationDetailsDialog59from stoqlib.gui.dialogs.renegotiationdetails import RenegotiationDetailsDialog
60from stoqlib.gui.search.paymentsearch import InPaymentBillCheckSearch60from stoqlib.gui.search.paymentsearch import InPaymentBillCheckSearch
61from stoqlib.gui.search.paymentsearch import CardPaymentSearch
61from stoqlib.gui.slaves.installmentslave import SaleInstallmentConfirmationSlave62from stoqlib.gui.slaves.installmentslave import SaleInstallmentConfirmationSlave
62from stoqlib.gui.wizards.renegotiationwizard import PaymentRenegotiationWizard63from stoqlib.gui.wizards.renegotiationwizard import PaymentRenegotiationWizard
63from stoqlib.lib.message import warning64from stoqlib.lib.message import warning
@@ -362,6 +363,9 @@
362 def _can_show_comments(self, receivable_views):363 def _can_show_comments(self, receivable_views):
363 return len(receivable_views) == 1364 return len(receivable_views) == 1
364365
366 def _run_card_payment_search(self):
367 run_dialog(CardPaymentSearch, self, self.conn)
368
365 def _run_bill_check_search(self):369 def _run_bill_check_search(self):
366 run_dialog(InPaymentBillCheckSearch, self, self.conn)370 run_dialog(InPaymentBillCheckSearch, self, self.conn)
367371
@@ -416,6 +420,9 @@
416 def on_BillCheckSearch__activate(self, action):420 def on_BillCheckSearch__activate(self, action):
417 self._run_bill_check_search()421 self._run_bill_check_search()
418422
423 def on_CardPaymentSearch__activate(self, action):
424 self._run_card_payment_search()
425
419 def on_Renegotiate__activate(self, action):426 def on_Renegotiate__activate(self, action):
420 try: 427 try:
421 Till.get_current(self.conn)428 Till.get_current(self.conn)

Subscribers

People subscribed via source and target branches