def _create_receiving_order(self): self.model.set_consigned() receiving_model = ReceivingOrder( responsible=api.get_current_user(self.store), purchase=self.model, supplier=self.model.supplier, branch=self.model.branch, transporter=self.model.transporter, invoice_number=None, store=self.store) # Creates ReceivingOrderItem's get_receiving_items_by_purchase_order(self.model, receiving_model) self.wizard.receiving_model = receiving_model
def _create_receiving_order(self): self.model.set_consigned() receiving_model = ReceivingOrder(responsible=api.get_current_user( self.store), purchase=self.model, supplier=self.model.supplier, branch=self.model.branch, transporter=self.model.transporter, invoice_number=None, store=self.store) # Creates ReceivingOrderItem's get_receiving_items_by_purchase_order(self.model, receiving_model) self.wizard.receiving_model = receiving_model
def _create_receiving_order(self): # since we will create a new receiving order, we should confirm the # purchase first. self.model.confirm() receiving_model = ReceivingOrder( responsible=api.get_current_user(self.store), purchase=self.model, supplier=self.model.supplier, branch=self.model.branch, transporter=self.model.transporter, invoice_number=None, store=self.store) # Creates ReceivingOrderItem's get_receiving_items_by_purchase_order(self.model, receiving_model) self.wizard.receiving_model = receiving_model
def _get_pending_items(self): return get_receiving_items_by_purchase_order(self.model.purchase, self.model)