$model->setNumberDefault();
$model->setStatusCreated();
$model->setCreatedDate();
- $model->setCreatedWriteOffsType();
$model->setStoreGuidCreated();
$model->setCreatedAt();
$model->setCauseGroupId();
const STATUS_ERROR_1С = 8;
const STATUS_DISABLE = 5;
const WRITE_OFFS_TYPE_BRAK = "Брак";
+ const WRITE_OFFS_TYPE_RETURN_KALUGA = "Возврат нереализованного товара (Калуга)";
public function custom_function_validation($attribute, $params)
{
$this->write_offs_type = $write_offs_type;
}
- /**
- * @param string $write_offs_type
- */
- public function setCreatedWriteOffsType(): void
- {
- $this->write_offs_type = self::WRITE_OFFS_TYPE_BRAK;
- }
-
/**
* @return float
*/
?>
+ <?= $form->field($model, 'write_offs_type')->dropDownList([
+ WriteOffsErp::WRITE_OFFS_TYPE_BRAK => WriteOffsErp::WRITE_OFFS_TYPE_BRAK,
+ WriteOffsErp::WRITE_OFFS_TYPE_RETURN_KALUGA => WriteOffsErp::WRITE_OFFS_TYPE_RETURN_KALUGA,
+ ]) ?>
+
<?= $form->field($model, 'store_id')->dropDownList($listCityStoreNames) ?>
<?= $form->field($model, 'comment')->textInput() ?>