fix value properties on price an regular quantitiy

This commit is contained in:
2024-11-07 18:34:56 +01:00
parent 275bc49ffd
commit 018a5842d0
2 changed files with 8 additions and 10 deletions

View File

@@ -1,7 +1,5 @@
import neofarm.lib as neo
if __name__ == "__main__":
asset = neo.Asset.Plant.from_id("76f89f82-1238-43bb-b34f-796a92d491a2")
logs = asset.get_logs_of_type(neo.Log.Activity)
for log in logs:
print(log.name)
log = neo.Log.Purchase.from_id("6ecc063f-3995-45e6-872e-952b811eaa94")
print(log.quantities[0].total_price)