From b38a5ca47a6736346b077c8975a02456f8bb7523 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 12 Mar 2016 00:03:54 +0000 Subject: [PATCH] bootstrapisation of receivings (#116) --- application/views/receivings/receiving.php | 380 ++++++++++----------- application/views/sales/register.php | 4 +- 2 files changed, 183 insertions(+), 201 deletions(-) diff --git a/application/views/receivings/receiving.php b/application/views/receivings/receiving.php index a5174bb0d..5e5138694 100644 --- a/application/views/receivings/receiving.php +++ b/application/views/receivings/receiving.php @@ -10,14 +10,17 @@ if (isset($error)) ?>
+ + + 'mode_form', 'class'=>'form-horizontal panel panel-default')); ?>
    -
  • +
  • - "$('#mode_form').submit();", 'class'=>'selectpicker show-menu-arrow', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?> + "$('#mode_form').submit();", 'class'=>'form-control input-sm')); ?>
  • lang->line('recvs_stock_source'); ?>
  • - "$('#mode_form').submit();", 'class'=>'selectpicker show-menu-arrow', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?> + "$('#mode_form').submit();", 'class'=>'form-control input-sm')); ?>
  • lang->line('recvs_stock_destination'); ?>
  • - "$('#mode_form').submit();", 'class'=>'selectpicker show-menu-arrow', 'data-style'=>'btn-default btn-sm', 'data-width'=>'fit')); ?> + "$('#mode_form').submit();", 'class'=>'form-control input-sm')); ?>
  • 'add_item_form', 'class'=>'form-horizontal panel panel-default')); ?>
      -
    • +
    • -
    • 'item', 'id'=>'item', 'class'=>'form-control input-sm', 'size'=>'50', 'tabindex'=>'1')); ?>
    • -
    • lang->line('sales_new_item'), array('class'=>'btn btn-info btn-sm modal-dlg modal-btn-new modal-btn-submit', 'id'=>'new_item_button', 'title'=>$this->lang->line('sales_new_item'))); ?> @@ -97,11 +102,13 @@ if (isset($error)) -
      lang->line('sales_no_items_in_cart'); ?>
      + +
      lang->line('sales_no_items_in_cart'); ?>
      + $item) { - echo form_open("receivings/edit_item/$line", array('class'=>'form-horizontal')); ?> + 'form-horizontal')); ?> ');?>
      [ in ] - 'price', 'class'=>'form-control input-sm', 'value'=>$item['price']));?> @@ -131,39 +139,36 @@ if (isset($error)) } ?> - + 'quantity', 'class'=>'form-control input-sm', 'value'=>$item['quantity'])); ?> 'quantity', 'class'=>'form-control input-sm', 'value'=>$item['quantity'])); - if ($item['receiving_quantity'] > 1) - { + if ($item['receiving_quantity'] > 1) + { ?> - - x + x - - + - 'discount', 'class'=>'form-control input-sm', 'value'=>$item['discount']));?> + 'discount', 'class'=>'form-control input-sm', 'value'=>$item['discount']));?> - - + + 'edit_item', 'value'=>$this->lang->line('sales_edit_item'), 'class'=>'btn btn-default btn-xs'));?> @@ -178,8 +183,7 @@ if (isset($error)) } ?> - - 'description', 'class'=>'form-control input-sm', 'value'=>base64_decode($item['description']))); @@ -197,12 +201,12 @@ if (isset($error)) echo form_hidden('description',''); } } - ?> + ?> - + @@ -212,174 +216,153 @@ if (isset($error)) -
      - lang->line("recvs_supplier").': '.$supplier. '
      '; - echo anchor("receivings/delete_supplier",'['.$this->lang->line('common_delete').' '.$this->lang->line('suppliers_supplier').']'); - } - else - { - echo form_open("receivings/select_supplier", array('id'=>'select_supplier_form')); - ?> - - 'supplier', 'id'=>'supplier', 'size'=>'30', 'value'=>$this->lang->line('recvs_start_typing_supplier_name')));?> - - -
      -

      lang->line('common_or'); ?>

      - - lang->line('recvs_new_supplier'), - array('class'=>'btn btn-info btn-sm modal-dlg modal-btn-submit none', 'id'=>'new_supplier_button', 'title'=>$this->lang->line('recvs_new_supplier'))); - ?> -
      - -
       
      - - - -
      -
      lang->line('sales_total'); ?>:
      -
      -
      - - - 0) - { - if($mode == 'requisition') +
      +
      + -
      -
      - 'finish_receiving_form')); ?> -
      - - 'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?> -

      - -
      - lang->line('recvs_complete_receiving') ?> -
      - - - 'cancel_receiving_form')); ?> -
      - lang->line('recvs_cancel_receiving')?> -
      - -
      - lang->line("recvs_supplier").': '.$supplier. '
      '; + echo anchor("receivings/delete_supplier",'['.$this->lang->line('common_delete').' '.$this->lang->line('suppliers_supplier').']'); } else { - ?> -
      - 'finish_receiving_form')); ?> -
      - - 'comment','id'=>'comment','value'=>$comment,'rows'=>'4','cols'=>'23'));?> -

      - - - - - + ?> + 'select_supplier_form', 'class'=>'form-horizontal')); ?> +
      + + 'supplier', 'id'=>'supplier', 'class'=>'form-control input-sm', 'value'=>$this->lang->line('recvs_start_typing_supplier_name'))); ?> + + lang->line('recvs_new_supplier'), + array('class'=>'btn btn-info btn-sm modal-dlg modal-btn-submit none', 'id'=>'new_supplier_button', 'title'=>$this->lang->line('recvs_new_supplier'))); ?> +
      + + + +
      - lang->line('recvs_print_after_sale'); ?> - - 'recv_print_after_sale','id'=>'recv_print_after_sale','checked'=>'checked')); - } - else - { - echo form_checkbox(array('name'=>'recv_print_after_sale','id'=>'recv_print_after_sale')); - } - ?> -
      + - - - - - - - - + + + + + - - - - + +
      - lang->line('recvs_invoice_enable'); ?> - - 'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10,'checked'=>'checked')); - } - else - { - echo form_checkbox(array('name'=>'recv_invoice_enable','id'=>'recv_invoice_enable','size'=>10)); - } - ?> -
      - lang->line('recvs_invoice_number').': ';?> - - 'recv_invoice_number','id'=>'recv_invoice_number','value'=>$invoice_number,'size'=>10));?> -
      lang->line('sales_total'); ?>
      - lang->line('sales_payment').': ';?> - - -
      - - - lang->line('sales_amount_tendered').': ';?> - - - 'amount_tendered','value'=>'','size'=>'10')); - ?> - - + 0) + { + ?> +
      + + 'finish_receiving_form', 'class'=>'form-horizontal')); ?> +
      + + 'comment', 'id'=>'comment', 'class'=>'form-control input-sm', 'value'=>$comment, 'rows'=>'4')); ?> - -
      -
      - lang->line('recvs_complete_receiving') ?> -
      - +
      lang->line('recvs_cancel_receiving'); ?>
      + +
      lang->line('recvs_complete_receiving'); ?>
      +
      + + + 'finish_receiving_form', 'class'=>'form-horizontal')); ?> +
      + + 'comment', 'id'=>'comment', 'class'=>'form-control input-sm', 'value'=>$comment, 'rows'=>'4'));?> - 'cancel_receiving_form')); ?> -
      - lang->line('recvs_cancel_receiving')?> -
      - -
      - + + lang->line('recvs_print_after_sale'); ?> + + 'recv_print_after_sale', 'id'=>'recv_print_after_sale', 'class'=>'checkbox', 'checked'=>'checked')); + } + else + { + echo form_checkbox(array('name'=>'recv_print_after_sale', 'id'=>'recv_print_after_sale', 'class'=>'checkbox')); + } + ?> + + + + + + lang->line('recvs_invoice_enable'); ?> + + 'recv_invoice_enable', 'id'=>'recv_invoice_enable', 'class'=>'checkbox', 'checked'=>'checked')); + } + else + { + echo form_checkbox(array('name'=>'recv_invoice_enable', 'id'=>'recv_invoice_enable', 'class'=>'checkbox')); + } + ?> + + + + lang->line('recvs_invoice_number');?> + + 'recv_invoice_number', 'id'=>'recv_invoice_number', 'class'=>'form-control input-sm', 'value'=>$invoice_number, 'size'=>10));?> + + + + + lang->line('sales_payment'); ?> + + 'payment_types', 'class'=>'form-control input-sm')); ?> + + + + + lang->line('sales_amount_tendered'); ?> + + 'amount_tendered', 'value'=>'', 'class'=>'form-control input-sm', 'size'=>'10')); ?> + + + + +
      lang->line('recvs_cancel_receiving') ?>
      + +
      lang->line('recvs_complete_receiving') ?>
      +
      + + +
      + + ?> +
      -