InvManage.models
Submodules
Package Contents
Classes
Model of the product. |
|
Model of the product purchase entry. |
|
Model of the goods receipt note entry (GRNE). |
|
Model of the product sales entry. |
|
Model of the sales order. |
|
Model of the purchase order. |
|
Model of the goods receipt note (GRN). |
|
Model of the consumer. |
|
Model of the vendor. |
|
Model of the company. |
|
Model for the purchase invoice. |
|
Model for the sales order invoice. |
|
Model of the column state. |
|
Model of the filter state. |
|
Model for a generic object. |
|
Model for event card to be displayed in the history view. |
|
Model for event type. |
|
Model associated with an object. |
|
Model of filter state of the history. |
|
Model of the shipping address. |
|
Model of the communication information. |
|
Model of the purchase data. |
|
Model of the bank account details. |
- class InvManage.models.Product
Bases:
django.db.models.Model
Model of the product.
- name
Name of the product.
- Type
str
- category
Product category.
- Type
str
- item_type
Type of the product.
- Type
str
- description
Short description of the product.
- Type
str
- price
Price of the product.
- Type
float
- quantity
Stock quantity of the product.
- Type
int
- identifier
Unique identifier of the product.
- Type
str
- location
Physical location of the product.
- Type
str
- length
Length of the product.
- Type
str
- width
Width of the product.
- Type
str
- height
Height of the product.
- Type
str
- weight
Weight of the product.
- Type
str
- discount
Default discount percentage on the product.
- Type
float
- barcode
Barcode of the product.
- Type
str
- expiry
Expiry date of the product.
- Type
DateField
- image
Image of the product.
- Type
ImageField
- name
- category
- item_type
- description
- price
- quantity
- identifier
- location
- length
- width
- height
- weight
- discount
- barcode
- expiry
- image
- __str__(self)
- class InvManage.models.ProductPurchaseEntry
Bases:
django.db.models.Model
Model of the product purchase entry.
- product
Product associated wit the product purchase entry.
- Type
ModelChoiceField
- quantity
Quantity of the product to be ordered.
- Type
int
- price
Price of the product.
- Type
float
- discount
Percentage discount on the product purchase.
- Type
float
- order
Referenced purchase order.
- Type
- receivedQty
Quantity of product received against the ordered quantity.
- Type
str
- acceptedQty
Quantity of product accepted as OK.
- Type
str
- rejectedQty
Quantity of product rejected (not OK, on HOLD, extra delivery, etc.)
- Type
str
- is_complete()
Returns the completion status (boolean).
- pending_quantity()
Returns the pending quantity against the entry (int).
- product
- quantity
- price
- discount
- order
- receivedQty
- acceptedQty
- rejectedQty
- is_complete(self)
- property pending_quantity(self)
- class InvManage.models.GRNEntry
Bases:
django.db.models.Model
Model of the goods receipt note entry (GRNE).
- product
Primary key of the
Product
instance associated with the goods receipt note entry.- Type
- quantity
Ordered quantity of product with reference to product purchase entry.
- Type
int
- grne
Primary key of the
GoodsReceiptNote
instance.- Type
int
- ppe
Primary key of the
ProductPurchaseEntry
instance associated with the GRNE.- Type
int
- remark
Remarks of the quality engineer or the GRN creator about status of products received.
- Type
str
- receivedQty
Quantity of product received against the ordered quantity.
- Type
str
- acceptedQty
Quantity of product accepted as OK.
- Type
str
- rejectedQty
Quantity of product rejected (not OK, on HOLD, extra delivery, etc.)
- Type
str
- product
- quantity
- grn
- ppes
- remark
- receivedQty
- acceptedQty
- rejectedQty
- class InvManage.models.ProductSalesEntry
Bases:
django.db.models.Model
Model of the product sales entry.
- quantity
Quantity of the product.
- Type
int
- price
Price of the product.
- Type
float
- discount
Percentage discount on the product.
- Type
float
- order
Primary key of the
SalesOrder
referenced by the entry.- Type
- product
- quantity
- price
- discount
- order
- class InvManage.models.SalesOrder
Bases:
django.db.models.Model
Model of the sales order.
- consumer
Consumer associated with the sales order.
- Type
ModelChoiceField
- date
Date of the sales order creation.
- Type
DateField
- so
Sales order number.
- Type
int
- discount
Percentage discount associated with the sales order.
- Type
float
- tax
Percentage of tax applicable.
- Type
float
- paid
Amount received from the consumer.
- Type
float
- balance
Amount balance with the consumer.
- Type
float
- subtotal
Total of all the product sales entries associated with the sales order.
- Type
float
- taxtotal
Total tax applicable on the subtotal.
- Type
float
- ordertotal
Total price of the sales order including taxtotal.
- Type
float
- consumer
- date
- so
- discount
- tax
- paid
- balance
- subtotal
- taxtotal
- ordertotal
- class InvManage.models.PurchaseOrder
Bases:
django.db.models.Model
Model of the purchase order.
- date
Date and time of the purchase order creation.
- Type
DateField
- po
Purchase order number.
- Type
int
- discount
Percentage discount.
- Type
float
- tax
Percentage of tax applicable for the purchase.
- Type
float
- paid
Amount paid against the PO.
- Type
float
- balance
Amount balance which remains to be paid.
- Type
float
- subtotal
Total of all the product purchase entries associated with the purchase order.
- Type
float
- taxtotal
Total tax applicable on the subtotal.
- Type
float
- ordertotal
Total price of the purchase order including taxtotal.
- Type
float
- is_complete()
Returns the completion status (boolean).
- pending_ppes()
Returns list of product purchase entries which are not completed.
- vendor
- date
- po
- discount
- tax
- paid
- balance
- subtotal
- taxtotal
- ordertotal
- is_complete(self)
- pending_ppes(self)
- class InvManage.models.GoodsReceiptNote
Bases:
django.db.models.Model
Model of the goods receipt note (GRN).
- vendor
Vendor associated with the goods receipt note.
- Type
ModelChoiceField
- poRef
List of identifiers of the purchase orders from which the goods receipt note is derived.
- Type
MultipleChoiceField
- identifier
Unique identifier of the goods receipt note.
- Type
str
- date
Date of GRN creation.
- Type
DateField
- grnType
Type of GRN (
auto
ormanual
).- Type
ChoiceField
- amendNumber
Amendment number of the GRN.
- Type
int
- amendDate
Amendment date.
- Type
DateField
- transporter
Name of the transport/shipping service.
- Type
str
- vehicleNumber
Vehicle number using which the products are shipped.
- Type
str
- gateInwardNumber
Gate inward number of the vehicle.
- Type
str
- preparedBy
Name/identifier of the person who created the goods receipt note.
- Type
str
- checkedBy
Name/identifier of the person who validated the goods receipt note.
- Type
str
- checkedBy
Name/identifier of the person who inspected the physical products in the goods receipt note.
- Type
str
- approvedBy
Name/identifier of the authority who approved the goods receipt note.
- Type
str
- TYPE_CHOICES = [['manual', 'Blank'], ['auto', 'PO Reference']]
- vendor
- poRef
- identifier
- date
- grnType
- amendNumber
- amendDate
- transporter
- vehicleNumber
- gateInwardNumber
- preparedBy
- checkedBy
- inspectedBy
- approvedBy
- class InvManage.models.Consumer
Bases:
django.db.models.Model
Model of the consumer.
- name
Name of the consumer.
- Type
str
- identifier
Unique identifier of the consumer.
- Type
str
- gstin
GSTIN number of the consumer.
- Type
str
- phone
Contact number.
- Type
str
- address
Address of the consumer.
- Type
str
- email
E-mail address of the consumer.
- Type
str
- location
City of the consumer.
- Type
str
- Returns
[description]
- Return type
[type]
- name
- identifier
- gstin
- phone
- address
- email
- location
- __str__(self)
- class InvManage.models.Vendor
Bases:
django.db.models.Model
Model of the vendor.
- name
Name of the vendor.
- Type
str
- identifier
Unique identifier of the vendor.
- Type
str
- gstin
GSTIN number of the vendor.
- Type
str
- address
Primary key of the
ShippingAddress
instance associated with the vendor.- Type
- communication
Primary key of the
Communication
instance associated with the vendor.- Type
- backaccount
Primary key of the
BankAccount
instance associated with the vendor.- Type
- purchasedata
Primary key of the
PurchaseData
instance associated with the vendor.- Type
- Returns
String representation of the vendor name.
- Return type
str
- name
- identifier
- gstin
- address
- communication
- bankaccount
- purchasedata
- __str__(self)
- class InvManage.models.Company
Bases:
django.db.models.Model
Model of the company.
- name
Name of the company.
- Type
str
- owner
Owner of the company.
- Type
str
- gstin
GSTIN number of the company.
- Type
str
- phone
Contact number.
- Type
str
- address
Postal address.
- Type
str
- email
E-mail address of the contact person.
- Type
str
- location
City of the company.
- Type
str
- image
Photo/logo of the company.
- Type
ImageField
- shippingaddress
Primary key of the
ShippingAddress
instance associated with the company.- Type
- Returns
String representation of the company name.
- Return type
str
- name
- owner
- gstin
- phone
- address
- email
- location
- image
- shippingaddress
- __str__(self)
- class InvManage.models.PurchaseInvoice
Bases:
django.db.models.Model
Model for the purchase invoice.
- po
Primary key of the
PurchaseOrder
.- Type
- shippingaddress
Primary key of the
ShippingAddress
.- Type
- communication
Primary key of the
Communication
.- Type
- company
- po
- shippingaddress
- communication
- class InvManage.models.SalesInvoice
Bases:
django.db.models.Model
Model for the sales order invoice.
- so
Primary key of the
SalesOrder
.- Type
- shippingaddress
Primary key of the
ShippingAddress
.- Type
- company
- so
- shippingaddress
- class InvManage.models.FilterColumn
Bases:
django.db.models.Model
Model of the column state.
- name
Name of the column.
- Type
str
- label
Label of the column.
- Type
str
- visible
Visibility flag.
- Type
bool
- position
Index of the column.
- Type
int
- state
Primary key of the
FilterState
instance being referenced by the column instance.- Type
- name
- label
- visible
- position
- state
- class InvManage.models.FilterState
Bases:
django.db.models.Model
Model of the filter state.
- name
Name of the filter state.
- Type
str
- name
- class InvManage.models.Object
Bases:
django.db.models.Model
Model for a generic object.
- identifier
Unique identifier of the object.
- Type
str
- name
Name of the object.
- Type
str
- model
Model associated with the object.
- Type
str
- identifier
- name
- model
- class InvManage.models.EventCard
Bases:
django.db.models.Model
Model for event card to be displayed in the history view.
- obj
Object associated with the event.
- Type
OneToOneField
- objId
Unique identifier of the object.
- Type
str
- objname
Name of the object.
- Type
str
- objmodel
Model of the object.
- Type
str
- date
Timestamp of the event.
- Type
DateField
- operation
Type of event.
- Type
str
- obj
- objId
- objname
- objmodel
- date
- operation
- class InvManage.models.EventType
Bases:
django.db.models.Model
Model for event type.
- name
Name of the event being triggered.
- Type
str
- label
Label associated with the event.
- Type
str
- Returns
Returns the string representation of the label when the event type is queried.
- Return type
Label
- name
- label
- __str__(self)
- class InvManage.models.ObjectModel
Bases:
django.db.models.Model
Model associated with an object.
- name
Name of the object.
- Type
str
- label
Label string of the object.
- Type
str
- modName
Name of the model associated with the object.
- Type
str
- Returns
Returns string representation of the label when object model is queried.
- Return type
Label
- name
- label
- modName
- __str__(self)
- class InvManage.models.HistoryFilterState
Bases:
django.db.models.Model
Model of filter state of the history.
- params
Paramameters of the configured filters.
- Type
str
- params
- class InvManage.models.ShippingAddress
Bases:
django.db.models.Model
Model of the shipping address.
- title
Title of the firm.
- Type
str
- name
Name of the firm.
- Type
str
- phone
Contact number of the firm.
- Type
str
- address
Postal address.
- Type
str
- city
City.
- Type
str
- state
State.
- Type
str
- country
Country.
- Type
str
- website
Official website of the firm.
- Type
URLField
- post
Postal code of the firm.
- Type
str
- title
- name
- phone
- address
- city
- state
- country
- website
- post
- class InvManage.models.Communication
Bases:
django.db.models.Model
Model of the communication information.
- language
Language of communication.
- Type
str
- phone
Contact number of the firm.
- Type
str
- email
E-mail of the contact person.
- Type
EmailField
- fax
Fax number.
- Type
str
- language
- phone
- email
- fax
- class InvManage.models.PurchaseData
Bases:
django.db.models.Model
Model of the purchase data.
- currency
Currency of purchase.
- Type
str
- minorder
Minimum order quantity.
- Type
int
- contactperson
Name of the contact person.
- Type
str
- refcode
Reference code.
- Type
str
- transportmode
Mode of transport of the shipment.
- Type
str
- currency
- minorder
- contactperson
- refcode
- transportmode
- class InvManage.models.BankAccount
Bases:
django.db.models.Model
Model of the bank account details.
- name
Name of the bank.
- Type
str
- branch
Branch number of the bank.
- Type
str
- region
City in which the branch is located.
- Type
str
- route
Transit number.
- Type
str
- number
Bank account number.
- Type
int
- acctype
Type of bank account.
- Type
str
- iban
IBAN number.
- Type
str
- code
Bank code.
- Type
str
- branchcode
Branch code.
- Type
str
- name
- branch
- region
- route
- number
- acctype
- iban
- code
- branchcode