I've a Manufactured Product with a BOM of 3 kits (K1, K2, K3).
Once i try to manufacture it, and its components aren't available, i want to trigger a purchase
order containing 3 lines:
Line 1 = K1
Line 2 = K2
Line 3 = K3
What happens is that Odoo create a purchase order containing 1 line for each component of the kits (K1, K2, K3).
I want to extend the manufacturing module to implement my need, how can i do ? which module should i extend ? any guide could be helpful !
If I am understanding correctly, then you want to create a Manufacturing Order for Manufactured Product which generates a Purchase Order for the products that make up the components (instead of a Purchase Order for the components themselves).
You would need to have an overall Product/BOM Structure like this:
Manufactured Product
├── Kit 1
│ ├── Purchased Product 11
│ └── Purchased Product 12
├── Kit 2
│ └── Purchased Product 13
└── Kit 3
├── Purchased Product 14
├── Purchased Product 15
└── Purchased Product 16
It sounds like your Kit # products are set up with Routes as Make To Order + Buy. This causes those products to be purchased.
Instead, your Kit # products should be set up with Routes as Make To Order + Manufacture with their own BOM of BoM Type Kit.
The Purchased Products should be assigned as BOM Lines on the relevant BOM and those purchased products should be set up with Routes as Make To Order + Buy.
Here is a simplified example of the 2-level BOM setup I'm talking about.
BOM for Manufactured Product
Manufactured Product
├── Kit 1
├── Kit 2
└── Kit 3
BOM for Kit 1
Kit 1
├── Purchased Product 11
└── Purchased Product 12
Related
I'm following 14.2.4 Basic Operations on Splayed Tables on kx.com.
In an empty directory, running below
`:db/t/ set .Q.en[`:db;] ([] s1:`a`b`c; v:10 20 30; s2:`x`y`z)
created a splayed table successfully:
[22:52:57] [~/tmp] tree
.
└── db
├── sym
└── t
├── s1
├── s2
└── v
Q1) After loading the table using $ q db/t as instructed, the enumerated symbols did not get displayed. What am I missing here?
[22:54:24] [~/tmp] q db/t
KDB+ 4.0 ...
q)select from t
s1 v s2
--------
0 10 3
1 20 4
2 30 5
Q2) Loading using $ q db worked: the symfile was loaded successfully, and symbols appeared correctly. However, is there a way to load only one table? (Here, if I had more tables, all of them would've been loaded)
[23:05:18] [~/tmp] Q db
KDB+ 4.0 ...
q)t
s1 v s2
--------
a 10 x
b 20 y
c 30 z
q)sym
`a`b`c`x`y`z
Use get https://code.kx.com/q/ref/get/#get
q)sym:get `:db/sym
q)t:get `:db/t/
Q1 - When loading just the table using q db/t only the contents of that subdirectory are loaded. The sym file is not loaded as it is not located in the db/t subdirectory, which is why you don't see the enumerated symbols displayed. Best practice is to load the entire database using q db or \l db in your q session.
Q2 - If not using q db to load the entire database directory then get can be used as seen in the other answer to load both the table and sym file. The function loadTable below can handle loading both the table and sym file when passed the path to the table, as long as both exist in the same directory.
q)loadTable:{p:` vs x;`sym set get .Q.dd[p 0;`sym];p[1]set get x}
q)loadTable`:db/t
`t
q)t
s1 v s2
--------
a 10 x
b 20 y
c 30 z
I’m trying to create a table with an aggregation of values in the same field but without any calculation function.
I have a Loki LogQL query that transforms to a table with three labels. I want to do a “group by” with two of the labels, and the third one will be aggregated to have all the values in the same line together. For example:
The logs line from the query are:
Apple Buy 20
Apple Buy 20
Apple Sell 45
Apple Sell 45
Banana Buy 30
Banana Buy 30
Banana Buy 20
Banana Buy 20
Banana Sell 45
Banana Sell 45
And after transformations (Labels to fields, Filter by name, Group by - on all three labels, Organize fields), the table looks like this:
Table first example
I couldn't add a picture yet
And I want it to become like this:
Table after wanted change
So for Type Banana with Process Buy, all the values are aggregated together like in a list or vector (We can have the values ordered, but it’s not necessary, the Value is a string of a number).
I have been trying to do the change between the first table to the second and have encountered difficulties completing this change.
Any help would be very appreciated.
I have posted this also if the Grafana community and asking this here as well in the hope of a wider reach and finding an answer.
My database query fetches list of data like:
id key noc date
1 abc 4 1-10-2016
2 abc 12 2-10-2016
3 abc 23 3-10-2016
4 abc 2 4-10-2016
5 def 23 1-10-2016
6 def 44 2-10-2016
7 def 12 3-10-2016
9 def 43 4-10-2016
10 def 43 5-10-2016
abc and def made those no of calls on those dates.
I want to display these data in chart.
But I am fetching this data with a single query, and I want to create 2 charts , one for abc and another for def.
How can I create multiple charts in jaspersoft with single query and making a single chart? As the number of persons making the call can be different , and I will have to create a chart for every person.
When creating or modifying each chart you just need to link them back to the relevant dataset. This can be either the main report dataset or a sub-dataset created just to run the charts.
You only need to follow the instructions on the relevant jaspersoft wiki page and link each new chart back to the required dataset.
Regards,
For getting multiple charts from a single query you need to do :
First create a jasper report, and add a subreport to it. ( Make sure to make the layout growable and the width of the main group should be larger than the subgroup)
Create the dataset
Create Group on right clicking the report from outline panel.
Provide a group name by selecting a column.
Add a expression pointing the column which is grouping the data.
And select reset on group .
Don't forget to set the evaluation time and the evaluation group
For example :
<chart evaluationTime="Group" evaluationGroup="KeywordGroup">
I need to include these fields in my Moodle site
There must be:
· Learner Personal Details which will also include disability, municipality, ward
· Classroom Training with
I. Name of the Provider
II. Name of the facilitator
III. Name of the moderator
IV. Start and end date
V. Name or number of the Unit standard
VI. Results that is competent or not yet competent
· Workplace Training with
I. Name of the employer
II. Address
III. Name of the mentor or supervisor
IV. Start and end date
V. Name of the Unit standard
VI. Final results
· Stipend
I. Money received per month for the duration of the project
We must also be able to report the drop outs and the pregnancy, bear in mind that they take maternity leave and come back so we must be able to report that
There are custom fields for the user profile - http://docs.moodle.org/25/en/User_profile_fields
I would suggest using the facetoface module for the classroom and workplace training - you can use custom fields too.
https://moodle.org/plugins/view.php?plugin=mod_facetoface
You can record attendance and there are a few reports with it.
It is used extensively in Totara (a distribution of Moodle)
http://help.totaralms.com/Trainer_Led_Courses.htm
You will need to write a local plugin to report on the costs though.
http://docs.moodle.org/dev/Local_plugins
i'm having the table like
category_id category_name parent_id
1 General Grocery 0
2 Ready to eat 0
3 rice 1
4 oils 1
5 flour 1
6 seed 1
7 testing cate 0
8 testing 5
i want to display the categories with "n" number of sub categories in subcategories. My main moto is by using the array generated by the code i want to display in view page and the select menu in the zend form. I found the code in php. but i'm unable to use that in zend. Can some one help me out with this please.
Thank you.
I think you need to generate a tree.. so there are two known patterens to me
adjacency level pattern
Nested Level Patteren
I suggest you to use Nexted level pattern
If you follow the given below two links you will surely come to know what to do.
http://blog.richardknop.com/2009/05/nested-set-model/
http://baobab.sideralis.org/
By this you can generate appropriate tree. now you have to generate a tree in which you can select your items. so you should use this tree http://www.dhtmlx.com/docs/products/dhtmlxTree/index.shtml
you can keep checkboxes to select the items and store in the database