diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-04-21 15:52:59 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-04-21 15:52:59 +0700 |
| commit | c5409003ccb4a50b76eff99d76db3988d697f6db (patch) | |
| tree | 9cf782104c51ba48f3c0a618cf6ca97188264724 /jasper_reports/models/report_xml.py | |
| parent | e5cf49237c8691a1425df3cfca5c8538138646ce (diff) | |
push
Diffstat (limited to 'jasper_reports/models/report_xml.py')
| -rwxr-xr-x | jasper_reports/models/report_xml.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jasper_reports/models/report_xml.py b/jasper_reports/models/report_xml.py index 11f0625..e79c7fe 100755 --- a/jasper_reports/models/report_xml.py +++ b/jasper_reports/models/report_xml.py @@ -196,6 +196,10 @@ class ReportXml(models.Model): return False if not picking.state == 'done' and picking.create_date < threshold_datetime: raise UserError('DO Harus complete terlebih dahulu, baru bisa di print') + + if picking.picking_type_code == 'outgoing' and 'BU/OUT/' in picking.name and picking.total_mapping_koli == 0: + raise UserError('DO Harus isi Mapping Koli terlebih dahulu, baru bisa di print') + picking.date_printed_sj = datetime.utcnow() picking.printed_sj = True |
