IRC logs for #farmOS, 2019-12-21 (GMT)

2019-12-20
2019-12-22
TimeNickMessage
[04:26:05]* JustTB has quit (Quit: Leaving.)
[04:42:38]* JustTB has joined #farmos
[08:00:46]* kosnick has joined #farmos
[08:01:47]* kosnick has quit (Remote host closed the connection)
[12:56:26]<generalredneck[m>mstenta: I was playing with the egg module today. Harvests don't directly affect inventory it looks like. How would you suggest tracking the sale of eggs for example? Our biggest thing is knowing our current egg count so we know how many dozen we have on hand without having to go all the way out to the fridge in the stables. (cause we are lazy)
[13:02:08]<generalredneck[m>You had mentioned using farm_ledger for sale and purchase. I'm guessing that I woudl probably have to write some hooks for the egg quickforms to alter inventory?
[13:04:33]<generalredneck[m>I feel like I'm struggling with some of the main concepts of how some items are represented in the system
[13:09:47]<mstenta[m]>@generalredneck:matrix.org: yes, basically the "inventory tracking" is not finished yet
[13:10:54]<generalredneck[m><mstenta[m] "@generalredneck:matrix.org: yes,"> Got it
[13:11:10]<mstenta[m]>We took some initial steps while we were developing the grazing module, so that animals could have headcounts (inventory) that can be adjusted (incremented/decremented) with logs
[13:11:29]<mstenta[m]>So the next step is to make that applicable to other asset types as well
[13:11:53]<mstenta[m]>So the basic logic is in place, but there are a few steps left before we have inventory tracking on other things
[13:12:11]<mstenta[m]>So long story short: only animals have inventory tracking at the moment :-)
[13:12:34]<generalredneck[m>I know it's not as simple as 12 eggs == 1 dozen to sale
[13:12:49]<generalredneck[m>Cause you have shrink and all that jazz
[13:13:01]<mstenta[m]>Mm yeah that's another layer too
[13:13:05]<mstenta[m]>Unit conversions
[13:13:39]<mstenta[m]>Right now if you are using the egg module and the quantity report module you can figure out how many eggs were harvested in a given timeframe
[13:13:52]<mstenta[m]>But you can't really see how many you have left
[13:13:59]<mstenta[m]>It's not tied together yet
[13:14:45]<generalredneck[m>Cool at least I have an idea of expectations
[13:15:13]<mstenta[m]>Brb getting the kids ready for naptimes
[13:16:05]<mstenta[m]>We're close! Just hasn't been top of the priority list :-)
[13:17:21]<generalredneck[m>I get that too. I've been too busy with the recent unsupported security fixes by the security team rescuing modules to play here too :p
[13:53:59]<mstenta[m]>Oh yea I saw those! Glad farmOS wasn't using any :-)
[15:15:17]* farmBOT has joined #farmos
[16:09:19]<generalredneck[m>I see you have unit converstion opportunities all over the place where you have a quantity of the unit and a freeform "unit" type which is the unit of measure. There's a couple of solutions out there that allow conversion from one unit of measure to another. D7 specific is the Units API, and there are a few modules that integrate with that.
[16:09:19]<generalredneck[m>if you are looking for something a little lower level, there is https://github.com/PhpUnitsOfMeasure/php-units-of-measure.
[16:09:19]<generalredneck[m>Things you can do with this are like allow users to define what the "Units" mean... like if the unit is "bag" it might be 50 lbs of feed. Or 1 pallet, which may be 40 bags... WIth a library as such integrated, then you could say that 1 pallet == 408.233 kgs of feed.
[16:11:38]<generalredneck[m>this would work out really well in the "input" logs if you were trying to find out the cost of how much feed per chicken if you knew how much feed a chicken consumed over a period of time.
[16:13:16]<generalredneck[m>I don't know how often unit conversion is an ask though. Just thinking out loud
[16:17:00]<mstenta[m]>Oh very cool!
[16:17:12]<mstenta[m]>I'd love to think more about that with you
[16:17:27]<mstenta[m]>I have seen some of the drupal modules available
[16:18:08]<mstenta[m]>But I felt it was important to allow user entered units at the lower level
[16:18:40]<mstenta[m]>So settled on simple taxonomy, with the hope that we could build more prescriptive unit system on top of that
[16:19:01]<mstenta[m]>Now is a great time to give it thought, as we are making plans for the Drupal 8 upgrade
[16:19:25]<mstenta[m]>This relates to inventory management too
[16:21:50]<mstenta[m]>My plan is to actually combine the quantity measurement and inventory adjustment fields, so that you can optionally adjust inventory with quantity measurement together
[16:22:18]<mstenta[m]>And then you would be able to adjust inventory with specific units too
[16:22:51]<mstenta[m]>That's the other piece that is missing from the current inventory adjustments: units
[16:22:56]<mstenta[m]>Which is fine for animal head counts
[16:23:13]<mstenta[m]>So that's part of the next step in my mind :-)
[16:24:10]<generalredneck[m>I was wondering if your focus was going to be D8/9
[16:24:50]<generalredneck[m>Ideally if you get to 8, 9 would be fairly painless
[16:24:55]<mstenta[m]>Yes! Yes!
[16:25:32]<generalredneck[m>I just maintain D7s for a living... only about 30% of my clients are D8
[16:34:55]<mstenta[m]>Oh cool!
[16:50:41]<mstenta[m]>Have you ever done anything with custom field types?
[17:55:16]<generalredneck[m>Yeah. In D7 it's a pita. In D8 it's a breeze
[17:57:21]<generalredneck[m>Especially to get views integration and all that jazz working. Making entity api a requirement helps
[17:58:40]<generalredneck[m>Pretty sure in d8 you can use Drupal console to build a new custom field
[18:40:38]* JustTB has quit (Ping timeout: 268 seconds)
[18:56:33]* JustTB has joined #farmos