mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-07 15:23:50 -04:00
Fix payment dates not being set correctly
This commit is contained in:
20
application/migrations/20191231100000_paymentdatefix.php
Normal file
20
application/migrations/20191231100000_paymentdatefix.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Migration_PaymentDateFix extends CI_Migration
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function up()
|
||||
{
|
||||
execute_script(APPPATH . 'migrations/sqlscripts/3.3.2_paymentdatefix.sql');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,3 @@
|
||||
UPDATE `ospos_sales_payments`
|
||||
JOIN `ospos_sales` ON `ospos_sales`.`sale_id`=`ospos_sales_payments`.`sale_id`
|
||||
SET `ospos_sales_payments`.`payment_time`=`ospos_sales`.`sale_time`;
|
||||
Reference in New Issue
Block a user