Doc status in Packing Slip

I want to add the status of a Packing Slip to a custom Print format.
However, the doctype does not provice neither a “status” nor “company” field.

Any ideas how to check if a Packing Slip has been submitted?

Hello,

The status of the packing slip is indicated in the doctype itself.

You can also check this in the console: cur_frm.doc.docstatus, where 1 would indicate if the document has been submitted.

For company, you can add a custom field if needed.

Can you help me, how can I exactly get the status using Jinja?

In other doctypes I just use {{ doc.status }}. But that doesn’t work with Packaging Slip …

In jinja, use {{ doc.docstatus }} and check.

1 Like

My bad, of course :rofl: