Commit 64912d71 authored by Chanon.u's avatar Chanon.u
Browse files

Fix issue call incorrect variable

parent 6377f0d0
......@@ -133,7 +133,8 @@ class ManualResponse extends Component
$this->xmlData = $xml['xmlWithData'];
//For response Export: 9904: Goods Transition Control Already Cancel Matching -> No auto-gen Declaration Number.
$messageCode = MasterResponseTemplates::where('id', $this->docType)->value('code') ?? '';
$messageCode = MasterResponseTemplates::where('id', $this->templateId)->value('code') ?? '';
dd($messageCode);
if($messageCode == '9904'){
$this->xmlData['DeclarationNumber'] = '';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment