Class s.d.r.ReceivingOrder(ValidatableDomain):

Part of stoqlib.domain.receiving View In Hierarchy

Receiving order definition.
Instance Variablesstatusstatus of the order
receival_dateDate that order has been closed.
confirm_dateDate that order was send to Stock application.
notesSome optional additional information related to this order.
freight_totalTotal of freight paid in receiving order.
surcharge_value
discount_valueDiscount value in receiving order's payment.
secure_valueSecure value paid in receiving order's payment.
expense_valueOther expenditures paid in receiving order's payment.
invoice_numberThe number of the order that has been received.
Class VariablesSTATUS_PENDINGProducts in the order was not received or received partially.
STATUS_CLOSEDAll products in the order has been received then the order is closed.
Method _create Undocumented
Method confirm Undocumented
Method update_payments Updates the payment value of all payments realated to this
Method _create_freight_payment Undocumented
Method get_items Undocumented
Method remove_items Undocumented
Method remove_item Undocumented
Method receiving_number Undocumented
Method group Undocumented
Method payments Undocumented
Method get_cfop_code Undocumented
Method get_transporter_name Undocumented
Method get_receiving_number_str Undocumented
Method get_branch_name Undocumented
Method get_supplier_name Undocumented
Method get_responsible_name Undocumented
Method get_products_total Undocumented
Method get_order_number Undocumented
Method get_receival_date_str Undocumented
Method _get_total_surcharges Returns the sum of all surcharges (purchase & receiving)
Method _get_total_discounts Returns the sum of all discounts (purchase & receiving)
Method get_total Fetch the total, including discount and surcharge for both the
Method _get_percentage_value Undocumented
Method _set_discount_by_percentage Sets a discount by percentage.
Method _get_discount_by_percentage Undocumented
Method _set_surcharge_by_percentage Sets a surcharge by percentage.
Method _get_surcharge_by_percentage Undocumented

Inherited from ValidatableDomain:

Method set_valid Undocumented
Method set_invalid Undocumented
Method get_valid Undocumented
Class Method select Undocumented
Class Method selectBy Undocumented
Class Method selectOne Undocumented
Class Method selectOneBy Undocumented

Inherited from Domain (via ValidatableDomain):

Method __init__ Undocumented
Method user Undocumented
Class Method iselect Like select, but search on the adapter implementing the interface iface
Class Method iselectBy Like selectBy, but search on the adapter implementing the interface iface
Class Method iselectOne Like selectOne, but search on the adapter implementing the interface iface
Class Method iselectOneBy Like selectOneBy, but search on the adapter implementing the interface iface
Class Method iget Like get, but gets on the adapter implementing the interface iface

Inherited from AbstractModel (via ValidatableDomain, Domain, BaseDomain):

Method __ne__ Undocumented
Method __eq__ Undocumented
Method _SO_setValue Undocumented
Method clone Get a persistent copy of an existent object. Remember that we can
Method get_connection Undocumented

Inherited from AdaptableORMObject (via ValidatableDomain, Domain):

Class Method registerFacet Registers a facet for class cls.

Inherited from Adaptable (via ValidatableDomain, Domain, AdaptableORMObject):

Class Method getFacetType Fetches a facet type associated with an interface, or raise
Class Method getFacetTypes Returns facet classes for this object
Method addFacet Adds a facet implementing iface for the current object
Method removeFacet Removes a facet from the current object
Method getFacets Gets a list of facets assoicated with the current object.
def _create(self, id, **kw):
Undocumented
def confirm(self):
Undocumented
def update_payments(self, create_freight_payment=False):
Updates the payment value of all payments realated to this receiving. If create_freight_payment is set, a new payment will be created with the freight value. The other value as the surcharges and discounts will be included in the installments.
Parameterscreate_freight_paymentTrue if we should create a new payment with the freight value, False otherwise.
def _create_freight_payment(self):
Undocumented
def get_items(self):
Undocumented
def remove_items(self):
Undocumented
def remove_item(self, item):
Undocumented
@property
def receiving_number(self):
Undocumented
@property
def group(self):
Undocumented
@property
def payments(self):
Undocumented
def get_cfop_code(self):
Undocumented
def get_transporter_name(self):
Undocumented
def get_receiving_number_str(self):
Undocumented
def get_branch_name(self):
Undocumented
def get_supplier_name(self):
Undocumented
def get_responsible_name(self):
Undocumented
def get_products_total(self):
Undocumented
def get_order_number(self):
Undocumented
def get_receival_date_str(self):
Undocumented
def _get_total_surcharges(self):
Returns the sum of all surcharges (purchase & receiving)
def _get_total_discounts(self):
Returns the sum of all discounts (purchase & receiving)
def get_total(self):
Fetch the total, including discount and surcharge for both the purchase order and the receiving order.
def _get_percentage_value(self, percentage):
Undocumented
def _set_discount_by_percentage(self, value):
Sets a discount by percentage. Note that percentage must be added as an absolute value not as a factor like 1.05 = 5 % of surcharge The correct form is 'percentage = 3' for a discount of 3 %
def _get_discount_by_percentage(self):
Undocumented
def _set_surcharge_by_percentage(self, value):
Sets a surcharge by percentage. Note that surcharge must be added as an absolute value not as a factor like 0.97 = 3 % of discount. The correct form is 'percentage = 3' for a surcharge of 3 %
def _get_surcharge_by_percentage(self):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.