|
{trans("Debit note number:")}
|
{if isset($customer.id)}
{assign var=customerid value=$customer.id}
{else}
{assign var=customerid value=$note.customerid}
{/if}
{numberplan_selection
form = "setcustomer"
customer_selector = "#customerid_input"
cdate_selector = "#cdate"
numberplanlist = $numberplanlist
input_name = "note[number]"
input_value = $note.number
select_name = "note[numberplanid]"
selected = $note.numberplanid
number_trigger = "number"
plan_trigger = "numberplanid"
time = $note.cdate
customer_id = $customerid
planDocumentType = $planDocumentType
}
|
|
{trans("Settlement date:")}
|
{if ConfigHelper::checkPrivilege("invoice_consent_date")}
{if $note.cdatewarning}
{/if}
{else}
{$note.cdate|date_format:"Y-m-d"}
{/if}
|
|
{trans("Deadline:")}
|
({($note.cdate + $note.paytime * 86400)|date_format:"Y-m-d"})
|
|
{trans("Payment type:")}
|
{paytypes elemname="note[paytype]" selected=$note.paytype form="setcustomer"}
|
|
{trans("Customer:")}
|
{if isset($customer.id)}
{customerlist form="setcustomer" customers=$customers selected=$customer.id version=2
selectname="customer" input_id="customerid_input" inputname="customerid" required=true}
{else}
{customerlist form="setcustomer" customers=$customers selected=$note.customerid version=2
selectname="customer" input_id="customerid_input" inputname="customerid" required=true}
{/if}
|
|
{trans("Currency:")}
|
{currency_selection selected=$note.currency elementname="note[currency]" form="setcustomer"}
|
|
{button type="submit" icon="save" label="Submit" form="setcustomer" id="submit-button"}
|