this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Purchase Price Added

+27
+23
care/emr/migrations/0073_product_purchase_price_and_more.py
··· 1 + # Generated by Django 6.0 on 2026-02-12 14:50 2 + 3 + from django.db import migrations, models 4 + 5 + 6 + class Migration(migrations.Migration): 7 + 8 + dependencies = [ 9 + ('emr', '0072_remove_product_purchase_price_and_more'), 10 + ] 11 + 12 + operations = [ 13 + migrations.AddField( 14 + model_name='product', 15 + name='purchase_price', 16 + field=models.DecimalField(blank=True, decimal_places=6, max_digits=20, null=True), 17 + ), 18 + migrations.AddField( 19 + model_name='supplydelivery', 20 + name='total_purchase_price', 21 + field=models.DecimalField(blank=True, decimal_places=6, max_digits=20, null=True), 22 + ), 23 + ]
+1
care/emr/models/product.py
··· 17 17 expiration_date = models.DateTimeField(default=None, null=True, blank=True) 18 18 extensions = models.JSONField(default=dict) 19 19 standard_pack_size = models.IntegerField(null=True, blank=True, default=None) 20 + purchase_price = models.DecimalField(null=True, blank=True, max_digits=20, decimal_places=6)
+1
care/emr/models/supply_delivery.py
··· 31 31 blank=True, 32 32 ) 33 33 extensions = models.JSONField(default=dict) 34 + total_purchase_price = models.DecimalField(null=True, blank=True, max_digits=20, decimal_places=6) 34 35 35 36 class DeliveryOrder(EMRBaseModel): 36 37 name = models.CharField(max_length=255)
+1
care/emr/resources/inventory/product/spec.py
··· 40 40 expiration_date: datetime.datetime | None = None 41 41 extensions: dict 42 42 standard_pack_size: int | None = None 43 + purchase_price: Decimal | None = Field(max_digits=20, decimal_places=6) 43 44 44 45 45 46 @field_validator("extensions")
+1
care/emr/resources/inventory/supply_delivery/spec.py
··· 144 144 supplied_item_pack_quantity: int | None = None 145 145 supplied_item_pack_size: int | None = None 146 146 extensions: dict 147 + total_purchase_price: Decimal | None = Field(max_digits=20, decimal_places=6) 147 148 148 149 @classmethod 149 150 def perform_extra_serialization(cls, mapping, obj):