SupplierProductSubmission
Product submission from Supplier portal.
Source: doctype.py
Fields
Section titled “Fields”| Field | Type | Required | Description | Validators |
|---|---|---|---|---|
| supplier | Link | ✓ | - | - |
| product_name | str | ✓ | - | - |
| brand_name | str | ✓ | - | - |
| barcode | str | ✓ | - | - |
| hsn_code | str | ✓ | - | - |
| mrp | Decimal | ✓ | - | - |
| proposed_trade_price | Decimal | ✓ | - | - |
| discount_percent | Decimal | ✓ | - | - |
| category | str | ✓ | - | - |
| item_group | str | ✓ | - | - |
| is_liquor | bool | - | - | |
| bottle_in_origin | bool | - | - | |
| edp_pan_india | None | - | - | |
| fssai_license | None | - | - | |
| bis_certification | None | - | - | |
| agmark | None | - | - | |
| tds_certificate | None | - | - | |
| product_images | list[str] | - | - | |
| lab_report | None | - | - | |
| costing_sheet | None | - | - | |
| sample_submitted | bool | - | - | |
| sample_submission_date | None | - | - | |
| sample_tracking_number | None | - | - | |
| status | str | - | - | |
| product_application | Link | - | - |
Configuration
Section titled “Configuration”| Setting | Value |
|---|---|
| Submittable | False |
| Track Changes | True |
Controller
Section titled “Controller”Controller hooks are implemented in *_controller.py files.
Available lifecycle hooks:
validate()- Called before save, raise exceptions for validation errorsbefore_insert()- Called before inserting a new documentafter_insert()- Called after successfully insertingbefore_save()- Called before saving (insert or update)after_save()- Called after savingbefore_delete()- Called before deletingafter_delete()- Called after deleting