Skip to content

Instantly share code, notes, and snippets.

@kerdany
kerdany / 00-test_cases.md
Last active December 13, 2024 00:51
testing_orders

Picking FSN Barcode:

  • Picking: Scan PBarcode (not WMS Barcode)
  • Picking: Invalid FSN Barcode
  • Picking: FSN Barcode belonging to another WMS barcode
  • Picking: FSN Barcode was already scanned same Putaway Job
  • Picking: Same FSN Barcode for an already picked item in another job.
  • Picking: Serial Number should not be required.
  • Picking: Serial Number to be stored in picking job line.
  • Picking: Invalid AWB Number.
@kerdany
kerdany / avengers.md
Last active January 14, 2025 08:59
standup
  • DS Mgmt.:

    • Umar
    • Ali
    • Nehad
    • Nasser
    • Anup
    • Ola
    • Bianka
  • Order:

@kerdany
kerdany / asn_inbounding_queries.md
Last active August 31, 2024 09:36
asn_inbounding_data.md

Data Questions:

  • invoice_qty
  • is_discrepancy_asn, discrepancy_reason
# ASN Sources
SELECT
  CASE
    WHEN pa.asn_nr IS NOT NULL THEN 'partner_asn'
    WHEN po.shipment_nr IS NOT NULL THEN 'retail_order'

Statuses & Buttons

  • Status: Created
    • "Force Assign" shown & enabled (should be disabled)
  • Status: Fulfilling
    • "Force Assign" shown & enabled (should be disabled)
  • Status: Packing
    • "Force Assign" shown & enabled (should be disabled)
  • Status: Fulfilled
  • "Force Assign" shown & enabled
@kerdany
kerdany / orders.md
Last active February 19, 2024 03:34
Order Data (Minutes/Noon/Namshi)
#  TODO:
#  - Adjust Timezones
#  - Revise Batch Numbers & Batched Orders
#  - Order Value/Volume/Weight
#  - COD vs Prepaid
#  - MP sales_order tables (Minutes, Noon, Namshi)
#    + Estimates
#  - Reasons:
#    + Undelivered
-- fsn where clause.
-- qty >=? 0
WITH
fsn AS (
  -- Get list of fsn wms barcodes
  SELECT
    ip.pbarcode,
    ip.id_partner,
    il.barcode AS wms_barcode,
@kerdany
kerdany / expiry_configs.md
Last active November 6, 2023 21:29
ExpiryConfigsForPutawayTesting
# Expiry configs for SKUs in stock in UAE
# This query gives all pbarcodes that are configured as expirable, which are existing in darkstore stock
# that are currently configured as expirable, and gives their configured shelf_life and inbound_norms.
SELECT
  ANY_VALUE(p.sku) AS sku,
  ip.pbarcode AS pbarcode,
  SUM(qty) as qty_total,
  ANY_VALUE(p.family_code) family_code,
  ANY_VALUE(pt.code) product_type_code,
@kerdany
kerdany / LaggingSlashInRouteTest.php
Last active August 29, 2015 14:06
[symfony/routing] TestCase: Inconsistencies in matching lagging slash in routes
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Matcher\UrlMatcher;
class LaggingSlashInRouteTest extends \PHPUnit_Framework_TestCase
{