~romaia/stoqlib/consig

« back to all changes in this revision

Viewing changes to stoqlib/domain/receiving.py

  • Committer: Ronaldo Maia
  • Date: 2010-05-27 20:37:56 UTC
  • Revision ID: romaia@async.com.br-20100527203756-r1hb38xxxra5fcbd
improce close consigment wizard: create a ReceivingOrder for the purchase

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
            kw['cfop'] = sysparam(conn).DEFAULT_RECEIVING_CFOP
162
162
        Domain._create(self, id, **kw)
163
163
 
164
 
    def confirm(self):
165
 
        for item in self.get_items():
166
 
            item.add_stock_items()
 
164
    def confirm(self, already_received=False):
 
165
        if not already_received:
 
166
            for item in self.get_items():
 
167
                item.add_stock_items()
167
168
 
168
169
        FiscalBookEntry.create_product_entry(
169
170
            self.get_connection(),