Add Pack Quantity and Total Quantity to purchase order #9356
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Look at the SupplierPart model for the available fields: The field you are looking for is the pack_quantity field: So you should be able access with: <td>{% decimal part.pack_quantity %}</td> |
Beta Was this translation helpful? Give feedback.
-
@SchrodingersGat thanks for the feedback but for some reason that is inot working for me.
Addititionally i noticed that line,part.part.units returns the Units from the base part. not from the part. sinc this is a PO for a supplier. |
Beta Was this translation helpful? Give feedback.
-
yes that works. thank you. why does:
not work? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the example. my code:
what does work is:
but whi change that to:
that will lso result in Error renderig template. br Martijn |
Beta Was this translation helpful? Give feedback.
<td>{% decimal line.part.part.pack_quantity %}</td>
should instead be<td>{% decimal line.part.pack_quantity %}</td>