|
|
@@ -9,6 +9,7 @@ class OrderInvoiceRemarkForm extends Model
|
|
|
{
|
|
|
public $orderSn;
|
|
|
public $invoiceRemark;
|
|
|
+ public $orderMethod;
|
|
|
|
|
|
/**
|
|
|
* @inheritdoc
|
|
|
@@ -19,6 +20,8 @@ class OrderInvoiceRemarkForm extends Model
|
|
|
[['orderSn'], 'trim'],
|
|
|
[['orderSn'], 'required'],
|
|
|
['invoiceRemark', 'string', 'max' => 50000],
|
|
|
+ ['orderMethod', 'string'],
|
|
|
+ ['orderMethod', 'in', 'range' => ['Cash', 'Credit Card', 'Direct Banking', 'Cheque']],
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -63,7 +66,7 @@ class OrderInvoiceRemarkForm extends Model
|
|
|
$transaction = $db->beginTransaction();
|
|
|
try {
|
|
|
Order::updateAll(
|
|
|
- ['INVOICE_REMARK' => $this->invoiceRemark],
|
|
|
+ ['INVOICE_REMARK' => $this->invoiceRemark,'METHOD'=>$this->orderMethod],
|
|
|
'SN=:SN',
|
|
|
['SN' => $sn]
|
|
|
);
|